@totalis/hip4-client 0.100.0 → 0.102.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.
@@ -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;
@@ -3866,6 +4026,8 @@ export type components = {
3866
4026
  readonly owner: components["schemas"]["LowercaseNonZeroAddress"];
3867
4027
  /** @description On a maker's read, the owner's username when the owner wallet is the account wallet of a participant whose public trader profile is on, the pair GET /v1/traders/{username} shows; otherwise null, as for a participant's other linked wallets, and always null on a personal read. */
3868
4028
  readonly owner_username: components["schemas"]["Username"] | null;
4029
+ /** @description On a maker's read, the display name of the partner whose builder code opened the position; null when it was opened without one, and always null on a personal read. */
4030
+ readonly opened_via: string | null;
3869
4031
  /**
3870
4032
  * @description OPEN: not yet known eligible for settlement; AWAITING_SETTLEMENT: every leg resolved, or the payout with every unresolved leg counted as a win already rounds down to zero, but no settlement observed; SETTLED_UNCLAIMED: settled with profit still unclaimed; CLOSED: closed by zero-profit settlement, final claim or sell-back.
3871
4033
  * @enum {string}
@@ -4783,6 +4945,11 @@ export type components = {
4783
4945
  };
4784
4946
  };
4785
4947
  };
4948
+ /**
4949
+ * @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.
4950
+ * @constant
4951
+ */
4952
+ readonly DisplayQuery: true;
4786
4953
  /** @enum {string} */
4787
4954
  readonly MarketState: "ACTIVE" | "CLOSED" | "UNSUPPORTED";
4788
4955
  readonly Category: ("Crypto" | "Economics" | "Entertainment" | "Esports" | "Finance" | "Politics" | "Sports" | "Tech" | "Weather") | null;
@@ -5170,6 +5337,133 @@ export type components = {
5170
5337
  /** @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. */
5171
5338
  readonly estimated_live_until: components["schemas"]["$defs-Timestamp"] | null;
5172
5339
  };
5340
+ readonly OutcomeNativeQuestion: {
5341
+ /** @description Hyperliquid question ID; null for an outcome known only from a settlement record that names its question without the ID. */
5342
+ readonly native_question_id: components["schemas"]["RealQuestionId"] | null;
5343
+ /** @description Native question name, for example template:sportsContestResult. */
5344
+ readonly name: string;
5345
+ /** @description Native question description. */
5346
+ readonly description: string;
5347
+ };
5348
+ /** @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. */
5349
+ readonly OutcomeNative: {
5350
+ /** @description Native outcome name, for example template:sportsContestWinner or Recurring. */
5351
+ readonly name: string;
5352
+ /** @description Native outcome description; a template instance holds its keyword values as key:value pairs separated by a vertical bar. */
5353
+ readonly description: string;
5354
+ /** @description Native side names, Yes then No, as listed (template:Yes, template:{shortNameA}); null where the copy Totalis kept predates side names. */
5355
+ readonly side_names: readonly string[] | null;
5356
+ /** @description The question the outcome belongs to, from the same catalog; null for a standalone outcome. */
5357
+ readonly question: components["schemas"]["OutcomeNativeQuestion"] | null;
5358
+ };
5359
+ /** @description An imagery subject's key: its kind, a colon and its normalized name, such as team:detroit lions. */
5360
+ readonly SubjectKey: string;
5361
+ readonly PictureSubject: {
5362
+ /**
5363
+ * @description SUBJECT: a subject described once in the answer's `subjects`.
5364
+ * @constant
5365
+ */
5366
+ readonly type: "SUBJECT";
5367
+ /** @description The subject's key in `subjects`. */
5368
+ readonly key: components["schemas"]["SubjectKey"];
5369
+ };
5370
+ readonly PictureGlyph: {
5371
+ /**
5372
+ * @description GLYPH: a mark of the client's own, never artwork.
5373
+ * @constant
5374
+ */
5375
+ readonly type: "GLYPH";
5376
+ /**
5377
+ * @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.
5378
+ * @enum {string}
5379
+ */
5380
+ readonly glyph: "DRAW" | "TOTAL";
5381
+ };
5382
+ readonly Picture: components["schemas"]["PictureSubject"] | components["schemas"]["PictureGlyph"];
5383
+ /** @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. */
5384
+ readonly OutcomePictures: {
5385
+ /** @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. */
5386
+ readonly market: components["schemas"]["Picture"] | null;
5387
+ /** @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. */
5388
+ readonly pick: readonly (components["schemas"]["Picture"] | null)[];
5389
+ /** @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. */
5390
+ readonly pick_no_side: components["schemas"]["Picture"] | null;
5391
+ /** @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. */
5392
+ readonly own: readonly (components["schemas"]["Picture"] | null)[];
5393
+ /** @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. */
5394
+ readonly row: components["schemas"]["Picture"] | null;
5395
+ /** @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. */
5396
+ readonly teams: readonly (components["schemas"]["PictureSubject"] | null)[] | null;
5397
+ };
5398
+ readonly OutcomeDisplay: {
5399
+ /** @description Hyperliquid outcome ID. */
5400
+ readonly outcome_id: components["schemas"]["UInt32String"];
5401
+ /** @description English display title, the market's `title`. */
5402
+ readonly title: string;
5403
+ /** @description The outcome as Hyperliquid listed it, for a client that names markets itself. */
5404
+ readonly native: components["schemas"]["OutcomeNative"];
5405
+ /** @description Finished pictures for each place the outcome is drawn. */
5406
+ readonly pictures: components["schemas"]["OutcomePictures"];
5407
+ };
5408
+ readonly PictureVariant: {
5409
+ /**
5410
+ * @description Width and height in pixels.
5411
+ * @enum {integer}
5412
+ */
5413
+ readonly size: 64 | 128 | 256;
5414
+ /** @description Public WebP image URL. */
5415
+ readonly url: string;
5416
+ };
5417
+ readonly OklchColor: {
5418
+ /** @description Oklch lightness, 0 to 1. */
5419
+ readonly l: number;
5420
+ /** @description Oklch chroma. */
5421
+ readonly c: number;
5422
+ /** @description Hue in degrees. */
5423
+ readonly h: number;
5424
+ };
5425
+ readonly SubjectImage: {
5426
+ /**
5427
+ * @description ICON: a logo inset on a transparent square, drawn whole. PHOTO: a photo that fills its circle.
5428
+ * @enum {string}
5429
+ */
5430
+ readonly fit: "ICON" | "PHOTO";
5431
+ /** @description Square WebP renditions at 64, 128 and 256 pixels, in that order. Their URLs never change content. */
5432
+ readonly variants: readonly components["schemas"]["PictureVariant"][];
5433
+ /** @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. */
5434
+ readonly palette?: readonly components["schemas"]["OklchColor"][];
5435
+ };
5436
+ readonly Subject: {
5437
+ /** @description The subject's name, for alternative text. */
5438
+ readonly label: string;
5439
+ /** @description The subject's short mark, drawn on a coin when it has no image, while its image loads or when it fails. */
5440
+ readonly monogram: string;
5441
+ /** @description The subject's artwork; null for a known subject without any, drawn as its coin. */
5442
+ readonly image: components["schemas"]["SubjectImage"] | null;
5443
+ };
5444
+ /** @description Each subject a picture of the answer names, once, by key. */
5445
+ readonly Subjects: {
5446
+ readonly [key: string]: components["schemas"]["Subject"];
5447
+ };
5448
+ /** @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. */
5449
+ readonly PageDisplay: {
5450
+ /**
5451
+ * @description Hyperliquid network the outcomes are listed on.
5452
+ * @enum {string}
5453
+ */
5454
+ readonly network: "HYPEREVM_TESTNET" | "HYPEREVM_MAINNET";
5455
+ /** @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. */
5456
+ readonly imagery_publication: string | null;
5457
+ /** @description The page's markets that its publication stored display for, ascending by outcome ID. */
5458
+ readonly outcomes: readonly components["schemas"]["OutcomeDisplay"][];
5459
+ readonly subjects: components["schemas"]["Subjects"];
5460
+ /** @description Always empty: every listed market is recorded. */
5461
+ readonly not_recorded: readonly components["schemas"]["UInt32String"][];
5462
+ /** @description Always empty: every listed market is recorded. */
5463
+ readonly pending: readonly components["schemas"]["UInt32String"][];
5464
+ /** @description The entries of Hyperliquid's outcomeTemplates answer, unchanged, that these outcomes and their questions are instances of, ascending by id. */
5465
+ readonly templates: readonly unknown[];
5466
+ };
5173
5467
  /** Format: uint256-decimal */
5174
5468
  readonly Uint: string;
5175
5469
  /** @description Entry terms a maker quotes; they mirror the signed Quote and TakerAccept structs field for field. */
@@ -5213,12 +5507,366 @@ export type components = {
5213
5507
  /** @description true to show the X handle on the public trader profile, false to hide it. */
5214
5508
  readonly shown: boolean;
5215
5509
  };
5216
- /** @enum {unknown} */
5217
- readonly OperationState: "QUEUED" | "IN_FLIGHT" | "RETRYABLE" | "UNKNOWN" | "COMMITTED" | "REVERTED" | "EXPIRED_UNEXECUTED";
5218
- /** @description 1 to 1000 characters after surrounding whitespace is trimmed. Newlines are kept; other control characters are refused. */
5219
- readonly CommentBody: string;
5220
- /** @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. */
5221
- readonly CommentSingle: {
5510
+ /** @description A person's profile: the Person fields and their totals. */
5511
+ readonly Profile: {
5512
+ readonly username: components["schemas"]["Username"];
5513
+ /** @description The seed clients draw the person's generated avatar from. */
5514
+ readonly avatar_seed: components["schemas"]["AvatarSeed"];
5515
+ /** @description Their X picture; absent when there is none. */
5516
+ readonly picture_url?: components["schemas"]["XPictureUrl"];
5517
+ /** @description Their Genesis Account badge; absent when not earned. */
5518
+ readonly genesis?: components["schemas"]["$defs-Timestamp"];
5519
+ /** @description Their X handle; absent when there is none or they hid it. */
5520
+ readonly x_username?: components["schemas"]["XUsername"];
5521
+ /** @description When they turned the profile on. */
5522
+ readonly public_since: components["schemas"]["$defs-Timestamp"];
5523
+ /** @description How many accounts follow them. */
5524
+ readonly followers: number;
5525
+ /** @description Whether the reading account follows them. Absent without a participant session. */
5526
+ readonly following?: boolean;
5527
+ /** @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. */
5528
+ readonly volume: components["schemas"]["$defs-Amount"] | null;
5529
+ /** @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. */
5530
+ readonly positions_value: components["schemas"]["$defs-Amount"] | null;
5531
+ };
5532
+ /** @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. */
5533
+ readonly EpisodeId: string;
5534
+ /** @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. */
5535
+ readonly "$defs-Asset": string;
5536
+ /** @description Shares, an exact decimal string with no trailing zeros. */
5537
+ readonly Shares: string;
5538
+ /** @description A price per share in the quote asset, a decimal string with no trailing zeros. */
5539
+ readonly Price: string;
5540
+ /** @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. */
5541
+ readonly SingleSummary: {
5542
+ /**
5543
+ * @description A HyperCore position.
5544
+ * @constant
5545
+ */
5546
+ readonly kind: "SINGLE";
5547
+ /** @description The HIP-4 outcome ID. */
5548
+ readonly outcome_id: components["schemas"]["UInt32String"];
5549
+ readonly episode: components["schemas"]["EpisodeId"];
5550
+ /** @description The quote asset of value; null when unknown. */
5551
+ readonly asset: components["schemas"]["$defs-Asset"] | null;
5552
+ /** @description As Holding.side. */
5553
+ readonly side: components["schemas"]["Side"] | null;
5554
+ /** @description Net shares held; null when not proven. */
5555
+ readonly shares: components["schemas"]["Shares"] | null;
5556
+ /** @description As Holding.entry. */
5557
+ readonly entry: components["schemas"]["Price"] | null;
5558
+ /** @description As Holding.value. */
5559
+ readonly value: components["schemas"]["$defs-Amount"] | null;
5560
+ };
5561
+ /** @description One leg of a Combo ticket. */
5562
+ readonly "social.schema_$defs-Leg": {
5563
+ /** @description HIP-4 outcome ID of the leg. */
5564
+ readonly outcome_id: components["schemas"]["UInt32String"];
5565
+ /** @description The side the leg holds. */
5566
+ readonly side: components["schemas"]["Side"];
5567
+ };
5568
+ /** @description A Combo ticket held now, or settled with a residual still to claim, as a row draws it. */
5569
+ readonly ComboSummary: {
5570
+ /**
5571
+ * @description A Combo ticket.
5572
+ * @constant
5573
+ */
5574
+ readonly kind: "COMBO";
5575
+ /** @description The ticket. */
5576
+ readonly position_id: components["schemas"]["Bytes32"];
5577
+ /** @description A free Combo. */
5578
+ readonly golden: boolean;
5579
+ /** @description Its legs, in leg order. */
5580
+ readonly legs: readonly components["schemas"]["social.schema_$defs-Leg"][];
5581
+ /** @description As ComboPosition.value. */
5582
+ readonly value: components["schemas"]["$defs-Amount"] | null;
5583
+ };
5584
+ /** @description A position held now, by kind. */
5585
+ readonly PositionSummary: components["schemas"]["SingleSummary"] | components["schemas"]["ComboSummary"];
5586
+ /** @description Where a market a response names stands now. Names and pictures come from market-display. */
5587
+ readonly "$defs-Market": {
5588
+ /** @description The HIP-4 outcome ID. */
5589
+ readonly outcome_id: components["schemas"]["UInt32String"];
5590
+ /**
5591
+ * @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.
5592
+ * @enum {string|null}
5593
+ */
5594
+ readonly phase: "TRADING" | "AWAITING_RESULT" | "TRADING_CLOSED" | "SETTLED" | null;
5595
+ /** @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. */
5596
+ readonly settle_fraction: components["schemas"]["Price"] | null;
5597
+ };
5598
+ /** @description Every market the response names, once each, ascending by outcome ID. A feed page ends early rather than name more than 200. */
5599
+ readonly Markets: readonly components["schemas"]["$defs-Market"][];
5600
+ /** @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. */
5601
+ readonly PositionPage: {
5602
+ /** @description Positions held now, newest opened first. */
5603
+ readonly items: readonly components["schemas"]["PositionSummary"][];
5604
+ readonly markets: components["schemas"]["Markets"];
5605
+ readonly next_cursor: components["schemas"]["NextCursor"];
5606
+ /** @description Whether a later page may hold more. */
5607
+ readonly has_more: boolean;
5608
+ };
5609
+ /** @description A person with a public profile, as every social read names them. */
5610
+ readonly Person: {
5611
+ readonly username: components["schemas"]["Username"];
5612
+ /** @description The seed clients draw the person's generated avatar from, as for GET /v1/me. */
5613
+ readonly avatar_seed: components["schemas"]["AvatarSeed"];
5614
+ /** @description Their X picture; absent when there is none. */
5615
+ readonly picture_url?: components["schemas"]["XPictureUrl"];
5616
+ /** @description Their Genesis Account badge; absent when not earned. */
5617
+ readonly genesis?: components["schemas"]["$defs-Timestamp"];
5618
+ };
5619
+ /** @description An amount in 10^-8 of the asset named beside it, as a signed integer string. */
5620
+ readonly SignedUnits: string;
5621
+ /** @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). */
5622
+ readonly Holding: {
5623
+ /** @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. */
5624
+ readonly side: components["schemas"]["Side"] | null;
5625
+ /** @description Net shares held now; for a settled position, held as it settled; 0 once sold. */
5626
+ readonly shares: components["schemas"]["Shares"];
5627
+ /** @description Shares held on both sides, worth exactly 1 each whatever the result; as it settled for a settled position, 0 once sold. */
5628
+ readonly pairs: components["schemas"]["Shares"];
5629
+ /** @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. */
5630
+ readonly entry: components["schemas"]["Price"] | null;
5631
+ /** @description What the net shares held now cost, fees included. Null once closed or when unknown. */
5632
+ readonly cost: components["schemas"]["$defs-Amount"] | null;
5633
+ /** @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. */
5634
+ readonly mark: components["schemas"]["Price"] | null;
5635
+ /** @description What it is worth now; 0 once closed; null when the mark is unknown, never 0. */
5636
+ readonly value: components["schemas"]["$defs-Amount"] | null;
5637
+ /** @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. */
5638
+ readonly pnl: components["schemas"]["SignedUnits"] | null;
5639
+ };
5640
+ /** @description One buy or sale of one side, as Hyperliquid reported it. */
5641
+ readonly "$defs-Fill": {
5642
+ /** @description Stable ID of the fill: its HyperCore block height and event index. */
5643
+ readonly id: string;
5644
+ /** @description HyperCore block time. */
5645
+ readonly at: components["schemas"]["$defs-Timestamp"];
5646
+ /** @description The side bought or sold. */
5647
+ readonly side: components["schemas"]["Side"];
5648
+ /**
5649
+ * @description Whether it bought or sold the side.
5650
+ * @enum {string}
5651
+ */
5652
+ readonly direction: "BUY" | "SELL";
5653
+ /** @description Price per share it printed at, before fees. */
5654
+ readonly price: components["schemas"]["Price"];
5655
+ /** @description Shares filled. */
5656
+ readonly size: components["schemas"]["Shares"];
5657
+ };
5658
+ /** @description 1 to 1000 characters after surrounding whitespace is trimmed. Newlines are kept; other control characters are refused. */
5659
+ readonly CommentBody: string;
5660
+ /** @description A person's comment. */
5661
+ readonly LatestComment: {
5662
+ readonly body: components["schemas"]["CommentBody"];
5663
+ /** @description When it was posted. */
5664
+ readonly created_at: components["schemas"]["$defs-Timestamp"];
5665
+ };
5666
+ /** @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. */
5667
+ readonly SinglePosition: {
5668
+ /**
5669
+ * @description A HyperCore position.
5670
+ * @constant
5671
+ */
5672
+ readonly kind: "SINGLE";
5673
+ readonly person: components["schemas"]["Person"];
5674
+ /** @description Whether the reading account follows them. Absent without a participant session. */
5675
+ readonly following?: boolean;
5676
+ /** @description The HIP-4 outcome ID. */
5677
+ readonly outcome_id: components["schemas"]["UInt32String"];
5678
+ /** @description The quote asset of every amount; null when unknown. */
5679
+ readonly asset: components["schemas"]["$defs-Asset"] | null;
5680
+ /**
5681
+ * @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.
5682
+ * @enum {string|null}
5683
+ */
5684
+ readonly state: "OPEN" | "PARTLY_SOLD" | "SOLD" | "SETTLED" | null;
5685
+ /**
5686
+ * @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.
5687
+ * @enum {string|null}
5688
+ */
5689
+ readonly result: "WON" | "LOST" | "SPLIT" | null;
5690
+ /** @description When the episode's first share came. */
5691
+ readonly opened_at: components["schemas"]["$defs-Timestamp"] | null;
5692
+ /** @description When its last share left; null while open. */
5693
+ readonly closed_at: components["schemas"]["$defs-Timestamp"] | null;
5694
+ /** @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). */
5695
+ readonly holding: components["schemas"]["Holding"] | null;
5696
+ /** @description The episode's buys and sales, newest first, up to 100. */
5697
+ readonly trades: readonly components["schemas"]["$defs-Fill"][];
5698
+ /** @description How many buys and sales the episode has; more than trades holds when it was cut at 100. */
5699
+ readonly trade_count: number;
5700
+ /** @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. */
5701
+ readonly latest_comment: components["schemas"]["LatestComment"] | null;
5702
+ readonly markets: components["schemas"]["Markets"];
5703
+ };
5704
+ /** @description The newest run of a Combo ticket in a person's account wallet. One leg is a single-market RFQ buy. */
5705
+ readonly ComboPosition: {
5706
+ /**
5707
+ * @description A Combo ticket.
5708
+ * @constant
5709
+ */
5710
+ readonly kind: "COMBO";
5711
+ readonly person: components["schemas"]["Person"];
5712
+ /** @description Whether the reading account follows them. Absent without a participant session. */
5713
+ readonly following?: boolean;
5714
+ /** @description The ticket. */
5715
+ readonly position_id: components["schemas"]["Bytes32"];
5716
+ /** @description A free Combo, whose stake a promotion paid. */
5717
+ readonly golden: boolean;
5718
+ /**
5719
+ * @description OPENED, they bought it; RECEIVED, it was passed to them, as a free Combo is.
5720
+ * @enum {string}
5721
+ */
5722
+ readonly acquired: "OPENED" | "RECEIVED";
5723
+ /**
5724
+ * @description OPEN; CASHED_OUT, sold back to its maker; SETTLED; PASSED_ON, moved to another wallet.
5725
+ * @enum {string}
5726
+ */
5727
+ readonly state: "OPEN" | "CASHED_OUT" | "SETTLED" | "PASSED_ON";
5728
+ /**
5729
+ * @description LOST once any leg's side settled at nothing, open or not; WON or SPLIT once every leg settled; null before.
5730
+ * @enum {string|null}
5731
+ */
5732
+ readonly result: "WON" | "LOST" | "SPLIT" | null;
5733
+ /** @description When they opened or received it (HyperEVM block time). */
5734
+ readonly opened_at: components["schemas"]["$defs-Timestamp"];
5735
+ /** @description Its legs, in leg order. */
5736
+ readonly legs: readonly components["schemas"]["social.schema_$defs-Leg"][];
5737
+ /** @description What they paid in 10^-8 USDC, the entry fee included; null when they paid nothing of their own (received free). */
5738
+ readonly cost: components["schemas"]["$defs-Amount"] | null;
5739
+ /** @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. */
5740
+ readonly value: components["schemas"]["$defs-Amount"] | null;
5741
+ /** @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. */
5742
+ readonly pnl: components["schemas"]["SignedUnits"] | null;
5743
+ readonly markets: components["schemas"]["Markets"];
5744
+ };
5745
+ /** @description A person's position, by kind. */
5746
+ readonly "$defs-Position": components["schemas"]["SinglePosition"] | components["schemas"]["ComboPosition"];
5747
+ /** @description What GET /v1/social/people/{username}/positions/{position} takes to open a HyperCore position's episode. */
5748
+ readonly SingleKey: {
5749
+ /**
5750
+ * @description A HyperCore position.
5751
+ * @constant
5752
+ */
5753
+ readonly kind: "SINGLE";
5754
+ /** @description The position path segment. */
5755
+ readonly outcome_id: components["schemas"]["UInt32String"];
5756
+ /** @description The episode query parameter; null when the ledger does not name one yet, so the read opens the open episode, else the last. */
5757
+ readonly episode: components["schemas"]["EpisodeId"] | null;
5758
+ };
5759
+ /** @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. */
5760
+ readonly TradeItem: {
5761
+ /** @description Stable, opaque ID; a burst keeps it as it grows, and moves to the top of the feed. */
5762
+ readonly id: string;
5763
+ /** @description Its newest trade's HyperCore block time. */
5764
+ readonly at: components["schemas"]["$defs-Timestamp"];
5765
+ readonly person: components["schemas"]["Person"];
5766
+ /** @description The episode the burst belongs to. */
5767
+ readonly position: components["schemas"]["SingleKey"];
5768
+ /** @description The side bought or sold. */
5769
+ readonly side: components["schemas"]["Side"];
5770
+ /**
5771
+ * @description Whether the burst bought or sold.
5772
+ * @enum {string}
5773
+ */
5774
+ readonly direction: "BUY" | "SELL";
5775
+ /** @description Shares bought or sold over the burst. */
5776
+ readonly shares: components["schemas"]["Shares"];
5777
+ /** @description Average printed price per share over the burst, weighted by size, before fees, rounded half away from zero to 8 decimals. */
5778
+ readonly price: components["schemas"]["Price"];
5779
+ /** @description How many orders the burst took, told apart by transaction: one order filling against several makers is one. */
5780
+ readonly orders: number;
5781
+ };
5782
+ /** @description What GET /v1/social/people/{username}/positions/{position} takes to open a Combo ticket. */
5783
+ readonly ComboKey: {
5784
+ /**
5785
+ * @description A Combo ticket.
5786
+ * @constant
5787
+ */
5788
+ readonly kind: "COMBO";
5789
+ /** @description The position path segment. */
5790
+ readonly position_id: components["schemas"]["Bytes32"];
5791
+ };
5792
+ /** @description A Combo ticket a person opened, received or cashed out. */
5793
+ readonly ComboItem: {
5794
+ /** @description Stable, opaque ID. */
5795
+ readonly id: string;
5796
+ /** @description HyperEVM block time. */
5797
+ readonly at: components["schemas"]["$defs-Timestamp"];
5798
+ readonly person: components["schemas"]["Person"];
5799
+ readonly position: components["schemas"]["ComboKey"];
5800
+ /**
5801
+ * @description What they did with the ticket.
5802
+ * @enum {string}
5803
+ */
5804
+ readonly action: "OPENED" | "RECEIVED" | "CASHED_OUT";
5805
+ /** @description A free Combo. */
5806
+ readonly golden: boolean;
5807
+ /** @description Its legs, in leg order. */
5808
+ readonly legs: readonly components["schemas"]["social.schema_$defs-Leg"][];
5809
+ /** @description For OPENED, what they paid in 10^-8 USDC, the entry fee included; null otherwise. */
5810
+ readonly cost: components["schemas"]["$defs-Amount"] | null;
5811
+ };
5812
+ /** @description A feed item: a burst of trades, or a Combo moment. */
5813
+ readonly FeedItem: components["schemas"]["TradeItem"] | components["schemas"]["ComboItem"];
5814
+ /** @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. */
5815
+ readonly FeedPage: {
5816
+ /** @description Newest first. */
5817
+ readonly items: readonly components["schemas"]["FeedItem"][];
5818
+ readonly markets: components["schemas"]["Markets"];
5819
+ readonly next_cursor: components["schemas"]["NextCursor"];
5820
+ /** @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. */
5821
+ readonly has_more: boolean;
5822
+ };
5823
+ /** @description A person the reader follows and their positions on the outcomes asked. */
5824
+ readonly Holder: {
5825
+ readonly person: components["schemas"]["Person"];
5826
+ /** @description Their HyperCore positions on the asked outcomes, newest opened first. */
5827
+ readonly positions: readonly components["schemas"]["SingleSummary"][];
5828
+ };
5829
+ /** @description Who the reader follows holds any of the asked outcomes. */
5830
+ readonly FollowingPositions: {
5831
+ /** @description People the reader follows who hold any asked outcome, the one who opened a position most recently first. */
5832
+ readonly people: readonly components["schemas"]["Holder"][];
5833
+ readonly markets: components["schemas"]["Markets"];
5834
+ };
5835
+ /** @description One person's place on the leaderboard. */
5836
+ readonly Rank: {
5837
+ /** @description Their rank, from 1. */
5838
+ readonly rank: number;
5839
+ readonly person: components["schemas"]["Person"];
5840
+ /** @description Volume or P&L over the range in 10^-8 USDC; P&L can be zero or negative. */
5841
+ readonly amount: components["schemas"]["SignedUnits"];
5842
+ };
5843
+ /** @description One page of 25 ranks and the reader's own rank. */
5844
+ readonly Leaderboard: {
5845
+ /**
5846
+ * @description What the ranking counts.
5847
+ * @enum {string}
5848
+ */
5849
+ readonly metric: "VOLUME" | "PNL";
5850
+ /**
5851
+ * @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.
5852
+ * @enum {string}
5853
+ */
5854
+ readonly range: "1W" | "ALL";
5855
+ /** @description When the ranking was read, to the second; pass it as the as_of query parameter to read more pages of it. */
5856
+ readonly as_of: components["schemas"]["$defs-Timestamp"];
5857
+ /** @description The page answered, as the page query parameter asked. */
5858
+ readonly page_number: number;
5859
+ /** @description How many pages the ranking fills; 0 when nobody ranks. */
5860
+ readonly pages: number;
5861
+ /** @description The page's ranks, ascending; empty past the last page. */
5862
+ readonly rows: readonly components["schemas"]["Rank"][];
5863
+ /** @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. */
5864
+ readonly you: components["schemas"]["Rank"] | null;
5865
+ };
5866
+ /** @enum {unknown} */
5867
+ readonly OperationState: "QUEUED" | "IN_FLIGHT" | "RETRYABLE" | "UNKNOWN" | "COMMITTED" | "REVERTED" | "EXPIRED_UNEXECUTED";
5868
+ /** @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. */
5869
+ readonly CommentSingle: {
5222
5870
  /** @description HIP-4 outcome ID held, as a decimal string. */
5223
5871
  readonly outcome_id: components["schemas"]["UInt32String"];
5224
5872
  /** @description Outcome side held. */
@@ -5263,6 +5911,8 @@ export type components = {
5263
5911
  readonly holder: boolean | null;
5264
5912
  /** @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. */
5265
5913
  readonly singles: readonly components["schemas"]["CommentSingle"][] | null;
5914
+ /** @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. */
5915
+ readonly positions?: readonly components["schemas"]["SingleSummary"][] | null;
5266
5916
  readonly like_count: number;
5267
5917
  /** @description Live replies; always 0 on a reply. */
5268
5918
  readonly reply_count: number;
@@ -5962,114 +6612,6 @@ export type components = {
5962
6612
  /** @description Reviewed Hyperliquid outcome templates of the network, ascending by ID. */
5963
6613
  readonly templates: readonly components["schemas"]["TemplateDefinition"][];
5964
6614
  };
5965
- readonly OutcomeNativeQuestion: {
5966
- /** @description Hyperliquid question ID; null for an outcome known only from a settlement record that names its question without the ID. */
5967
- readonly native_question_id: components["schemas"]["RealQuestionId"] | null;
5968
- /** @description Native question name, for example template:sportsContestResult. */
5969
- readonly name: string;
5970
- /** @description Native question description. */
5971
- readonly description: string;
5972
- };
5973
- /** @description The outcome exactly as Hyperliquid listed it in the last catalog Totalis recorded it in (the current one while it is listed) or, for an outcome no kept catalog copy holds, as Hyperliquid's settlement record names it. */
5974
- readonly OutcomeNative: {
5975
- /** @description Native outcome name, for example template:sportsContestWinner or Recurring. */
5976
- readonly name: string;
5977
- /** @description Native outcome description; a template instance holds its keyword values as key:value pairs separated by a vertical bar. */
5978
- readonly description: string;
5979
- /** @description Native side names, Yes then No, as listed (template:Yes, template:{shortNameA}); null where the copy Totalis kept predates side names. */
5980
- readonly side_names: readonly string[] | null;
5981
- /** @description The question the outcome belongs to, from the same catalog; null for a standalone outcome. */
5982
- readonly question: components["schemas"]["OutcomeNativeQuestion"] | null;
5983
- };
5984
- /** @description An imagery subject's key: its kind, a colon and its normalized name, such as team:detroit lions. */
5985
- readonly SubjectKey: string;
5986
- readonly PictureSubject: {
5987
- /**
5988
- * @description SUBJECT: a subject described once in the answer's `subjects`.
5989
- * @constant
5990
- */
5991
- readonly type: "SUBJECT";
5992
- /** @description The subject's key in `subjects`. */
5993
- readonly key: components["schemas"]["SubjectKey"];
5994
- };
5995
- readonly PictureGlyph: {
5996
- /**
5997
- * @description GLYPH: a mark of the client's own, never artwork.
5998
- * @constant
5999
- */
6000
- readonly type: "GLYPH";
6001
- /**
6002
- * @description DRAW: a contest's draw outcome. TOTAL: an over/under line, drawn as Over for Yes and Under for No where the side is known.
6003
- * @enum {string}
6004
- */
6005
- readonly glyph: "DRAW" | "TOTAL";
6006
- };
6007
- readonly Picture: components["schemas"]["PictureSubject"] | components["schemas"]["PictureGlyph"];
6008
- /** @description Finished pictures for each place an outcome is drawn. null: nothing to picture there; a caller that needs a picture draws a coin from the title's initials. */
6009
- readonly OutcomePictures: {
6010
- /** @description The market as a whole, for a card or a header: its question's subject, or the TOTAL glyph for an over/under line. */
6011
- readonly market: components["schemas"]["Picture"] | null;
6012
- /** @description Holding or buying Yes, then No: the side's own subject when it has an image, else the question's subject when it has one, else whichever of them is known (drawn as its coin). A draw carries the DRAW glyph, an over/under line the TOTAL glyph. */
6013
- readonly pick: readonly (components["schemas"]["Picture"] | null)[];
6014
- /** @description Holding or buying the outcome before a side is chosen, by the same rule as `pick` with the option's own subject only: a winner's or spread's sides are its teams, so with no side it shows the question's subject. */
6015
- readonly pick_no_side: components["schemas"]["Picture"] | null;
6016
- /** @description Yes's and No's own subject with no fallback: the team a side of a winner or spread backs, or the option's own subject (a team, a candidate); null where the side has none. Never a glyph. */
6017
- readonly own: readonly (components["schemas"]["Picture"] | null)[];
6018
- /** @description The outcome as one option in its question's list: its own subject when it has an image, the DRAW glyph, or, for an option with no subject of its own (Other), the question's subject when it has an image and another option of the question has an image of its own; else null. Decided from the whole question, so a row reads the same alone as in its list. Its subject always has an image; show a list's picture column only while some row has a subject. */
6019
- readonly row: components["schemas"]["Picture"] | null;
6020
- /** @description Participant A's and B's subjects in the outcome's sport when its keywords name both (a game's winner, spread or total, or an option of a contest between them); null otherwise. */
6021
- readonly teams: readonly (components["schemas"]["PictureSubject"] | null)[] | null;
6022
- };
6023
- readonly OutcomeDisplay: {
6024
- /** @description Hyperliquid outcome ID. */
6025
- readonly outcome_id: components["schemas"]["UInt32String"];
6026
- /** @description English display title, the market's `title`. */
6027
- readonly title: string;
6028
- /** @description The outcome as Hyperliquid listed it, for a client that names markets itself. */
6029
- readonly native: components["schemas"]["OutcomeNative"];
6030
- /** @description Finished pictures for each place the outcome is drawn. */
6031
- readonly pictures: components["schemas"]["OutcomePictures"];
6032
- };
6033
- readonly PictureVariant: {
6034
- /**
6035
- * @description Width and height in pixels.
6036
- * @enum {integer}
6037
- */
6038
- readonly size: 64 | 128 | 256;
6039
- /** @description Public WebP image URL. */
6040
- readonly url: string;
6041
- };
6042
- readonly OklchColor: {
6043
- /** @description Oklch lightness, 0 to 1. */
6044
- readonly l: number;
6045
- /** @description Oklch chroma. */
6046
- readonly c: number;
6047
- /** @description Hue in degrees. */
6048
- readonly h: number;
6049
- };
6050
- readonly SubjectImage: {
6051
- /**
6052
- * @description ICON: a logo inset on a transparent square, drawn whole. PHOTO: a photo that fills its circle.
6053
- * @enum {string}
6054
- */
6055
- readonly fit: "ICON" | "PHOTO";
6056
- /** @description Square WebP renditions at 64, 128 and 256 pixels, in that order. Their URLs never change content. */
6057
- readonly variants: readonly components["schemas"]["PictureVariant"][];
6058
- /** @description The image's chromatic colors, most used first, for team and chart line colors; absent where imagery recorded none. A line wears its side's `own` subject's palette when that subject has an image, or, when it is a chart's only line and its side's own subject has none, `market`'s; a line whose `pick` is a glyph wears none. */
6059
- readonly palette?: readonly components["schemas"]["OklchColor"][];
6060
- };
6061
- readonly Subject: {
6062
- /** @description The subject's name, for alternative text. */
6063
- readonly label: string;
6064
- /** @description The subject's short mark, drawn on a coin when it has no image, while its image loads or when it fails. */
6065
- readonly monogram: string;
6066
- /** @description The subject's artwork; null for a known subject without any, drawn as its coin. */
6067
- readonly image: components["schemas"]["SubjectImage"] | null;
6068
- };
6069
- /** @description Each subject a picture of the answer names, once, by key. */
6070
- readonly Subjects: {
6071
- readonly [key: string]: components["schemas"]["Subject"];
6072
- };
6073
6615
  readonly MarketDisplay: {
6074
6616
  /**
6075
6617
  * @description Hyperliquid network the outcomes are listed on.
@@ -8600,7 +9142,13 @@ export interface operations {
8600
9142
  };
8601
9143
  readonly getSuggestedCombo: {
8602
9144
  readonly parameters: {
8603
- readonly query?: never;
9145
+ readonly query?: {
9146
+ /**
9147
+ * @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.
9148
+ * @example true
9149
+ */
9150
+ readonly display?: components["schemas"]["DisplayQuery"];
9151
+ };
8604
9152
  readonly header?: never;
8605
9153
  readonly path?: never;
8606
9154
  readonly cookie?: never;
@@ -8610,7 +9158,8 @@ export interface operations {
8610
9158
  /** @description Suggested Combos */
8611
9159
  readonly 200: {
8612
9160
  headers: {
8613
- readonly "Cache-Control"?: "public, max-age=60";
9161
+ /** @description An answer asked with display=true that does not picture every leg is no-store; every other answer is public for 60 seconds. */
9162
+ readonly "Cache-Control"?: "public, max-age=60" | "no-store";
8614
9163
  readonly [name: string]: unknown;
8615
9164
  };
8616
9165
  content: {
@@ -8622,6 +9171,8 @@ export interface operations {
8622
9171
  * @description Deprecated: the first of `combos`, or null. Kept one release for deployed clients; removed once the frontend reads `combos`.
8623
9172
  */
8624
9173
  readonly combo: null | components["schemas"]["SuggestedCombo"];
9174
+ /** @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. */
9175
+ readonly display?: components["schemas"]["PageDisplay"];
8625
9176
  };
8626
9177
  };
8627
9178
  };
@@ -9421,6 +9972,300 @@ export interface operations {
9421
9972
  readonly 503: components["responses"]["Unavailable"];
9422
9973
  };
9423
9974
  };
9975
+ readonly getSocialPerson: {
9976
+ readonly parameters: {
9977
+ readonly query?: never;
9978
+ readonly header?: never;
9979
+ readonly path: {
9980
+ /** @description The person's username. */
9981
+ readonly username: components["schemas"]["Username"];
9982
+ };
9983
+ readonly cookie?: never;
9984
+ };
9985
+ readonly requestBody?: never;
9986
+ readonly responses: {
9987
+ /** @description The profile */
9988
+ readonly 200: {
9989
+ headers: {
9990
+ /** @description public, max-age=30 for a signed-out read, which the edge may share; no-store for one with a credential. */
9991
+ readonly "Cache-Control"?: "public, max-age=30" | "no-store";
9992
+ readonly [name: string]: unknown;
9993
+ };
9994
+ content: {
9995
+ readonly "application/json": components["schemas"]["Profile"];
9996
+ };
9997
+ };
9998
+ readonly 400: components["responses"]["Error"];
9999
+ readonly 401: components["responses"]["Error"];
10000
+ readonly 403: components["responses"]["Error"];
10001
+ readonly 404: components["responses"]["Error"];
10002
+ readonly 429: components["responses"]["RateLimited"];
10003
+ readonly 503: components["responses"]["Unavailable"];
10004
+ };
10005
+ };
10006
+ readonly listSocialPositions: {
10007
+ readonly parameters: {
10008
+ readonly query?: {
10009
+ /**
10010
+ * @description Omit for the first page; then send the previous response's next_cursor unchanged.
10011
+ * @example eyJ2IjoxLCJzIjoiMTIzNDUifQ
10012
+ */
10013
+ readonly cursor?: components["parameters"]["Cursor"];
10014
+ /**
10015
+ * @description Maximum items per page, 1 to 200, default 50. A page may hold fewer, even none, while has_more is true.
10016
+ * @example 50
10017
+ */
10018
+ readonly limit?: components["parameters"]["Limit"];
10019
+ };
10020
+ readonly header?: never;
10021
+ readonly path: {
10022
+ /** @description The person's username. */
10023
+ readonly username: components["schemas"]["Username"];
10024
+ };
10025
+ readonly cookie?: never;
10026
+ };
10027
+ readonly requestBody?: never;
10028
+ readonly responses: {
10029
+ /** @description A page of positions */
10030
+ readonly 200: {
10031
+ headers: {
10032
+ /** @description public, max-age=30 for a signed-out read, which the edge may share; no-store for one with a credential. */
10033
+ readonly "Cache-Control"?: "public, max-age=30" | "no-store";
10034
+ readonly [name: string]: unknown;
10035
+ };
10036
+ content: {
10037
+ readonly "application/json": components["schemas"]["PositionPage"];
10038
+ };
10039
+ };
10040
+ readonly 400: components["responses"]["Error"];
10041
+ readonly 401: components["responses"]["Error"];
10042
+ readonly 403: components["responses"]["Error"];
10043
+ readonly 404: components["responses"]["Error"];
10044
+ readonly 429: components["responses"]["RateLimited"];
10045
+ readonly 503: components["responses"]["Unavailable"];
10046
+ };
10047
+ };
10048
+ readonly getSocialPosition: {
10049
+ readonly parameters: {
10050
+ readonly query?: {
10051
+ /** @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. */
10052
+ readonly episode?: components["schemas"]["EpisodeId"];
10053
+ };
10054
+ readonly header?: never;
10055
+ readonly path: {
10056
+ /** @description The person's username. */
10057
+ readonly username: components["schemas"]["Username"];
10058
+ /** @description A HIP-4 outcome ID as a decimal string, or a Combo ticket ID as lowercase bytes32 hex. */
10059
+ readonly position: components["schemas"]["UInt32String"] | components["schemas"]["Bytes32"];
10060
+ };
10061
+ readonly cookie?: never;
10062
+ };
10063
+ readonly requestBody?: never;
10064
+ readonly responses: {
10065
+ /** @description The position */
10066
+ readonly 200: {
10067
+ headers: {
10068
+ /** @description public, max-age=30 for a signed-out read, which the edge may share; no-store for one with a credential. */
10069
+ readonly "Cache-Control"?: "public, max-age=30" | "no-store";
10070
+ readonly [name: string]: unknown;
10071
+ };
10072
+ content: {
10073
+ readonly "application/json": components["schemas"]["$defs-Position"];
10074
+ };
10075
+ };
10076
+ readonly 400: components["responses"]["Error"];
10077
+ readonly 401: components["responses"]["Error"];
10078
+ readonly 403: components["responses"]["Error"];
10079
+ readonly 404: components["responses"]["Error"];
10080
+ readonly 429: components["responses"]["RateLimited"];
10081
+ readonly 503: components["responses"]["Unavailable"];
10082
+ };
10083
+ };
10084
+ readonly listSocialActivity: {
10085
+ readonly parameters: {
10086
+ readonly query?: {
10087
+ /**
10088
+ * @description Omit for the first page; then send the previous response's next_cursor unchanged.
10089
+ * @example eyJ2IjoxLCJzIjoiMTIzNDUifQ
10090
+ */
10091
+ readonly cursor?: components["parameters"]["Cursor"];
10092
+ /**
10093
+ * @description Maximum items per page, 1 to 200, default 50. A page may hold fewer, even none, while has_more is true.
10094
+ * @example 50
10095
+ */
10096
+ readonly limit?: components["parameters"]["Limit"];
10097
+ };
10098
+ readonly header?: never;
10099
+ readonly path: {
10100
+ /** @description The person's username. */
10101
+ readonly username: components["schemas"]["Username"];
10102
+ };
10103
+ readonly cookie?: never;
10104
+ };
10105
+ readonly requestBody?: never;
10106
+ readonly responses: {
10107
+ /** @description A page of activity */
10108
+ readonly 200: {
10109
+ headers: {
10110
+ /** @description public, max-age=30 for a signed-out read, which the edge may share; no-store for one with a credential. */
10111
+ readonly "Cache-Control"?: "public, max-age=30" | "no-store";
10112
+ readonly [name: string]: unknown;
10113
+ };
10114
+ content: {
10115
+ readonly "application/json": components["schemas"]["FeedPage"];
10116
+ };
10117
+ };
10118
+ readonly 400: components["responses"]["Error"];
10119
+ readonly 401: components["responses"]["Error"];
10120
+ readonly 403: components["responses"]["Error"];
10121
+ readonly 404: components["responses"]["Error"];
10122
+ readonly 429: components["responses"]["RateLimited"];
10123
+ readonly 503: components["responses"]["Unavailable"];
10124
+ };
10125
+ };
10126
+ readonly listSocialFeed: {
10127
+ readonly parameters: {
10128
+ readonly query?: {
10129
+ /**
10130
+ * @description Omit for the first page; then send the previous response's next_cursor unchanged.
10131
+ * @example eyJ2IjoxLCJzIjoiMTIzNDUifQ
10132
+ */
10133
+ readonly cursor?: components["parameters"]["Cursor"];
10134
+ /**
10135
+ * @description Maximum items per page, 1 to 200, default 50. A page may hold fewer, even none, while has_more is true.
10136
+ * @example 50
10137
+ */
10138
+ readonly limit?: components["parameters"]["Limit"];
10139
+ };
10140
+ readonly header?: never;
10141
+ readonly path?: never;
10142
+ readonly cookie?: never;
10143
+ };
10144
+ readonly requestBody?: never;
10145
+ readonly responses: {
10146
+ /** @description A page of the feed */
10147
+ readonly 200: {
10148
+ headers: {
10149
+ /** @description public, max-age=30 for a signed-out read, which the edge may share; no-store for one with a credential. */
10150
+ readonly "Cache-Control"?: "public, max-age=30" | "no-store";
10151
+ readonly [name: string]: unknown;
10152
+ };
10153
+ content: {
10154
+ readonly "application/json": components["schemas"]["FeedPage"];
10155
+ };
10156
+ };
10157
+ readonly 400: components["responses"]["Error"];
10158
+ readonly 401: components["responses"]["Error"];
10159
+ readonly 403: components["responses"]["Error"];
10160
+ readonly 429: components["responses"]["RateLimited"];
10161
+ readonly 503: components["responses"]["Unavailable"];
10162
+ };
10163
+ };
10164
+ readonly listFollowingFeed: {
10165
+ readonly parameters: {
10166
+ readonly query?: {
10167
+ /**
10168
+ * @description Omit for the first page; then send the previous response's next_cursor unchanged.
10169
+ * @example eyJ2IjoxLCJzIjoiMTIzNDUifQ
10170
+ */
10171
+ readonly cursor?: components["parameters"]["Cursor"];
10172
+ /**
10173
+ * @description Maximum items per page, 1 to 200, default 50. A page may hold fewer, even none, while has_more is true.
10174
+ * @example 50
10175
+ */
10176
+ readonly limit?: components["parameters"]["Limit"];
10177
+ };
10178
+ readonly header?: never;
10179
+ readonly path?: never;
10180
+ readonly cookie?: never;
10181
+ };
10182
+ readonly requestBody?: never;
10183
+ readonly responses: {
10184
+ /** @description A page of the reader's feed */
10185
+ readonly 200: {
10186
+ headers: {
10187
+ readonly "Cache-Control"?: "no-store";
10188
+ readonly [name: string]: unknown;
10189
+ };
10190
+ content: {
10191
+ readonly "application/json": components["schemas"]["FeedPage"];
10192
+ };
10193
+ };
10194
+ readonly 400: components["responses"]["Error"];
10195
+ readonly 401: components["responses"]["Error"];
10196
+ readonly 403: components["responses"]["Error"];
10197
+ readonly 404: components["responses"]["Error"];
10198
+ readonly 429: components["responses"]["RateLimited"];
10199
+ readonly 503: components["responses"]["Unavailable"];
10200
+ };
10201
+ };
10202
+ readonly listFollowingPositions: {
10203
+ readonly parameters: {
10204
+ readonly query: {
10205
+ /** @description Comma-separated HIP-4 outcome IDs, 1 to 200 distinct, as a market page lists them. */
10206
+ readonly outcome_ids: readonly components["schemas"]["UInt32String"][];
10207
+ };
10208
+ readonly header?: never;
10209
+ readonly path?: never;
10210
+ readonly cookie?: never;
10211
+ };
10212
+ readonly requestBody?: never;
10213
+ readonly responses: {
10214
+ /** @description Who the reader follows is in */
10215
+ readonly 200: {
10216
+ headers: {
10217
+ readonly "Cache-Control"?: "no-store";
10218
+ readonly [name: string]: unknown;
10219
+ };
10220
+ content: {
10221
+ readonly "application/json": components["schemas"]["FollowingPositions"];
10222
+ };
10223
+ };
10224
+ readonly 400: components["responses"]["Error"];
10225
+ readonly 401: components["responses"]["Error"];
10226
+ readonly 403: components["responses"]["Error"];
10227
+ readonly 404: components["responses"]["Error"];
10228
+ readonly 429: components["responses"]["RateLimited"];
10229
+ readonly 503: components["responses"]["Unavailable"];
10230
+ };
10231
+ };
10232
+ readonly getSocialLeaderboard: {
10233
+ readonly parameters: {
10234
+ readonly query?: {
10235
+ /** @description VOLUME (default) or PNL. */
10236
+ readonly metric?: "VOLUME" | "PNL";
10237
+ /** @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. */
10238
+ readonly range?: "1W" | "ALL";
10239
+ /** @description 1-based page of 25 ranks; 1 by default. A page past the last is empty, with pages and you still set. */
10240
+ readonly page?: number;
10241
+ /** @description The as_of of an earlier page, to read the ranking it came from; the newest when absent. */
10242
+ readonly as_of?: components["schemas"]["$defs-Timestamp"];
10243
+ };
10244
+ readonly header?: never;
10245
+ readonly path?: never;
10246
+ readonly cookie?: never;
10247
+ };
10248
+ readonly requestBody?: never;
10249
+ readonly responses: {
10250
+ /** @description One page of the ranking */
10251
+ readonly 200: {
10252
+ headers: {
10253
+ readonly "Cache-Control"?: "no-store";
10254
+ readonly [name: string]: unknown;
10255
+ };
10256
+ content: {
10257
+ readonly "application/json": components["schemas"]["Leaderboard"];
10258
+ };
10259
+ };
10260
+ readonly 400: components["responses"]["Error"];
10261
+ readonly 401: components["responses"]["Error"];
10262
+ readonly 403: components["responses"]["Error"];
10263
+ readonly 404: components["responses"]["Error"];
10264
+ readonly 409: components["responses"]["Error"];
10265
+ readonly 429: components["responses"]["RateLimited"];
10266
+ readonly 503: components["responses"]["Unavailable"];
10267
+ };
10268
+ };
9424
10269
  readonly listFollows: {
9425
10270
  readonly parameters: {
9426
10271
  readonly query?: never;