@totalis/hip4-client 0.90.0 → 0.92.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,42 @@
3
3
  `@totalis/hip4-client` follows [semantic versioning](https://semver.org).
4
4
  The contract version the generated types come from is `sdkVersion` in `./version`.
5
5
 
6
+ ## 0.92.0
7
+
8
+ ### Added
9
+
10
+ - Genesis Accounts (contract 219). `getMyGenesis` (`GET /v1/me/genesis`)
11
+ returns the account's progress toward the Genesis Account badge: when it
12
+ signed up against `signup_before`, whether X is bound, its own Combo stake
13
+ against `required_stake` (USDC base units) and the `deadline`, plus
14
+ `earned_at` once earned. Answers `CONTRACT_UNAVAILABLE` where Genesis is
15
+ off. Additive.
16
+ - Partner fills (TT-2749, contract `220.0.0-partner-fills`). `fills()` on
17
+ `createPartnerServer` (`GET /v1/partner/fills`) pages through each fee
18
+ event on positions opened through your builder codes, oldest first: its
19
+ opening (`ACCEPT`), claims (`CLAIM`) and sales back to the vault
20
+ (`CASH_OUT`), with the wallet that acted, the position and its legs, the
21
+ amount, the fee, the position's stake and payout (its price), your
22
+ `share_bps` that day, block time and transaction. Their fees add up to the
23
+ report's `total_fees` for the same range. `next_cursor` follows the last
24
+ fill even on the last page, so keep it to read new fills later. Additive.
25
+
26
+ ## 0.91.0
27
+
28
+ ### Added
29
+
30
+ - An in-app inbox (contract 217). `listMyNotifications`
31
+ (`GET /v1/me/notifications`) returns the account's 50 newest
32
+ notifications, newest first, and how many are unread. The only kind is
33
+ `FEATURE_UNLOCKED`, whose `subject` names the feature: `REFERRALS`, once the
34
+ account has traded $5 and its own invite link admits people. A client shows
35
+ only kinds and subjects it knows. `markMyNotificationsRead`
36
+ (`POST /v1/me/notifications/read`, with an Idempotency-Key) marks 1 to 50
37
+ `ids`, or `all`, read. Additive.
38
+ - New Sports subcategory filters: Copa del Rey (`copa_del_rey`), DFB-Pokal
39
+ (`dfb_pokal`) and Süper Lig (`super_lig`). Contract
40
+ `218.0.0-more-leagues`. Additive.
41
+
6
42
  ## 0.90.0
7
43
 
8
44
  ### Added
@@ -237,7 +237,7 @@ export type components = {
237
237
  readonly CategorySlug: "crypto" | "economics" | "entertainment" | "esports" | "finance" | "politics" | "sports" | "tech" | "weather";
238
238
  readonly Subcategory: string | null;
239
239
  /** @enum {string} */
240
- readonly schema: "nba" | "ncaa" | "nfl" | "nhl" | "mlb" | "ufc" | "lol" | "counter_strike" | "epl" | "ucl" | "uel" | "efl" | "la_liga" | "serie_a" | "bundesliga" | "ligue_1" | "liga_portugal" | "nations_league" | "world_cup" | "f1" | "ipl" | "cricket" | "transfers" | "btc" | "eth" | "sol" | "hype" | "up_down" | "stocks" | "indices" | "etfs" | "earnings" | "rates" | "inflation" | "commodities" | "fx" | "usa" | "global" | "other";
240
+ readonly schema: "nba" | "ncaa" | "nfl" | "nhl" | "mlb" | "ufc" | "lol" | "counter_strike" | "epl" | "ucl" | "uel" | "efl" | "copa_del_rey" | "dfb_pokal" | "la_liga" | "serie_a" | "bundesliga" | "ligue_1" | "liga_portugal" | "super_lig" | "nations_league" | "world_cup" | "f1" | "ipl" | "cricket" | "transfers" | "btc" | "eth" | "sol" | "hype" | "up_down" | "stocks" | "indices" | "etfs" | "earnings" | "rates" | "inflation" | "commodities" | "fx" | "usa" | "global" | "other";
241
241
  readonly Slug: components["schemas"]["Subcategory"] & string & components["schemas"]["schema"];
242
242
  /** @enum {string} */
243
243
  readonly Frequency: "5m" | "15m" | "hourly" | "daily" | "weekly" | "monthly";
@@ -25,6 +25,7 @@ export type paths = {
25
25
  readonly "/v1/auth/wallet-sessions/current": Pick<SharedPaths["/v1/auth/wallet-sessions/current"], "parameters" | "delete">;
26
26
  readonly "/v1/partner/wallet-admissions": Pick<SharedPaths["/v1/partner/wallet-admissions"], "parameters" | "post">;
27
27
  readonly "/v1/partner/report": Pick<SharedPaths["/v1/partner/report"], "parameters" | "get">;
28
+ readonly "/v1/partner/fills": Pick<SharedPaths["/v1/partner/fills"], "parameters" | "get">;
28
29
  readonly "/v1/me/acquisition": Pick<SharedPaths["/v1/me/acquisition"], "parameters" | "put">;
29
30
  readonly "/v1/me/username": Pick<SharedPaths["/v1/me/username"], "parameters" | "put">;
30
31
  readonly "/v1/me/username/availability": Pick<SharedPaths["/v1/me/username/availability"], "parameters" | "get">;
@@ -53,6 +54,9 @@ export type paths = {
53
54
  readonly "/v1/me/copy-settings": Pick<SharedPaths["/v1/me/copy-settings"], "parameters" | "get" | "put">;
54
55
  readonly "/v1/me/copy-trades": Pick<SharedPaths["/v1/me/copy-trades"], "parameters" | "get">;
55
56
  readonly "/v1/me/combo-copies": Pick<SharedPaths["/v1/me/combo-copies"], "parameters" | "get">;
57
+ readonly "/v1/me/notifications": Pick<SharedPaths["/v1/me/notifications"], "parameters" | "get">;
58
+ readonly "/v1/me/notifications/read": Pick<SharedPaths["/v1/me/notifications/read"], "parameters" | "post">;
59
+ readonly "/v1/me/genesis": Pick<SharedPaths["/v1/me/genesis"], "parameters" | "get">;
56
60
  readonly "/v1/me/copy-summary": Pick<SharedPaths["/v1/me/copy-summary"], "parameters" | "get">;
57
61
  readonly "/v1/me/copy-fills": Pick<SharedPaths["/v1/me/copy-fills"], "parameters" | "get">;
58
62
  readonly "/v1/me/copy-agents": Pick<SharedPaths["/v1/me/copy-agents"], "parameters" | "get">;
@@ -113,4 +117,4 @@ export type paths = {
113
117
  readonly "/v1/makers/{maker_id}/exposure": Pick<SharedPaths["/v1/makers/{maker_id}/exposure"], "parameters" | "get">;
114
118
  readonly "/v1/makers/{maker_id}/performance": Pick<SharedPaths["/v1/makers/{maker_id}/performance"], "parameters" | "get">;
115
119
  };
116
- export type operations = Pick<SharedOperations, "abandonCoreExit" | "acceptQuote" | "activeCoreExits" | "admitOwnMaker" | "admitPartnerWallet" | "approveWallet" | "bindEmbeddedWallet" | "cancelRfq" | "confirmComboCopyAgent" | "confirmCoreCopyAgent" | "createCashout" | "createComment" | "createCoreExit" | "createDeposit" | "createGoldenRfq" | "createRfq" | "createRunOffClaim" | "createWalletChallenge" | "createWalletSession" | "createWithdrawal" | "deleteComment" | "editComment" | "endWalletSession" | "followTrader" | "getAcceptance" | "getAccountActivity" | "getAccountPnl" | "getAccountPosition" | "getBalances" | "getCopyAgents" | "getCopyBudget" | "getCopySettings" | "getCopySummary" | "getCoreExit" | "getDeployment" | "getGolden" | "getGoldenMarkets" | "getGoldenOffer" | "getGoldenSuggestions" | "getHypercoreBalance" | "getHypercorePortfolio" | "getHypercoreSettlementCredits" | "getIdentity" | "getMakerActivity" | "getMakerCapital" | "getMakerExposure" | "getMakerPerformance" | "getMakerPosition" | "getMakerQuotes" | "getMakerTelemetry" | "getMakerVaultFundingTransaction" | "getMakerWithdrawal" | "getMarket" | "getMarketDataConfig" | "getMarketDefinitions" | "getMarketHistory" | "getMarketRecurringRound" | "getMarketReferenceCloses" | "getMarketScoreTimeline" | "getMarketStats" | "getOperation" | "getOwnMaker" | "getPartnerReport" | "getPerpMarks" | "getProfitLeaderboard" | "getQuestion" | "getQuestionRecurringRound" | "getQuestionScoreTimeline" | "getRfq" | "getSeries" | "getSuggestedCombo" | "getTaxonomy" | "getTrader" | "getTraderPnl" | "getUsernameAvailability" | "getVaultAgents" | "getVolumeLeaderboard" | "getWalletApproval" | "getWithdrawal" | "grantComboCopyAgent" | "grantVaultAgent" | "likeComment" | "listAccountActivity" | "listAccountPositions" | "listComboCopies" | "listComboFeed" | "listCommentReplies" | "listComments" | "listControlledMakers" | "listCopiedFills" | "listCopyTrades" | "listDiscovery" | "listFollows" | "listMakerActivity" | "listMakerPositions" | "listMakerQuoteHistory" | "listMarkets" | "listOperations" | "listQuotes" | "listTraderPositions" | "listTraderTrades" | "placeGolden" | "reactComment" | "recordAcquisition" | "refreshPicture" | "requestComboCopyAgent" | "requestCoreCopyAgent" | "revokeComboCopyAgent" | "searchCatalog" | "setAvatar" | "setCopyAllocation" | "setCopySettings" | "setPublicProfile" | "setUsername" | "setXHandleShown" | "signGoldenGift" | "stream" | "streamMarkets" | "switchOffComboCopyAgent" | "switchOffCoreCopyAgent" | "unfollowTrader" | "unlikeComment" | "unreactComment">;
120
+ export type operations = Pick<SharedOperations, "abandonCoreExit" | "acceptQuote" | "activeCoreExits" | "admitOwnMaker" | "admitPartnerWallet" | "approveWallet" | "bindEmbeddedWallet" | "cancelRfq" | "confirmComboCopyAgent" | "confirmCoreCopyAgent" | "createCashout" | "createComment" | "createCoreExit" | "createDeposit" | "createGoldenRfq" | "createRfq" | "createRunOffClaim" | "createWalletChallenge" | "createWalletSession" | "createWithdrawal" | "deleteComment" | "editComment" | "endWalletSession" | "followTrader" | "getAcceptance" | "getAccountActivity" | "getAccountPnl" | "getAccountPosition" | "getBalances" | "getCopyAgents" | "getCopyBudget" | "getCopySettings" | "getCopySummary" | "getCoreExit" | "getDeployment" | "getGolden" | "getGoldenMarkets" | "getGoldenOffer" | "getGoldenSuggestions" | "getHypercoreBalance" | "getHypercorePortfolio" | "getHypercoreSettlementCredits" | "getIdentity" | "getMakerActivity" | "getMakerCapital" | "getMakerExposure" | "getMakerPerformance" | "getMakerPosition" | "getMakerQuotes" | "getMakerTelemetry" | "getMakerVaultFundingTransaction" | "getMakerWithdrawal" | "getMarket" | "getMarketDataConfig" | "getMarketDefinitions" | "getMarketHistory" | "getMarketRecurringRound" | "getMarketReferenceCloses" | "getMarketScoreTimeline" | "getMarketStats" | "getMyGenesis" | "getOperation" | "getOwnMaker" | "getPartnerReport" | "getPerpMarks" | "getProfitLeaderboard" | "getQuestion" | "getQuestionRecurringRound" | "getQuestionScoreTimeline" | "getRfq" | "getSeries" | "getSuggestedCombo" | "getTaxonomy" | "getTrader" | "getTraderPnl" | "getUsernameAvailability" | "getVaultAgents" | "getVolumeLeaderboard" | "getWalletApproval" | "getWithdrawal" | "grantComboCopyAgent" | "grantVaultAgent" | "likeComment" | "listAccountActivity" | "listAccountPositions" | "listComboCopies" | "listComboFeed" | "listCommentReplies" | "listComments" | "listControlledMakers" | "listCopiedFills" | "listCopyTrades" | "listDiscovery" | "listFollows" | "listMakerActivity" | "listMakerPositions" | "listMakerQuoteHistory" | "listMarkets" | "listMyNotifications" | "listOperations" | "listPartnerFills" | "listQuotes" | "listTraderPositions" | "listTraderTrades" | "markMyNotificationsRead" | "placeGolden" | "reactComment" | "recordAcquisition" | "refreshPicture" | "requestComboCopyAgent" | "requestCoreCopyAgent" | "revokeComboCopyAgent" | "searchCatalog" | "setAvatar" | "setCopyAllocation" | "setCopySettings" | "setPublicProfile" | "setUsername" | "setXHandleShown" | "signGoldenGift" | "stream" | "streamMarkets" | "switchOffComboCopyAgent" | "switchOffCoreCopyAgent" | "unfollowTrader" | "unlikeComment" | "unreactComment">;
@@ -448,6 +448,7 @@ export declare const operationErrors: {
448
448
  readonly getMarketReferenceCloses: readonly ["INVALID_REQUEST", "NOT_FOUND", "MARKET_DATA_UNAVAILABLE", "INVALID_QUERY", "INVALID_CURSOR", "STALE_CURSOR"];
449
449
  readonly getMarketScoreTimeline: readonly ["INVALID_REQUEST", "NOT_FOUND", "MARKET_DATA_UNAVAILABLE", "INVALID_QUERY"];
450
450
  readonly getMarketStats: readonly ["MARKET_DATA_UNAVAILABLE", "INVALID_QUERY"];
451
+ readonly getMyGenesis: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY", "CONTRACT_UNAVAILABLE"];
451
452
  readonly getOperation: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND", "IDENTITY_NOT_FOUND"];
452
453
  readonly getOwnMaker: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "NOT_FOUND", "IDENTITY_NOT_FOUND"];
453
454
  readonly getPartnerReport: readonly ["INVALID_QUERY", "UNAUTHENTICATED", "FORBIDDEN", "RATE_LIMITED", "AUTHORIZATION_UNAVAILABLE", "SOURCE_UNAVAILABLE"];
@@ -488,14 +489,17 @@ export declare const operationErrors: {
488
489
  readonly listMakerPositions: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_QUERY", "ORIGIN_REQUIRED", "NOT_FOUND", "SOURCE_UNAVAILABLE", "CONTRACT_UNAVAILABLE", "CURSOR_EXPIRED", "IDENTITY_NOT_FOUND"];
489
490
  readonly listMakerQuoteHistory: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_QUERY", "ORIGIN_REQUIRED", "NOT_FOUND", "SOURCE_UNAVAILABLE", "CONTRACT_UNAVAILABLE", "CURSOR_EXPIRED", "IDENTITY_NOT_FOUND"];
490
491
  readonly listMarkets: readonly ["INVALID_QUERY", "INVALID_CURSOR", "MARKET_DATA_UNAVAILABLE"];
492
+ readonly listMyNotifications: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY", "CONTRACT_UNAVAILABLE"];
491
493
  readonly listOperations: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_QUERY", "INVALID_CURSOR", "IDENTITY_NOT_FOUND"];
492
494
  readonly listOperatorApiKeys: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND"];
495
+ readonly listPartnerFills: readonly ["INVALID_QUERY", "INVALID_CURSOR", "UNAUTHENTICATED", "FORBIDDEN", "RATE_LIMITED", "AUTHORIZATION_UNAVAILABLE", "SOURCE_UNAVAILABLE"];
493
496
  readonly listPersonalApiKeys: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND"];
494
497
  readonly listQuotes: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND", "IDENTITY_NOT_FOUND"];
495
498
  readonly listRfqs: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_QUERY", "INVALID_CURSOR"];
496
499
  readonly listTraderPositions: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_QUERY", "NOT_FOUND", "SOURCE_UNAVAILABLE"];
497
500
  readonly listTraderTrades: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_QUERY", "NOT_FOUND", "SOURCE_UNAVAILABLE"];
498
501
  readonly live: readonly [];
502
+ readonly markMyNotificationsRead: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_REQUEST", "INVALID_IDEMPOTENCY_KEY", "CONTRACT_UNAVAILABLE"];
499
503
  readonly placeGolden: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_REQUEST", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED", "NOT_FOUND", "CONTRACT_UNAVAILABLE", "GOLDEN_TICKET_NONE", "GOLDEN_TICKET_USED", "GOLDEN_TICKET_EXPIRED", "GOLDEN_PLACEMENT_IN_FLIGHT", "GOLDEN_LEG_COUNT", "GOLDEN_LEG_NOT_ELIGIBLE", "GOLDEN_QUOTE_NOT_HOUSE", "GOLDEN_OFFER_BELOW_FLOOR", "QUOTE_EXPIRED", "QUOTE_REPLACED", "GOLDEN_PROMO_BUSY", "GOLDEN_PROMO_FUNDS_LOW", "WRONG_AUTHORITY", "STATE_CONFLICT", "ACCEPTANCE_IN_FLIGHT", "FINANCIAL_ACTIONS_DISABLED", "GAS_PRICE_ABOVE_CEILING", "EXECUTION_BACKLOG_FULL", "BROWSE_UNAVAILABLE"];
500
504
  readonly publishMakerTelemetry: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_QUERY", "NOT_FOUND", "CONTRACT_UNAVAILABLE", "TELEMETRY_CONFLICT", "INVALID_REQUEST"];
501
505
  readonly reactComment: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "NOT_FOUND", "INVALID_IDEMPOTENCY_KEY"];
@@ -1236,6 +1236,16 @@ export const operationErrors = {
1236
1236
  "MARKET_DATA_UNAVAILABLE",
1237
1237
  "INVALID_QUERY"
1238
1238
  ],
1239
+ "getMyGenesis": [
1240
+ "UNAUTHENTICATED",
1241
+ "FORBIDDEN",
1242
+ "AUTHORIZATION_UNAVAILABLE",
1243
+ "RATE_LIMITED",
1244
+ "ORIGIN_REQUIRED",
1245
+ "IDENTITY_NOT_FOUND",
1246
+ "INVALID_QUERY",
1247
+ "CONTRACT_UNAVAILABLE"
1248
+ ],
1239
1249
  "getOperation": [
1240
1250
  "UNAUTHENTICATED",
1241
1251
  "FORBIDDEN",
@@ -1626,6 +1636,16 @@ export const operationErrors = {
1626
1636
  "INVALID_CURSOR",
1627
1637
  "MARKET_DATA_UNAVAILABLE"
1628
1638
  ],
1639
+ "listMyNotifications": [
1640
+ "UNAUTHENTICATED",
1641
+ "FORBIDDEN",
1642
+ "AUTHORIZATION_UNAVAILABLE",
1643
+ "RATE_LIMITED",
1644
+ "ORIGIN_REQUIRED",
1645
+ "IDENTITY_NOT_FOUND",
1646
+ "INVALID_QUERY",
1647
+ "CONTRACT_UNAVAILABLE"
1648
+ ],
1629
1649
  "listOperations": [
1630
1650
  "UNAUTHENTICATED",
1631
1651
  "FORBIDDEN",
@@ -1645,6 +1665,15 @@ export const operationErrors = {
1645
1665
  "INVALID_REQUEST",
1646
1666
  "NOT_FOUND"
1647
1667
  ],
1668
+ "listPartnerFills": [
1669
+ "INVALID_QUERY",
1670
+ "INVALID_CURSOR",
1671
+ "UNAUTHENTICATED",
1672
+ "FORBIDDEN",
1673
+ "RATE_LIMITED",
1674
+ "AUTHORIZATION_UNAVAILABLE",
1675
+ "SOURCE_UNAVAILABLE"
1676
+ ],
1648
1677
  "listPersonalApiKeys": [
1649
1678
  "UNAUTHENTICATED",
1650
1679
  "FORBIDDEN",
@@ -1692,6 +1721,17 @@ export const operationErrors = {
1692
1721
  "SOURCE_UNAVAILABLE"
1693
1722
  ],
1694
1723
  "live": [],
1724
+ "markMyNotificationsRead": [
1725
+ "UNAUTHENTICATED",
1726
+ "FORBIDDEN",
1727
+ "AUTHORIZATION_UNAVAILABLE",
1728
+ "RATE_LIMITED",
1729
+ "ORIGIN_REQUIRED",
1730
+ "IDENTITY_NOT_FOUND",
1731
+ "INVALID_REQUEST",
1732
+ "INVALID_IDEMPOTENCY_KEY",
1733
+ "CONTRACT_UNAVAILABLE"
1734
+ ],
1695
1735
  "placeGolden": [
1696
1736
  "UNAUTHENTICATED",
1697
1737
  "FORBIDDEN",
@@ -535,6 +535,26 @@ export type paths = {
535
535
  readonly patch?: never;
536
536
  readonly trace?: never;
537
537
  };
538
+ readonly "/v1/partner/fills": {
539
+ readonly parameters: {
540
+ readonly query?: never;
541
+ readonly header?: never;
542
+ readonly path?: never;
543
+ readonly cookie?: never;
544
+ };
545
+ /**
546
+ * List your partner fills
547
+ * @description Each fee event on a position opened through your builder codes, oldest first: its opening, claims and sale back to the vault, with the wallet that acted, the fee and the transaction, whose fees add up to GET /v1/partner/report's total_fees for the same range.
548
+ */
549
+ readonly get: operations["listPartnerFills"];
550
+ readonly put?: never;
551
+ readonly post?: never;
552
+ readonly delete?: never;
553
+ readonly options?: never;
554
+ readonly head?: never;
555
+ readonly patch?: never;
556
+ readonly trace?: never;
557
+ };
538
558
  readonly "/v1/me/acquisition": {
539
559
  readonly parameters: {
540
560
  readonly query?: never;
@@ -1103,6 +1123,66 @@ export type paths = {
1103
1123
  readonly patch?: never;
1104
1124
  readonly trace?: never;
1105
1125
  };
1126
+ readonly "/v1/me/notifications": {
1127
+ readonly parameters: {
1128
+ readonly query?: never;
1129
+ readonly header?: never;
1130
+ readonly path?: never;
1131
+ readonly cookie?: never;
1132
+ };
1133
+ /**
1134
+ * List my notifications
1135
+ * @description The authenticated account's 50 newest notifications, newest first, and how many of all of its notifications are unread. Each is stored once, so it reads the same however often it is asked for.
1136
+ */
1137
+ readonly get: operations["listMyNotifications"];
1138
+ readonly put?: never;
1139
+ readonly post?: never;
1140
+ readonly delete?: never;
1141
+ readonly options?: never;
1142
+ readonly head?: never;
1143
+ readonly patch?: never;
1144
+ readonly trace?: never;
1145
+ };
1146
+ readonly "/v1/me/notifications/read": {
1147
+ readonly parameters: {
1148
+ readonly query?: never;
1149
+ readonly header?: never;
1150
+ readonly path?: never;
1151
+ readonly cookie?: never;
1152
+ };
1153
+ readonly get?: never;
1154
+ readonly put?: never;
1155
+ /**
1156
+ * Mark my notifications read
1157
+ * @description Marks the named notifications of the authenticated account read, or all of them with all set. Name 1 to 50 ids or set all, not both. A notification keeps when it was first read, so a retry under any Idempotency-Key changes nothing; ids that are not the account's are ignored.
1158
+ */
1159
+ readonly post: operations["markMyNotificationsRead"];
1160
+ readonly delete?: never;
1161
+ readonly options?: never;
1162
+ readonly head?: never;
1163
+ readonly patch?: never;
1164
+ readonly trace?: never;
1165
+ };
1166
+ readonly "/v1/me/genesis": {
1167
+ readonly parameters: {
1168
+ readonly query?: never;
1169
+ readonly header?: never;
1170
+ readonly path?: never;
1171
+ readonly cookie?: never;
1172
+ };
1173
+ /**
1174
+ * Get my Genesis Account progress
1175
+ * @description The authenticated account's progress toward the Genesis Account badge. An account earns it, once and for good, if it signed up before signup_before, has X bound and staked more than required_stake of its own money on Combos committed before deadline. A one-leg entry is a single-market buy, not a Combo, and a golden Combo is not the account's own stake. earned_at is present once earned, and stays if X is later unbound. Answers CONTRACT_UNAVAILABLE where Genesis Accounts are off.
1176
+ */
1177
+ readonly get: operations["getMyGenesis"];
1178
+ readonly put?: never;
1179
+ readonly post?: never;
1180
+ readonly delete?: never;
1181
+ readonly options?: never;
1182
+ readonly head?: never;
1183
+ readonly patch?: never;
1184
+ readonly trace?: never;
1185
+ };
1106
1186
  readonly "/v1/me/copy-summary": {
1107
1187
  readonly parameters: {
1108
1188
  readonly query?: never;
@@ -4296,6 +4376,53 @@ export type components = {
4296
4376
  /** @description Every payout to you, newest first. */
4297
4377
  readonly payouts: readonly components["schemas"]["PartnerPayout"][];
4298
4378
  };
4379
+ /** @description One (outcome, side) pair, as markets and positions name it. */
4380
+ readonly "$defs-Leg": {
4381
+ /** @description HIP-4 outcome ID the leg is on, as a decimal string. The signed Leg encodes it as uint32. */
4382
+ readonly outcome_id: components["schemas"]["UInt32String"];
4383
+ /** @description Outcome side the leg backs. The signed Leg encodes YES as 0 and NO as 1. */
4384
+ readonly side: components["schemas"]["Side"];
4385
+ };
4386
+ /** @description One fee event on a position opened through your builder codes. Amounts are atomic USDC (6 decimals) decimal strings. */
4387
+ readonly PartnerFill: {
4388
+ /**
4389
+ * @description ACCEPT: the position opened, and amount is its stake with the taker fee. CLAIM: a claim paid amount, before the profit fee. CASH_OUT: the vault bought the position back for amount.
4390
+ * @enum {string}
4391
+ */
4392
+ readonly kind: "ACCEPT" | "CLAIM" | "CASH_OUT";
4393
+ /** @description The wallet that acted: the one that opened or claimed, or the seller. */
4394
+ readonly wallet: components["schemas"]["LowercaseNonZeroAddress"];
4395
+ /** @description The position, as GET /v1/me/positions names it. */
4396
+ readonly position_id: components["schemas"]["Bytes32"];
4397
+ /** @description The position's legs: one for a single, more for a Combo. */
4398
+ readonly legs: readonly components["schemas"]["$defs-Leg"][];
4399
+ /** @description What the event moved, as kind says. */
4400
+ readonly amount: components["schemas"]["$defs-Amount"];
4401
+ /** @description The fee the vault took: the taker fee on ACCEPT, the profit fee on CLAIM and CASH_OUT. Zero when none was due. */
4402
+ readonly fee: components["schemas"]["$defs-Amount"];
4403
+ /** @description The position's stake after the taker fee, as it opened. */
4404
+ readonly stake: components["schemas"]["$defs-Amount"];
4405
+ /** @description What the position pays if every leg wins; stake over payout is the price it opened at. */
4406
+ readonly payout: components["schemas"]["$defs-Amount"];
4407
+ /** @description Your share of fees, in basis points, under the terms in force on the fill's UTC day; null before your first terms. Each terms period's share is rounded down once, so per-fill shares do not add up exactly to what you are owed. */
4408
+ readonly share_bps: number | null;
4409
+ /** @description HyperEVM block time. */
4410
+ readonly time: components["schemas"]["$defs-Timestamp"];
4411
+ /** @description HyperEVM block. */
4412
+ readonly block_number: number;
4413
+ /** @description The event's log index in its block; with block_number it identifies the fill. */
4414
+ readonly log_index: number;
4415
+ /** @description The HyperEVM transaction. */
4416
+ readonly transaction_hash: components["schemas"]["Bytes32"];
4417
+ };
4418
+ readonly PartnerFillPage: {
4419
+ /** @description Fills, oldest first. */
4420
+ readonly fills: readonly components["schemas"]["PartnerFill"][];
4421
+ /** @description Send it as cursor for the fills after this page. It follows the last fill even when has_more is false, so keep it and read again later, with the same from and a later to, for new fills. Null only when no fill has been returned yet. */
4422
+ readonly next_cursor: components["schemas"]["NextCursor"];
4423
+ /** @description Whether more fills follow in the range. */
4424
+ readonly has_more: boolean;
4425
+ };
4299
4426
  /** @description One tagged landing on the app. Values come from utm_source, utm_medium, utm_campaign and ref; the path carries no query string. */
4300
4427
  readonly AcquisitionTouch: {
4301
4428
  readonly source?: string;
@@ -4373,13 +4500,6 @@ export type components = {
4373
4500
  };
4374
4501
  };
4375
4502
  };
4376
- /** @description One (outcome, side) pair, as markets and positions name it. */
4377
- readonly "$defs-Leg": {
4378
- /** @description HIP-4 outcome ID the leg is on, as a decimal string. The signed Leg encodes it as uint32. */
4379
- readonly outcome_id: components["schemas"]["UInt32String"];
4380
- /** @description Outcome side the leg backs. The signed Leg encodes YES as 0 and NO as 1. */
4381
- readonly side: components["schemas"]["Side"];
4382
- };
4383
4503
  /** @enum {string} */
4384
4504
  readonly MarketState: "ACTIVE" | "CLOSED" | "UNSUPPORTED";
4385
4505
  readonly Category: ("Crypto" | "Economics" | "Entertainment" | "Esports" | "Finance" | "Politics" | "Sports" | "Tech" | "Weather") | null;
@@ -6359,7 +6479,7 @@ export type components = {
6359
6479
  * @description Platform taxonomy subcategory slug. The cursor is bound to this filter.
6360
6480
  * @example epl
6361
6481
  */
6362
- readonly Subcategory: "nba" | "ncaa" | "nfl" | "nhl" | "mlb" | "ufc" | "lol" | "counter_strike" | "epl" | "ucl" | "uel" | "efl" | "la_liga" | "serie_a" | "bundesliga" | "ligue_1" | "liga_portugal" | "nations_league" | "world_cup" | "f1" | "ipl" | "cricket" | "transfers" | "btc" | "eth" | "sol" | "hype" | "up_down" | "stocks" | "indices" | "etfs" | "earnings" | "rates" | "inflation" | "commodities" | "fx" | "usa" | "global" | "other";
6482
+ readonly Subcategory: "nba" | "ncaa" | "nfl" | "nhl" | "mlb" | "ufc" | "lol" | "counter_strike" | "epl" | "ucl" | "uel" | "efl" | "copa_del_rey" | "dfb_pokal" | "la_liga" | "serie_a" | "bundesliga" | "ligue_1" | "liga_portugal" | "super_lig" | "nations_league" | "world_cup" | "f1" | "ipl" | "cricket" | "transfers" | "btc" | "eth" | "sol" | "hype" | "up_down" | "stocks" | "indices" | "etfs" | "earnings" | "rates" | "inflation" | "commodities" | "fx" | "usa" | "global" | "other";
6363
6483
  /**
6364
6484
  * @description Outcome side whose price history is returned.
6365
6485
  * @example YES
@@ -7704,6 +7824,56 @@ export interface operations {
7704
7824
  readonly 503: components["responses"]["Unavailable"];
7705
7825
  };
7706
7826
  };
7827
+ readonly listPartnerFills: {
7828
+ readonly parameters: {
7829
+ readonly query?: {
7830
+ /**
7831
+ * @description First UTC day of the range, inclusive. Send from and to together, at most 366 days apart; omit both for the 30 days through today.
7832
+ * @example 2026-10-01
7833
+ */
7834
+ readonly from?: string;
7835
+ /**
7836
+ * @description UTC day after the range, exclusive: `from=2026-10-01&to=2026-11-01` is October.
7837
+ * @example 2026-11-01
7838
+ */
7839
+ readonly to?: string;
7840
+ /**
7841
+ * @description Omit for the first fills in the range; then send a previous response's next_cursor unchanged.
7842
+ * @example v1:21987305:0
7843
+ */
7844
+ readonly cursor?: components["schemas"]["PageCursor"];
7845
+ /**
7846
+ * @description Maximum items per page, 1 to 200, default 50. A page may hold fewer, even none, while has_more is true.
7847
+ * @example 50
7848
+ */
7849
+ readonly limit?: components["parameters"]["Limit"];
7850
+ };
7851
+ readonly header?: never;
7852
+ readonly path?: never;
7853
+ readonly cookie?: never;
7854
+ };
7855
+ readonly requestBody?: never;
7856
+ readonly responses: {
7857
+ /** @description A page of your fills. No caching. */
7858
+ readonly 200: {
7859
+ headers: {
7860
+ readonly [name: string]: unknown;
7861
+ };
7862
+ content: {
7863
+ readonly "application/json": components["schemas"]["PartnerFillPage"];
7864
+ };
7865
+ };
7866
+ /** @description `INVALID_QUERY`: from or to is not a YYYY-MM-DD date, only one was sent, from is not before to, they are more than 366 days apart, or limit is not 1 to 200. `INVALID_CURSOR`: the cursor is not one this endpoint returned. */
7867
+ readonly 400: components["responses"]["Error"];
7868
+ /** @description The partner server key is missing, unknown or revoked, or your partner is suspended. */
7869
+ readonly 401: components["responses"]["Error"];
7870
+ /** @description Any credential but a partner server key, or any request with an `Origin`, is refused: read fills from your server. */
7871
+ readonly 403: components["responses"]["Error"];
7872
+ readonly 429: components["responses"]["RateLimited"];
7873
+ /** @description Fills are temporarily unavailable; resend after `Retry-After`. */
7874
+ readonly 503: components["responses"]["Unavailable"];
7875
+ };
7876
+ };
7707
7877
  readonly recordAcquisition: {
7708
7878
  readonly parameters: {
7709
7879
  readonly query?: never;
@@ -9034,6 +9204,136 @@ export interface operations {
9034
9204
  readonly 503: components["responses"]["Unavailable"];
9035
9205
  };
9036
9206
  };
9207
+ readonly listMyNotifications: {
9208
+ readonly parameters: {
9209
+ readonly query?: never;
9210
+ readonly header?: never;
9211
+ readonly path?: never;
9212
+ readonly cookie?: never;
9213
+ };
9214
+ readonly requestBody?: never;
9215
+ readonly responses: {
9216
+ /** @description The notifications */
9217
+ readonly 200: {
9218
+ headers: {
9219
+ readonly "Cache-Control"?: "no-store";
9220
+ readonly [name: string]: unknown;
9221
+ };
9222
+ content: {
9223
+ readonly "application/json": {
9224
+ readonly notifications: readonly {
9225
+ /**
9226
+ * Format: uuid
9227
+ * @description The notification's id, a UUIDv7.
9228
+ */
9229
+ readonly id: string;
9230
+ /**
9231
+ * @description What happened. FEATURE_UNLOCKED: the account unlocked the feature named by subject.
9232
+ * @enum {string}
9233
+ */
9234
+ readonly kind: "FEATURE_UNLOCKED";
9235
+ /** @description What the notification is about. For FEATURE_UNLOCKED, the feature: REFERRALS, the account's own invite link, which admits people once the account has traded $5. A client shows only subjects it knows. */
9236
+ readonly subject: string;
9237
+ /** Format: date-time */
9238
+ readonly created_at: string;
9239
+ /**
9240
+ * Format: date-time
9241
+ * @description When the account first read it; absent while unread.
9242
+ */
9243
+ readonly read_at?: string;
9244
+ }[];
9245
+ readonly unread: number;
9246
+ };
9247
+ };
9248
+ };
9249
+ readonly 400: components["responses"]["Error"];
9250
+ readonly 401: components["responses"]["Error"];
9251
+ readonly 403: components["responses"]["Error"];
9252
+ readonly 404: components["responses"]["Error"];
9253
+ readonly 429: components["responses"]["RateLimited"];
9254
+ readonly 503: components["responses"]["Unavailable"];
9255
+ };
9256
+ };
9257
+ readonly markMyNotificationsRead: {
9258
+ readonly parameters: {
9259
+ readonly query?: never;
9260
+ readonly header: {
9261
+ /**
9262
+ * @description Lowercase UUIDv7 naming this command, unique per caller and route. A retry with the same key and body returns the original result; the same key with a different body returns `409 IDEMPOTENCY_KEY_REUSED`.
9263
+ * @example 0198a6f6-82a5-7abc-9f2a-4f0fb437493e
9264
+ */
9265
+ readonly "Idempotency-Key": components["parameters"]["IdempotencyKey"];
9266
+ };
9267
+ readonly path?: never;
9268
+ readonly cookie?: never;
9269
+ };
9270
+ readonly requestBody: {
9271
+ readonly content: {
9272
+ readonly "application/json": {
9273
+ readonly ids?: readonly string[];
9274
+ /** @constant */
9275
+ readonly all?: true;
9276
+ };
9277
+ };
9278
+ };
9279
+ readonly responses: {
9280
+ /** @description The notifications are read */
9281
+ readonly 204: {
9282
+ headers: {
9283
+ readonly [name: string]: unknown;
9284
+ };
9285
+ content?: never;
9286
+ };
9287
+ readonly 400: components["responses"]["Error"];
9288
+ readonly 401: components["responses"]["Error"];
9289
+ readonly 403: components["responses"]["Error"];
9290
+ readonly 404: components["responses"]["Error"];
9291
+ readonly 429: components["responses"]["RateLimited"];
9292
+ readonly 503: components["responses"]["Unavailable"];
9293
+ };
9294
+ };
9295
+ readonly getMyGenesis: {
9296
+ readonly parameters: {
9297
+ readonly query?: never;
9298
+ readonly header?: never;
9299
+ readonly path?: never;
9300
+ readonly cookie?: never;
9301
+ };
9302
+ readonly requestBody?: never;
9303
+ readonly responses: {
9304
+ /** @description Genesis progress */
9305
+ readonly 200: {
9306
+ headers: {
9307
+ readonly "Cache-Control"?: "no-store";
9308
+ readonly [name: string]: unknown;
9309
+ };
9310
+ content: {
9311
+ readonly "application/json": {
9312
+ /** @description When the account was created. */
9313
+ readonly signed_up_at: components["schemas"]["$defs-Timestamp"];
9314
+ /** @description An account created at or after this never earns Genesis. */
9315
+ readonly signup_before: components["schemas"]["$defs-Timestamp"];
9316
+ /** @description Only Combos committed before this count, and X must be bound by then. */
9317
+ readonly deadline: components["schemas"]["$defs-Timestamp"];
9318
+ /** @description Whether the account has an X account linked now. */
9319
+ readonly x_bound: boolean;
9320
+ /** @description What the account staked on Combos with its own money before deadline, in HyperEVM USDC base units (10^-6). */
9321
+ readonly staked: components["schemas"]["$defs-Amount"];
9322
+ /** @description staked must be more than this, in HyperEVM USDC base units (10^-6). */
9323
+ readonly required_stake: components["schemas"]["$defs-Amount"];
9324
+ /** @description When the account earned Genesis; absent until then. */
9325
+ readonly earned_at?: components["schemas"]["$defs-Timestamp"];
9326
+ };
9327
+ };
9328
+ };
9329
+ readonly 400: components["responses"]["Error"];
9330
+ readonly 401: components["responses"]["Error"];
9331
+ readonly 403: components["responses"]["Error"];
9332
+ readonly 404: components["responses"]["Error"];
9333
+ readonly 429: components["responses"]["RateLimited"];
9334
+ readonly 503: components["responses"]["Unavailable"];
9335
+ };
9336
+ };
9037
9337
  readonly getCopySummary: {
9038
9338
  readonly parameters: {
9039
9339
  readonly query?: never;
@@ -1,5 +1,5 @@
1
- export declare const sdkVersion = "216.0.0-golden-press";
2
- export declare const openapiSha256 = "20bf428ac9ac56e97bcc98888cd85414d2e9cff3dcda04dadc2e588fa89bf2bb";
1
+ export declare const sdkVersion = "220.0.0-partner-fills";
2
+ export declare const openapiSha256 = "b89f395adf9844ddd0e6543b439cbedaed15b1986dea3ca38800bdcfdd78ca43";
3
3
  export declare const realtimeSha256 = "32e56c8bb642401f5b03e9c38274087c09bebb73ffe60c0d34432c2e78ce1e15";
4
4
  export declare const jsonSchemaSha256: {
5
5
  readonly "account.schema.json": "c11a94438d5f7b54e08d3b559098ce2671f4c9aad3a79feb684b7a81f77d809a";
@@ -8,7 +8,7 @@ export declare const jsonSchemaSha256: {
8
8
  readonly "core-exit.schema.json": "c7f617e815225cdcac95c236f8b73fbe288ee5713ff444c3be90eb915fc3a401";
9
9
  readonly "error.schema.json": "a980d4d81ea2f8528d24d79a6cf3823b15690d21e81a1852039ae12c4ce0a393";
10
10
  readonly "hypercore.schema.json": "5b89b2bbff7ec8cc1b8717375d12ce9cd5ab6aa5af03c4fdc6cc753ef9583a2c";
11
- readonly "identity.schema.json": "b623b947db4fe8fe1f297158bcc6a555c0333f3937ca925dda20ec4956ea479f";
11
+ readonly "identity.schema.json": "f369f35c612dabd076a6e9525791a008797b8cdbb7e5a5f246b242bad4739aa8";
12
12
  readonly "maker-access.schema.json": "49698ee0235e42064aae0397db1e0f646bdc10d9dfa10121714ba06dd69fee3b";
13
13
  readonly "maker-action.schema.json": "dc41e52c868848e85cdeb918992cb710d34616d2803a63f6d9a658e016744a50";
14
14
  readonly "maker-telemetry.schema.json": "85b111ce0f4935299d1116071b43de12e775bef4e0c283c12f19046d34374a9c";
@@ -18,7 +18,7 @@ export declare const jsonSchemaSha256: {
18
18
  readonly "realtime.schema.json": "32e56c8bb642401f5b03e9c38274087c09bebb73ffe60c0d34432c2e78ce1e15";
19
19
  };
20
20
  export declare const operations: {
21
- readonly client: readonly ["abandonCoreExit", "acceptQuote", "activeCoreExits", "admitOwnMaker", "admitPartnerWallet", "approveWallet", "bindEmbeddedWallet", "cancelRfq", "confirmComboCopyAgent", "confirmCoreCopyAgent", "createCashout", "createComment", "createCoreExit", "createDeposit", "createGoldenRfq", "createRfq", "createRunOffClaim", "createWalletChallenge", "createWalletSession", "createWithdrawal", "deleteComment", "editComment", "endWalletSession", "followTrader", "getAcceptance", "getAccountActivity", "getAccountPnl", "getAccountPosition", "getBalances", "getCopyAgents", "getCopyBudget", "getCopySettings", "getCopySummary", "getCoreExit", "getDeployment", "getGolden", "getGoldenMarkets", "getGoldenOffer", "getGoldenSuggestions", "getHypercoreBalance", "getHypercorePortfolio", "getHypercoreSettlementCredits", "getIdentity", "getMakerActivity", "getMakerCapital", "getMakerExposure", "getMakerPerformance", "getMakerPosition", "getMakerQuotes", "getMakerTelemetry", "getMakerVaultFundingTransaction", "getMakerWithdrawal", "getMarket", "getMarketDataConfig", "getMarketDefinitions", "getMarketHistory", "getMarketRecurringRound", "getMarketReferenceCloses", "getMarketScoreTimeline", "getMarketStats", "getOperation", "getOwnMaker", "getPartnerReport", "getPerpMarks", "getProfitLeaderboard", "getQuestion", "getQuestionRecurringRound", "getQuestionScoreTimeline", "getRfq", "getSeries", "getSuggestedCombo", "getTaxonomy", "getTrader", "getTraderPnl", "getUsernameAvailability", "getVaultAgents", "getVolumeLeaderboard", "getWalletApproval", "getWithdrawal", "grantComboCopyAgent", "grantVaultAgent", "likeComment", "listAccountActivity", "listAccountPositions", "listComboCopies", "listComboFeed", "listCommentReplies", "listComments", "listControlledMakers", "listCopiedFills", "listCopyTrades", "listDiscovery", "listFollows", "listMakerActivity", "listMakerPositions", "listMakerQuoteHistory", "listMarkets", "listOperations", "listQuotes", "listTraderPositions", "listTraderTrades", "placeGolden", "reactComment", "recordAcquisition", "refreshPicture", "requestComboCopyAgent", "requestCoreCopyAgent", "revokeComboCopyAgent", "searchCatalog", "setAvatar", "setCopyAllocation", "setCopySettings", "setPublicProfile", "setUsername", "setXHandleShown", "signGoldenGift", "stream", "streamMarkets", "switchOffComboCopyAgent", "switchOffCoreCopyAgent", "unfollowTrader", "unlikeComment", "unreactComment"];
21
+ readonly client: readonly ["abandonCoreExit", "acceptQuote", "activeCoreExits", "admitOwnMaker", "admitPartnerWallet", "approveWallet", "bindEmbeddedWallet", "cancelRfq", "confirmComboCopyAgent", "confirmCoreCopyAgent", "createCashout", "createComment", "createCoreExit", "createDeposit", "createGoldenRfq", "createRfq", "createRunOffClaim", "createWalletChallenge", "createWalletSession", "createWithdrawal", "deleteComment", "editComment", "endWalletSession", "followTrader", "getAcceptance", "getAccountActivity", "getAccountPnl", "getAccountPosition", "getBalances", "getCopyAgents", "getCopyBudget", "getCopySettings", "getCopySummary", "getCoreExit", "getDeployment", "getGolden", "getGoldenMarkets", "getGoldenOffer", "getGoldenSuggestions", "getHypercoreBalance", "getHypercorePortfolio", "getHypercoreSettlementCredits", "getIdentity", "getMakerActivity", "getMakerCapital", "getMakerExposure", "getMakerPerformance", "getMakerPosition", "getMakerQuotes", "getMakerTelemetry", "getMakerVaultFundingTransaction", "getMakerWithdrawal", "getMarket", "getMarketDataConfig", "getMarketDefinitions", "getMarketHistory", "getMarketRecurringRound", "getMarketReferenceCloses", "getMarketScoreTimeline", "getMarketStats", "getMyGenesis", "getOperation", "getOwnMaker", "getPartnerReport", "getPerpMarks", "getProfitLeaderboard", "getQuestion", "getQuestionRecurringRound", "getQuestionScoreTimeline", "getRfq", "getSeries", "getSuggestedCombo", "getTaxonomy", "getTrader", "getTraderPnl", "getUsernameAvailability", "getVaultAgents", "getVolumeLeaderboard", "getWalletApproval", "getWithdrawal", "grantComboCopyAgent", "grantVaultAgent", "likeComment", "listAccountActivity", "listAccountPositions", "listComboCopies", "listComboFeed", "listCommentReplies", "listComments", "listControlledMakers", "listCopiedFills", "listCopyTrades", "listDiscovery", "listFollows", "listMakerActivity", "listMakerPositions", "listMakerQuoteHistory", "listMarkets", "listMyNotifications", "listOperations", "listPartnerFills", "listQuotes", "listTraderPositions", "listTraderTrades", "markMyNotificationsRead", "placeGolden", "reactComment", "recordAcquisition", "refreshPicture", "requestComboCopyAgent", "requestCoreCopyAgent", "revokeComboCopyAgent", "searchCatalog", "setAvatar", "setCopyAllocation", "setCopySettings", "setPublicProfile", "setUsername", "setXHandleShown", "signGoldenGift", "stream", "streamMarkets", "switchOffComboCopyAgent", "switchOffCoreCopyAgent", "unfollowTrader", "unlikeComment", "unreactComment"];
22
22
  readonly maker: readonly ["cancelQuote", "confirmQuote", "createCollateralReduction", "createQuote", "getAccountActivity", "getAccountPosition", "getCollateralReduction", "getDeployment", "getMakerActivity", "getMakerCapital", "getMakerExposure", "getMakerPerformance", "getMakerPosition", "getMakerQuotes", "getMakerTelemetry", "getMakerTelemetryPublication", "getMakerVaultFundingTransaction", "getMakerWithdrawal", "getMarket", "getMarketHistory", "getMarketRecurringRound", "getMarketReferenceCloses", "getOperation", "getQuestion", "getQuestionRecurringRound", "getRfq", "getSeries", "getTaxonomy", "listAccountActivity", "listAccountPositions", "listDiscovery", "listMakerAcceptances", "listMakerActivity", "listMakerPositions", "listMakerQuoteHistory", "listMarkets", "listOperations", "listRfqs", "publishMakerTelemetry", "releaseQuoteLease", "renewQuoteLease", "searchCatalog", "stream", "submitMakerSelfFundedTransaction"];
23
23
  readonly operator: readonly ["live", "ready"];
24
24
  };
@@ -1,6 +1,6 @@
1
1
  // Generated by scripts/generate.mjs; do not edit.
2
- export const sdkVersion = "216.0.0-golden-press";
3
- export const openapiSha256 = "20bf428ac9ac56e97bcc98888cd85414d2e9cff3dcda04dadc2e588fa89bf2bb";
2
+ export const sdkVersion = "220.0.0-partner-fills";
3
+ export const openapiSha256 = "b89f395adf9844ddd0e6543b439cbedaed15b1986dea3ca38800bdcfdd78ca43";
4
4
  export const realtimeSha256 = "32e56c8bb642401f5b03e9c38274087c09bebb73ffe60c0d34432c2e78ce1e15";
5
5
  export const jsonSchemaSha256 = {
6
6
  "account.schema.json": "c11a94438d5f7b54e08d3b559098ce2671f4c9aad3a79feb684b7a81f77d809a",
@@ -9,7 +9,7 @@ export const jsonSchemaSha256 = {
9
9
  "core-exit.schema.json": "c7f617e815225cdcac95c236f8b73fbe288ee5713ff444c3be90eb915fc3a401",
10
10
  "error.schema.json": "a980d4d81ea2f8528d24d79a6cf3823b15690d21e81a1852039ae12c4ce0a393",
11
11
  "hypercore.schema.json": "5b89b2bbff7ec8cc1b8717375d12ce9cd5ab6aa5af03c4fdc6cc753ef9583a2c",
12
- "identity.schema.json": "b623b947db4fe8fe1f297158bcc6a555c0333f3937ca925dda20ec4956ea479f",
12
+ "identity.schema.json": "f369f35c612dabd076a6e9525791a008797b8cdbb7e5a5f246b242bad4739aa8",
13
13
  "maker-access.schema.json": "49698ee0235e42064aae0397db1e0f646bdc10d9dfa10121714ba06dd69fee3b",
14
14
  "maker-action.schema.json": "dc41e52c868848e85cdeb918992cb710d34616d2803a63f6d9a658e016744a50",
15
15
  "maker-telemetry.schema.json": "85b111ce0f4935299d1116071b43de12e775bef4e0c283c12f19046d34374a9c",
@@ -80,6 +80,7 @@ export const operations = {
80
80
  "getMarketReferenceCloses",
81
81
  "getMarketScoreTimeline",
82
82
  "getMarketStats",
83
+ "getMyGenesis",
83
84
  "getOperation",
84
85
  "getOwnMaker",
85
86
  "getPartnerReport",
@@ -117,10 +118,13 @@ export const operations = {
117
118
  "listMakerPositions",
118
119
  "listMakerQuoteHistory",
119
120
  "listMarkets",
121
+ "listMyNotifications",
120
122
  "listOperations",
123
+ "listPartnerFills",
121
124
  "listQuotes",
122
125
  "listTraderPositions",
123
126
  "listTraderTrades",
127
+ "markMyNotificationsRead",
124
128
  "placeGolden",
125
129
  "reactComment",
126
130
  "recordAcquisition",
package/dist/partner.d.ts CHANGED
@@ -4,6 +4,8 @@ import { type SignerInput } from "./signer.js";
4
4
  export type WalletAdmission = components["schemas"]["WalletAdmission"];
5
5
  /** Your partner's fees, terms, balance and payouts (TT-2420). Amounts are atomic USDC strings. */
6
6
  export type PartnerReport = components["schemas"]["PartnerReport"];
7
+ /** A page of fee events on your users' positions (TT-2749). Amounts are atomic USDC strings. */
8
+ export type PartnerFillPage = components["schemas"]["PartnerFillPage"];
7
9
  /** A wallet's signed consent to one partner opening its account (TT-1688). */
8
10
  export type AdmissionConsent = {
9
11
  readonly expires_at: string;
@@ -48,7 +50,8 @@ export type PartnerServerOptions = Omit<ApiClientOptions, "accessToken" | "partn
48
50
  * wallet gets an account only through a partner: admit it here with the
49
51
  * wallet's consent (`signAdmissionConsent` in your frontend), and its next
50
52
  * wallet sign-in creates the account, attributed to you. `report` reads your
51
- * fees, terms and payouts (TT-2420). Refuses to run in a browser, where the
53
+ * fees, terms and payouts (TT-2420), and `fills` each fee event on your
54
+ * users' positions (TT-2749). Refuses to run in a browser, where the
52
55
  * server key would be exposed.
53
56
  */
54
57
  export declare function createPartnerServer(options: PartnerServerOptions): {
@@ -67,5 +70,18 @@ export declare function createPartnerServer(options: PartnerServerOptions): {
67
70
  readonly from: string;
68
71
  readonly to: string;
69
72
  }): Promise<PartnerReport>;
73
+ /**
74
+ * Your fills: each opening, claim and cash-out on a position opened
75
+ * through your codes, oldest first, in `[from, to)` UTC days (omit both
76
+ * for the 30 days through today). Pass `next_cursor` as `cursor` for the
77
+ * next page. It follows the last fill even when `has_more` is false, so
78
+ * keep it to read new fills later with the same `from` and a later `to`.
79
+ */
80
+ fills(query?: {
81
+ readonly from?: string;
82
+ readonly to?: string;
83
+ readonly cursor?: string;
84
+ readonly limit?: number;
85
+ }): Promise<PartnerFillPage>;
70
86
  };
71
87
  export type PartnerServer = ReturnType<typeof createPartnerServer>;
package/dist/partner.js CHANGED
@@ -32,7 +32,8 @@ export async function signAdmissionConsent(request) {
32
32
  * wallet gets an account only through a partner: admit it here with the
33
33
  * wallet's consent (`signAdmissionConsent` in your frontend), and its next
34
34
  * wallet sign-in creates the account, attributed to you. `report` reads your
35
- * fees, terms and payouts (TT-2420). Refuses to run in a browser, where the
35
+ * fees, terms and payouts (TT-2420), and `fills` each fee event on your
36
+ * users' positions (TT-2749). Refuses to run in a browser, where the
36
37
  * server key would be exposed.
37
38
  */
38
39
  export function createPartnerServer(options) {
@@ -62,5 +63,15 @@ export function createPartnerServer(options) {
62
63
  async report(range) {
63
64
  return unwrap(await client.GET("/v1/partner/report", { params: { query: range ?? {} } }));
64
65
  },
66
+ /**
67
+ * Your fills: each opening, claim and cash-out on a position opened
68
+ * through your codes, oldest first, in `[from, to)` UTC days (omit both
69
+ * for the 30 days through today). Pass `next_cursor` as `cursor` for the
70
+ * next page. It follows the last fill even when `has_more` is false, so
71
+ * keep it to read new fills later with the same `from` and a later `to`.
72
+ */
73
+ async fills(query) {
74
+ return unwrap(await client.GET("/v1/partner/fills", { params: { query: query ?? {} } }));
75
+ },
65
76
  };
66
77
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@totalis/hip4-client",
3
- "version": "0.90.0",
3
+ "version": "0.92.0",
4
4
  "description": "Totalis HIP-4 SDK: typed HTTP clients, signer-agnostic typed data, a retrying request layer, pagination, a realtime stream and taker/maker flows",
5
5
  "type": "module",
6
6
  "files": [