@totalis/hip4-client 0.96.0 → 0.98.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,64 @@
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.98.0
7
+
8
+ ### Added
9
+
10
+ - Partner webhook replay (TT-2794, contract `231.0.0-partner-webhook-events`,
11
+ major 227, additive). `listPartnerWebhookEvents`
12
+ (`GET /v1/partner/webhook-events`, partner server key) lists every webhook
13
+ event Totalis queued for the partner in the last 30 days, oldest first, with
14
+ the body as posted, its `status` (`PENDING`, `DELIVERED` or `FAILED`),
15
+ `attempts`, `queued_at` and `delivered_at`. Page with `cursor` and narrow
16
+ with `since`. `createPartnerServer` gains `webhookEvents` for it.
17
+ - Account value (TT-2787, contract `230.0.0-account-value`, major 226,
18
+ additive). `getAccountValue` (`GET /v1/me/account-value`, scope
19
+ `account:read`) answers everything an account holds at Totalis, every
20
+ amount read at one HyperEVM block (`block_number`): `wallet_usdc`,
21
+ `vault_cash` (all of it, including cash held for an operation that has not
22
+ landed), `run_off_cash`, `open_positions` and their `open_cost` (the sum of
23
+ `acquisition_cost`), and `claimable_profit` (unclaimed profit net of the
24
+ fee), with `amount` their total. When `state` is `UNKNOWN` every amount is
25
+ null. `totalis.accountValue()` reads it.
26
+
27
+ ## 0.97.0
28
+
29
+ ### Changed
30
+
31
+ - Free Combos on positions (contract `229.0.0-free-combo-positions`, major
32
+ 225). Account and maker positions (`listAccountPositions`,
33
+ `getAccountPosition`, `listMakerPositions`, `getMakerPosition`) carry a
34
+ required `golden`: whether a promotion bought the ticket and gave it away,
35
+ whoever holds it now. `cashout_available` is now this position's own: false
36
+ for a free Combo as well as on a vault running off. Breaking for trader
37
+ readers: the shared trader Combo (`listTraderTrades`, `listTraderPositions`,
38
+ `listComboFeed`) carries a required `golden`, and its `stake` is null for a
39
+ free Combo, whose stake no trader paid.
40
+ - Golden Combo unlocks with X (TT-2761, contract `228.0.0-golden-x-unlock`,
41
+ major 224). Breaking for golden callers: `GET /v1/me/golden`'s ticket is
42
+ now the `GoldenTicket` schema, whose `state` adds `LOCKED` (unused,
43
+ unexpired and not unlocked) and which carries `unlocked_at` and
44
+ `telegram_clicked_at` (nullable timestamps). Every new ticket starts
45
+ `LOCKED`, and so do tickets unused when this shipped; a `LOCKED` ticket is
46
+ returned, never null. `createGoldenRfq`, `placeGolden` and
47
+ `getGoldenSuggestions` refuse it with 409 `GOLDEN_UNLOCK_REQUIRED`.
48
+ `unlockGolden` (`POST /v1/me/golden/unlock`, body `{}`, no idempotency key)
49
+ unlocks it once the account's login has an X account linked that never
50
+ unlocked a free Combo, taking one of the invite code's free Combos, and
51
+ answers `{golden}`; the same request again answers the ticket as it stands.
52
+ Its refusals take nothing: 409 `X_REQUIRED`, `X_ALREADY_CLAIMED`,
53
+ `GOLDEN_GIVEN_OUT`, `GOLDEN_CODE_DISABLED`, and 503
54
+ `X_VERIFICATION_UNAVAILABLE`. `getGolden` first applies an unlock the
55
+ account already made whose answer was lost, and answers 503
56
+ `DEPENDENCY_STALE` rather than `LOCKED` when it cannot check.
57
+ `recordGoldenTelegramClick`
58
+ (`POST /v1/me/golden/telegram-click`, body `{}`) keeps the first Join
59
+ Telegram press as `telegram_clicked_at` and gates nothing. A historical
60
+ `GIFT_FAILED` or `GIFT_EXPIRED` placement whose Combo Totalis bought now
61
+ reads as a used ticket (`LAPSED` with that position). Only the Totalis app
62
+ calls these routes.
63
+
6
64
  ## 0.96.0
7
65
 
8
66
  ### Added
@@ -529,8 +529,10 @@ export type components = {
529
529
  readonly position_id: string;
530
530
  /** @description Lowercase vault contract address the position is on. An account's positions span every vault the deployment has served: the active one, one running off and closed ones. */
531
531
  readonly vault_address: components["schemas"]["LowercaseNonZeroAddress"];
532
- /** @description Whether the position's vault takes a cash-out. Only the active vault does; a position on a vault running off cannot be cashed out (`STATE_CONFLICT`) and pays out automatically when it settles. Whether this position can be cashed out now also depends on its status. */
532
+ /** @description Whether this position takes a cash-out. It is false on a vault running off, which refuses one (`STATE_CONFLICT`) and pays out automatically when the position settles, and on a free Combo (`golden`), which is never cashed out (`GOLDEN_CASHOUT_REFUSED`). Whether this position can be cashed out now also depends on its status. */
533
533
  readonly cashout_available: boolean;
534
+ /** @description Whether this position is a free Combo: a promotion paid its stake and gave it away, and it stays one whoever holds it now. Its `net_stake` is what the promotion paid, never its holder's money; what it pays at settlement is the holder's. It is never cashed out. */
535
+ readonly golden: boolean;
534
536
  /** @description Maker that wrote the position, as a decimal string. */
535
537
  readonly maker_id: components["schemas"]["NonZeroUInt64String"];
536
538
  /** @description Current position owner wallet (lowercase). */
@@ -754,7 +756,7 @@ export type components = {
754
756
  * @description Stable HTTP error code. Each code has one HTTP status and one retry value.
755
757
  * @enum {string}
756
758
  */
757
- readonly ErrorCode: "INVALID_REQUEST" | "INVALID_QUERY" | "INVALID_CURSOR" | "INVALID_IDEMPOTENCY_KEY" | "ORIGIN_REQUIRED" | "SUBPROTOCOL_REQUIRED" | "UNSUPPORTED_BROWSE_CONTRACT" | "UNAUTHENTICATED" | "FORBIDDEN" | "ORIGIN_NOT_ALLOWED" | "ACCESS_REQUIRED" | "SIGN_IN_REQUIRED" | "NOT_FOUND" | "IDENTITY_NOT_FOUND" | "QUOTE_NOT_FOUND" | "INVITE_CODE_NOT_FOUND" | "IDEMPOTENCY_KEY_REUSED" | "STATE_CONFLICT" | "INVITE_CODE_EXHAUSTED" | "STALE_CURSOR" | "CURSOR_EXPIRED" | "CURSOR_RESET" | "RECURRING_DEFINITION_CONFLICT" | "EMBEDDED_WALLET_CONFLICT" | "SECRET_UNAVAILABLE" | "ROTATION_IN_PROGRESS" | "TELEMETRY_CONFLICT" | "RFQ_NOT_CANCELLABLE" | "RFQ_NOT_OPEN" | "RFQ_GENERATION_STALE" | "RFQ_GENERATION_IN_FLIGHT" | "QUOTE_EXPIRED" | "QUOTE_CANCELLED" | "QUOTE_REPLACED" | "QUOTE_SIGNER_CHANGED" | "QUOTE_CAPACITY_EXCEEDED" | "CORE_ACCOUNT_NOT_READY" | "CORE_ACCOUNT_ACTIVATION_REQUIRED" | "CORE_EXIT_ABANDONED" | "CORE_MOVE_IN_FLIGHT" | "ACCEPTANCE_IN_FLIGHT" | "USERNAME_TAKEN" | "USERNAME_ALREADY_SET" | "USERNAME_REQUIRED" | "GOLDEN_TICKET_NONE" | "GOLDEN_TICKET_USED" | "GOLDEN_TICKET_EXPIRED" | "GOLDEN_PLACEMENT_IN_FLIGHT" | "GOLDEN_PROMO_BUSY" | "GOLDEN_CASHOUT_REFUSED" | "GOLDEN_OFFER_BELOW_FLOOR" | "GOLDEN_GIFT_TERMS_EXPIRED" | "INVALID_SIGNATURE" | "WALLET_CONTRACT_UNSUPPORTED" | "WRONG_AUTHORITY" | "KEY_LIMIT_REACHED" | "USERNAME_NOT_ALLOWED" | "FOLLOW_SELF" | "FOLLOW_LIMIT_REACHED" | "GOLDEN_LEG_COUNT" | "GOLDEN_LEG_NOT_ELIGIBLE" | "GOLDEN_QUOTE_NOT_HOUSE" | "RATE_LIMITED" | "CONNECTION_LIMIT" | "RFQ_INTENT_LIMIT" | "QUOTE_EXPOSURE_LIMIT" | "DEPENDENCY_STALE" | "AUTHORIZATION_UNAVAILABLE" | "SOURCE_UNAVAILABLE" | "CONTRACT_UNAVAILABLE" | "MARKET_DATA_UNAVAILABLE" | "BROWSE_UNAVAILABLE" | "FINANCIAL_ACTIONS_DISABLED" | "CORE_EXIT_UNAVAILABLE" | "COLLATERAL_REDUCTION_UNAVAILABLE" | "SPONSORSHIP_UNAVAILABLE" | "CONTRACT_SIGNATURE_OVERLOADED" | "QUOTE_EXPOSURE_STALE" | "COMBO_AUTOMATIC_DISABLED" | "GAS_PRICE_ABOVE_CEILING" | "EXECUTION_BACKLOG_FULL" | "EMBEDDED_WALLET_UNAVAILABLE" | "GOLDEN_PROMO_FUNDS_LOW" | "CONNECTION_DRAIN";
759
+ readonly ErrorCode: "INVALID_REQUEST" | "INVALID_QUERY" | "INVALID_CURSOR" | "INVALID_IDEMPOTENCY_KEY" | "ORIGIN_REQUIRED" | "SUBPROTOCOL_REQUIRED" | "UNSUPPORTED_BROWSE_CONTRACT" | "UNAUTHENTICATED" | "FORBIDDEN" | "ORIGIN_NOT_ALLOWED" | "ACCESS_REQUIRED" | "SIGN_IN_REQUIRED" | "NOT_FOUND" | "IDENTITY_NOT_FOUND" | "QUOTE_NOT_FOUND" | "INVITE_CODE_NOT_FOUND" | "IDEMPOTENCY_KEY_REUSED" | "STATE_CONFLICT" | "INVITE_CODE_EXHAUSTED" | "STALE_CURSOR" | "CURSOR_EXPIRED" | "CURSOR_RESET" | "RECURRING_DEFINITION_CONFLICT" | "EMBEDDED_WALLET_CONFLICT" | "SECRET_UNAVAILABLE" | "ROTATION_IN_PROGRESS" | "TELEMETRY_CONFLICT" | "RFQ_NOT_CANCELLABLE" | "RFQ_NOT_OPEN" | "RFQ_GENERATION_STALE" | "RFQ_GENERATION_IN_FLIGHT" | "QUOTE_EXPIRED" | "QUOTE_CANCELLED" | "QUOTE_REPLACED" | "QUOTE_SIGNER_CHANGED" | "QUOTE_CAPACITY_EXCEEDED" | "CORE_ACCOUNT_NOT_READY" | "CORE_ACCOUNT_ACTIVATION_REQUIRED" | "CORE_EXIT_ABANDONED" | "CORE_MOVE_IN_FLIGHT" | "ACCEPTANCE_IN_FLIGHT" | "USERNAME_TAKEN" | "USERNAME_ALREADY_SET" | "USERNAME_REQUIRED" | "GOLDEN_TICKET_NONE" | "GOLDEN_TICKET_USED" | "GOLDEN_TICKET_EXPIRED" | "GOLDEN_PLACEMENT_IN_FLIGHT" | "GOLDEN_PROMO_BUSY" | "GOLDEN_CASHOUT_REFUSED" | "GOLDEN_OFFER_BELOW_FLOOR" | "GOLDEN_GIFT_TERMS_EXPIRED" | "GOLDEN_UNLOCK_REQUIRED" | "GOLDEN_GIVEN_OUT" | "GOLDEN_CODE_DISABLED" | "X_REQUIRED" | "X_ALREADY_CLAIMED" | "INVALID_SIGNATURE" | "WALLET_CONTRACT_UNSUPPORTED" | "WRONG_AUTHORITY" | "KEY_LIMIT_REACHED" | "USERNAME_NOT_ALLOWED" | "FOLLOW_SELF" | "FOLLOW_LIMIT_REACHED" | "GOLDEN_LEG_COUNT" | "GOLDEN_LEG_NOT_ELIGIBLE" | "GOLDEN_QUOTE_NOT_HOUSE" | "RATE_LIMITED" | "CONNECTION_LIMIT" | "RFQ_INTENT_LIMIT" | "QUOTE_EXPOSURE_LIMIT" | "DEPENDENCY_STALE" | "AUTHORIZATION_UNAVAILABLE" | "SOURCE_UNAVAILABLE" | "CONTRACT_UNAVAILABLE" | "MARKET_DATA_UNAVAILABLE" | "BROWSE_UNAVAILABLE" | "FINANCIAL_ACTIONS_DISABLED" | "CORE_EXIT_UNAVAILABLE" | "COLLATERAL_REDUCTION_UNAVAILABLE" | "SPONSORSHIP_UNAVAILABLE" | "CONTRACT_SIGNATURE_OVERLOADED" | "QUOTE_EXPOSURE_STALE" | "COMBO_AUTOMATIC_DISABLED" | "GAS_PRICE_ABOVE_CEILING" | "EXECUTION_BACKLOG_FULL" | "EMBEDDED_WALLET_UNAVAILABLE" | "GOLDEN_PROMO_FUNDS_LOW" | "X_VERIFICATION_UNAVAILABLE" | "CONNECTION_DRAIN";
758
760
  readonly FieldViolation: {
759
761
  /**
760
762
  * @description REQUIRED: the input is missing. INVALID: it is present but malformed or out of range. UNEXPECTED: the input is not accepted here.
@@ -375,7 +375,7 @@ export type components = {
375
375
  * @description Stable HTTP error code. Each code has one HTTP status and one retry value.
376
376
  * @enum {string}
377
377
  */
378
- readonly ErrorCode: "INVALID_REQUEST" | "INVALID_QUERY" | "INVALID_CURSOR" | "INVALID_IDEMPOTENCY_KEY" | "ORIGIN_REQUIRED" | "SUBPROTOCOL_REQUIRED" | "UNSUPPORTED_BROWSE_CONTRACT" | "UNAUTHENTICATED" | "FORBIDDEN" | "ORIGIN_NOT_ALLOWED" | "ACCESS_REQUIRED" | "SIGN_IN_REQUIRED" | "NOT_FOUND" | "IDENTITY_NOT_FOUND" | "QUOTE_NOT_FOUND" | "INVITE_CODE_NOT_FOUND" | "IDEMPOTENCY_KEY_REUSED" | "STATE_CONFLICT" | "INVITE_CODE_EXHAUSTED" | "STALE_CURSOR" | "CURSOR_EXPIRED" | "CURSOR_RESET" | "RECURRING_DEFINITION_CONFLICT" | "EMBEDDED_WALLET_CONFLICT" | "SECRET_UNAVAILABLE" | "ROTATION_IN_PROGRESS" | "TELEMETRY_CONFLICT" | "RFQ_NOT_CANCELLABLE" | "RFQ_NOT_OPEN" | "RFQ_GENERATION_STALE" | "RFQ_GENERATION_IN_FLIGHT" | "QUOTE_EXPIRED" | "QUOTE_CANCELLED" | "QUOTE_REPLACED" | "QUOTE_SIGNER_CHANGED" | "QUOTE_CAPACITY_EXCEEDED" | "CORE_ACCOUNT_NOT_READY" | "CORE_ACCOUNT_ACTIVATION_REQUIRED" | "CORE_EXIT_ABANDONED" | "CORE_MOVE_IN_FLIGHT" | "ACCEPTANCE_IN_FLIGHT" | "USERNAME_TAKEN" | "USERNAME_ALREADY_SET" | "USERNAME_REQUIRED" | "GOLDEN_TICKET_NONE" | "GOLDEN_TICKET_USED" | "GOLDEN_TICKET_EXPIRED" | "GOLDEN_PLACEMENT_IN_FLIGHT" | "GOLDEN_PROMO_BUSY" | "GOLDEN_CASHOUT_REFUSED" | "GOLDEN_OFFER_BELOW_FLOOR" | "GOLDEN_GIFT_TERMS_EXPIRED" | "INVALID_SIGNATURE" | "WALLET_CONTRACT_UNSUPPORTED" | "WRONG_AUTHORITY" | "KEY_LIMIT_REACHED" | "USERNAME_NOT_ALLOWED" | "FOLLOW_SELF" | "FOLLOW_LIMIT_REACHED" | "GOLDEN_LEG_COUNT" | "GOLDEN_LEG_NOT_ELIGIBLE" | "GOLDEN_QUOTE_NOT_HOUSE" | "RATE_LIMITED" | "CONNECTION_LIMIT" | "RFQ_INTENT_LIMIT" | "QUOTE_EXPOSURE_LIMIT" | "DEPENDENCY_STALE" | "AUTHORIZATION_UNAVAILABLE" | "SOURCE_UNAVAILABLE" | "CONTRACT_UNAVAILABLE" | "MARKET_DATA_UNAVAILABLE" | "BROWSE_UNAVAILABLE" | "FINANCIAL_ACTIONS_DISABLED" | "CORE_EXIT_UNAVAILABLE" | "COLLATERAL_REDUCTION_UNAVAILABLE" | "SPONSORSHIP_UNAVAILABLE" | "CONTRACT_SIGNATURE_OVERLOADED" | "QUOTE_EXPOSURE_STALE" | "COMBO_AUTOMATIC_DISABLED" | "GAS_PRICE_ABOVE_CEILING" | "EXECUTION_BACKLOG_FULL" | "EMBEDDED_WALLET_UNAVAILABLE" | "GOLDEN_PROMO_FUNDS_LOW" | "CONNECTION_DRAIN";
378
+ readonly ErrorCode: "INVALID_REQUEST" | "INVALID_QUERY" | "INVALID_CURSOR" | "INVALID_IDEMPOTENCY_KEY" | "ORIGIN_REQUIRED" | "SUBPROTOCOL_REQUIRED" | "UNSUPPORTED_BROWSE_CONTRACT" | "UNAUTHENTICATED" | "FORBIDDEN" | "ORIGIN_NOT_ALLOWED" | "ACCESS_REQUIRED" | "SIGN_IN_REQUIRED" | "NOT_FOUND" | "IDENTITY_NOT_FOUND" | "QUOTE_NOT_FOUND" | "INVITE_CODE_NOT_FOUND" | "IDEMPOTENCY_KEY_REUSED" | "STATE_CONFLICT" | "INVITE_CODE_EXHAUSTED" | "STALE_CURSOR" | "CURSOR_EXPIRED" | "CURSOR_RESET" | "RECURRING_DEFINITION_CONFLICT" | "EMBEDDED_WALLET_CONFLICT" | "SECRET_UNAVAILABLE" | "ROTATION_IN_PROGRESS" | "TELEMETRY_CONFLICT" | "RFQ_NOT_CANCELLABLE" | "RFQ_NOT_OPEN" | "RFQ_GENERATION_STALE" | "RFQ_GENERATION_IN_FLIGHT" | "QUOTE_EXPIRED" | "QUOTE_CANCELLED" | "QUOTE_REPLACED" | "QUOTE_SIGNER_CHANGED" | "QUOTE_CAPACITY_EXCEEDED" | "CORE_ACCOUNT_NOT_READY" | "CORE_ACCOUNT_ACTIVATION_REQUIRED" | "CORE_EXIT_ABANDONED" | "CORE_MOVE_IN_FLIGHT" | "ACCEPTANCE_IN_FLIGHT" | "USERNAME_TAKEN" | "USERNAME_ALREADY_SET" | "USERNAME_REQUIRED" | "GOLDEN_TICKET_NONE" | "GOLDEN_TICKET_USED" | "GOLDEN_TICKET_EXPIRED" | "GOLDEN_PLACEMENT_IN_FLIGHT" | "GOLDEN_PROMO_BUSY" | "GOLDEN_CASHOUT_REFUSED" | "GOLDEN_OFFER_BELOW_FLOOR" | "GOLDEN_GIFT_TERMS_EXPIRED" | "GOLDEN_UNLOCK_REQUIRED" | "GOLDEN_GIVEN_OUT" | "GOLDEN_CODE_DISABLED" | "X_REQUIRED" | "X_ALREADY_CLAIMED" | "INVALID_SIGNATURE" | "WALLET_CONTRACT_UNSUPPORTED" | "WRONG_AUTHORITY" | "KEY_LIMIT_REACHED" | "USERNAME_NOT_ALLOWED" | "FOLLOW_SELF" | "FOLLOW_LIMIT_REACHED" | "GOLDEN_LEG_COUNT" | "GOLDEN_LEG_NOT_ELIGIBLE" | "GOLDEN_QUOTE_NOT_HOUSE" | "RATE_LIMITED" | "CONNECTION_LIMIT" | "RFQ_INTENT_LIMIT" | "QUOTE_EXPOSURE_LIMIT" | "DEPENDENCY_STALE" | "AUTHORIZATION_UNAVAILABLE" | "SOURCE_UNAVAILABLE" | "CONTRACT_UNAVAILABLE" | "MARKET_DATA_UNAVAILABLE" | "BROWSE_UNAVAILABLE" | "FINANCIAL_ACTIONS_DISABLED" | "CORE_EXIT_UNAVAILABLE" | "COLLATERAL_REDUCTION_UNAVAILABLE" | "SPONSORSHIP_UNAVAILABLE" | "CONTRACT_SIGNATURE_OVERLOADED" | "QUOTE_EXPOSURE_STALE" | "COMBO_AUTOMATIC_DISABLED" | "GAS_PRICE_ABOVE_CEILING" | "EXECUTION_BACKLOG_FULL" | "EMBEDDED_WALLET_UNAVAILABLE" | "GOLDEN_PROMO_FUNDS_LOW" | "X_VERIFICATION_UNAVAILABLE" | "CONNECTION_DRAIN";
379
379
  readonly FieldViolation: {
380
380
  /**
381
381
  * @description REQUIRED: the input is missing. INVALID: it is present but malformed or out of range. UNEXPECTED: the input is not accepted here.
@@ -734,7 +734,7 @@ export type components = {
734
734
  * @description Stable HTTP error code. Each code has one HTTP status and one retry value.
735
735
  * @enum {string}
736
736
  */
737
- readonly ErrorCode: "INVALID_REQUEST" | "INVALID_QUERY" | "INVALID_CURSOR" | "INVALID_IDEMPOTENCY_KEY" | "ORIGIN_REQUIRED" | "SUBPROTOCOL_REQUIRED" | "UNSUPPORTED_BROWSE_CONTRACT" | "UNAUTHENTICATED" | "FORBIDDEN" | "ORIGIN_NOT_ALLOWED" | "ACCESS_REQUIRED" | "SIGN_IN_REQUIRED" | "NOT_FOUND" | "IDENTITY_NOT_FOUND" | "QUOTE_NOT_FOUND" | "INVITE_CODE_NOT_FOUND" | "IDEMPOTENCY_KEY_REUSED" | "STATE_CONFLICT" | "INVITE_CODE_EXHAUSTED" | "STALE_CURSOR" | "CURSOR_EXPIRED" | "CURSOR_RESET" | "RECURRING_DEFINITION_CONFLICT" | "EMBEDDED_WALLET_CONFLICT" | "SECRET_UNAVAILABLE" | "ROTATION_IN_PROGRESS" | "TELEMETRY_CONFLICT" | "RFQ_NOT_CANCELLABLE" | "RFQ_NOT_OPEN" | "RFQ_GENERATION_STALE" | "RFQ_GENERATION_IN_FLIGHT" | "QUOTE_EXPIRED" | "QUOTE_CANCELLED" | "QUOTE_REPLACED" | "QUOTE_SIGNER_CHANGED" | "QUOTE_CAPACITY_EXCEEDED" | "CORE_ACCOUNT_NOT_READY" | "CORE_ACCOUNT_ACTIVATION_REQUIRED" | "CORE_EXIT_ABANDONED" | "CORE_MOVE_IN_FLIGHT" | "ACCEPTANCE_IN_FLIGHT" | "USERNAME_TAKEN" | "USERNAME_ALREADY_SET" | "USERNAME_REQUIRED" | "GOLDEN_TICKET_NONE" | "GOLDEN_TICKET_USED" | "GOLDEN_TICKET_EXPIRED" | "GOLDEN_PLACEMENT_IN_FLIGHT" | "GOLDEN_PROMO_BUSY" | "GOLDEN_CASHOUT_REFUSED" | "GOLDEN_OFFER_BELOW_FLOOR" | "GOLDEN_GIFT_TERMS_EXPIRED" | "INVALID_SIGNATURE" | "WALLET_CONTRACT_UNSUPPORTED" | "WRONG_AUTHORITY" | "KEY_LIMIT_REACHED" | "USERNAME_NOT_ALLOWED" | "FOLLOW_SELF" | "FOLLOW_LIMIT_REACHED" | "GOLDEN_LEG_COUNT" | "GOLDEN_LEG_NOT_ELIGIBLE" | "GOLDEN_QUOTE_NOT_HOUSE" | "RATE_LIMITED" | "CONNECTION_LIMIT" | "RFQ_INTENT_LIMIT" | "QUOTE_EXPOSURE_LIMIT" | "DEPENDENCY_STALE" | "AUTHORIZATION_UNAVAILABLE" | "SOURCE_UNAVAILABLE" | "CONTRACT_UNAVAILABLE" | "MARKET_DATA_UNAVAILABLE" | "BROWSE_UNAVAILABLE" | "FINANCIAL_ACTIONS_DISABLED" | "CORE_EXIT_UNAVAILABLE" | "COLLATERAL_REDUCTION_UNAVAILABLE" | "SPONSORSHIP_UNAVAILABLE" | "CONTRACT_SIGNATURE_OVERLOADED" | "QUOTE_EXPOSURE_STALE" | "COMBO_AUTOMATIC_DISABLED" | "GAS_PRICE_ABOVE_CEILING" | "EXECUTION_BACKLOG_FULL" | "EMBEDDED_WALLET_UNAVAILABLE" | "GOLDEN_PROMO_FUNDS_LOW" | "CONNECTION_DRAIN";
737
+ readonly ErrorCode: "INVALID_REQUEST" | "INVALID_QUERY" | "INVALID_CURSOR" | "INVALID_IDEMPOTENCY_KEY" | "ORIGIN_REQUIRED" | "SUBPROTOCOL_REQUIRED" | "UNSUPPORTED_BROWSE_CONTRACT" | "UNAUTHENTICATED" | "FORBIDDEN" | "ORIGIN_NOT_ALLOWED" | "ACCESS_REQUIRED" | "SIGN_IN_REQUIRED" | "NOT_FOUND" | "IDENTITY_NOT_FOUND" | "QUOTE_NOT_FOUND" | "INVITE_CODE_NOT_FOUND" | "IDEMPOTENCY_KEY_REUSED" | "STATE_CONFLICT" | "INVITE_CODE_EXHAUSTED" | "STALE_CURSOR" | "CURSOR_EXPIRED" | "CURSOR_RESET" | "RECURRING_DEFINITION_CONFLICT" | "EMBEDDED_WALLET_CONFLICT" | "SECRET_UNAVAILABLE" | "ROTATION_IN_PROGRESS" | "TELEMETRY_CONFLICT" | "RFQ_NOT_CANCELLABLE" | "RFQ_NOT_OPEN" | "RFQ_GENERATION_STALE" | "RFQ_GENERATION_IN_FLIGHT" | "QUOTE_EXPIRED" | "QUOTE_CANCELLED" | "QUOTE_REPLACED" | "QUOTE_SIGNER_CHANGED" | "QUOTE_CAPACITY_EXCEEDED" | "CORE_ACCOUNT_NOT_READY" | "CORE_ACCOUNT_ACTIVATION_REQUIRED" | "CORE_EXIT_ABANDONED" | "CORE_MOVE_IN_FLIGHT" | "ACCEPTANCE_IN_FLIGHT" | "USERNAME_TAKEN" | "USERNAME_ALREADY_SET" | "USERNAME_REQUIRED" | "GOLDEN_TICKET_NONE" | "GOLDEN_TICKET_USED" | "GOLDEN_TICKET_EXPIRED" | "GOLDEN_PLACEMENT_IN_FLIGHT" | "GOLDEN_PROMO_BUSY" | "GOLDEN_CASHOUT_REFUSED" | "GOLDEN_OFFER_BELOW_FLOOR" | "GOLDEN_GIFT_TERMS_EXPIRED" | "GOLDEN_UNLOCK_REQUIRED" | "GOLDEN_GIVEN_OUT" | "GOLDEN_CODE_DISABLED" | "X_REQUIRED" | "X_ALREADY_CLAIMED" | "INVALID_SIGNATURE" | "WALLET_CONTRACT_UNSUPPORTED" | "WRONG_AUTHORITY" | "KEY_LIMIT_REACHED" | "USERNAME_NOT_ALLOWED" | "FOLLOW_SELF" | "FOLLOW_LIMIT_REACHED" | "GOLDEN_LEG_COUNT" | "GOLDEN_LEG_NOT_ELIGIBLE" | "GOLDEN_QUOTE_NOT_HOUSE" | "RATE_LIMITED" | "CONNECTION_LIMIT" | "RFQ_INTENT_LIMIT" | "QUOTE_EXPOSURE_LIMIT" | "DEPENDENCY_STALE" | "AUTHORIZATION_UNAVAILABLE" | "SOURCE_UNAVAILABLE" | "CONTRACT_UNAVAILABLE" | "MARKET_DATA_UNAVAILABLE" | "BROWSE_UNAVAILABLE" | "FINANCIAL_ACTIONS_DISABLED" | "CORE_EXIT_UNAVAILABLE" | "COLLATERAL_REDUCTION_UNAVAILABLE" | "SPONSORSHIP_UNAVAILABLE" | "CONTRACT_SIGNATURE_OVERLOADED" | "QUOTE_EXPOSURE_STALE" | "COMBO_AUTOMATIC_DISABLED" | "GAS_PRICE_ABOVE_CEILING" | "EXECUTION_BACKLOG_FULL" | "EMBEDDED_WALLET_UNAVAILABLE" | "GOLDEN_PROMO_FUNDS_LOW" | "X_VERIFICATION_UNAVAILABLE" | "CONNECTION_DRAIN";
738
738
  readonly FieldViolation: {
739
739
  /**
740
740
  * @description REQUIRED: the input is missing. INVALID: it is present but malformed or out of range. UNEXPECTED: the input is not accepted here.
@@ -26,6 +26,7 @@ export type paths = {
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
28
  readonly "/v1/partner/fills": Pick<SharedPaths["/v1/partner/fills"], "parameters" | "get">;
29
+ readonly "/v1/partner/webhook-events": Pick<SharedPaths["/v1/partner/webhook-events"], "parameters" | "get">;
29
30
  readonly "/v1/me/acquisition": Pick<SharedPaths["/v1/me/acquisition"], "parameters" | "put">;
30
31
  readonly "/v1/me/username": Pick<SharedPaths["/v1/me/username"], "parameters" | "put">;
31
32
  readonly "/v1/me/username/availability": Pick<SharedPaths["/v1/me/username/availability"], "parameters" | "get">;
@@ -34,6 +35,8 @@ export type paths = {
34
35
  readonly "/v1/deployment": Pick<SharedPaths["/v1/deployment"], "parameters" | "get">;
35
36
  readonly "/v1/suggested-combo": Pick<SharedPaths["/v1/suggested-combo"], "parameters" | "get">;
36
37
  readonly "/v1/me/golden": Pick<SharedPaths["/v1/me/golden"], "parameters" | "get">;
38
+ readonly "/v1/me/golden/unlock": Pick<SharedPaths["/v1/me/golden/unlock"], "parameters" | "post">;
39
+ readonly "/v1/me/golden/telegram-click": Pick<SharedPaths["/v1/me/golden/telegram-click"], "parameters" | "post">;
37
40
  readonly "/v1/me/golden/markets": Pick<SharedPaths["/v1/me/golden/markets"], "parameters" | "get">;
38
41
  readonly "/v1/me/golden/suggestions": Pick<SharedPaths["/v1/me/golden/suggestions"], "parameters" | "get">;
39
42
  readonly "/v1/me/golden/rfqs": Pick<SharedPaths["/v1/me/golden/rfqs"], "parameters" | "post">;
@@ -100,6 +103,7 @@ export type paths = {
100
103
  readonly "/v1/rfqs/{rfq_id}": Pick<SharedPaths["/v1/rfqs/{rfq_id}"], "parameters" | "get">;
101
104
  readonly "/v1/rfqs/{rfq_id}/cancel": Pick<SharedPaths["/v1/rfqs/{rfq_id}/cancel"], "parameters" | "post">;
102
105
  readonly "/v1/me/balances": Pick<SharedPaths["/v1/me/balances"], "parameters" | "get">;
106
+ readonly "/v1/me/account-value": Pick<SharedPaths["/v1/me/account-value"], "parameters" | "get">;
103
107
  readonly "/v1/me/operations": Pick<SharedPaths["/v1/me/operations"], "parameters" | "get">;
104
108
  readonly "/v1/me/operations/{operation_id}": Pick<SharedPaths["/v1/me/operations/{operation_id}"], "parameters" | "get">;
105
109
  readonly "/v1/makers/{maker_id}/funding-transaction": Pick<SharedPaths["/v1/makers/{maker_id}/funding-transaction"], "parameters" | "get">;
@@ -118,4 +122,4 @@ export type paths = {
118
122
  readonly "/v1/makers/{maker_id}/exposure": Pick<SharedPaths["/v1/makers/{maker_id}/exposure"], "parameters" | "get">;
119
123
  readonly "/v1/makers/{maker_id}/performance": Pick<SharedPaths["/v1/makers/{maker_id}/performance"], "parameters" | "get">;
120
124
  };
121
- 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" | "getMyReferralBonus" | "getOperation" | "getOwnMaker" | "getPartnerReport" | "getPerpMarks" | "getProfitLeaderboard" | "getQuestion" | "getQuestionRecurringRound" | "getQuestionScoreTimeline" | "getRfq" | "getSeries" | "getSuggestedCombo" | "getTaxonomy" | "getTrader" | "getTraderPnl" | "getUsernameAvailability" | "getVaultAgents" | "getVolumeLeaderboard" | "getWalletApproval" | "getWithdrawal" | "grantComboCopyAgent" | "grantVaultAgent" | "likeComment" | "listAccountActivity" | "listAccountPositions" | "listComboCopies" | "listComboFeed" | "listCommentReplies" | "listComments" | "listControlledMakers" | "listCopiedFills" | "listCopyTrades" | "listDiscovery" | "listFollows" | "listMakerActivity" | "listMakerPositions" | "listMakerQuoteHistory" | "listMarkets" | "listMyNotifications" | "listOperations" | "listPartnerFills" | "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">;
125
+ 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" | "getAccountValue" | "getBalances" | "getCopyAgents" | "getCopyBudget" | "getCopySettings" | "getCopySummary" | "getCoreExit" | "getDeployment" | "getGolden" | "getGoldenMarkets" | "getGoldenOffer" | "getGoldenSuggestions" | "getHypercoreBalance" | "getHypercorePortfolio" | "getHypercoreSettlementCredits" | "getIdentity" | "getMakerActivity" | "getMakerCapital" | "getMakerExposure" | "getMakerPerformance" | "getMakerPosition" | "getMakerQuotes" | "getMakerTelemetry" | "getMakerVaultFundingTransaction" | "getMakerWithdrawal" | "getMarket" | "getMarketDataConfig" | "getMarketDefinitions" | "getMarketHistory" | "getMarketRecurringRound" | "getMarketReferenceCloses" | "getMarketScoreTimeline" | "getMarketStats" | "getMyGenesis" | "getMyReferralBonus" | "getOperation" | "getOwnMaker" | "getPartnerReport" | "getPerpMarks" | "getProfitLeaderboard" | "getQuestion" | "getQuestionRecurringRound" | "getQuestionScoreTimeline" | "getRfq" | "getSeries" | "getSuggestedCombo" | "getTaxonomy" | "getTrader" | "getTraderPnl" | "getUsernameAvailability" | "getVaultAgents" | "getVolumeLeaderboard" | "getWalletApproval" | "getWithdrawal" | "grantComboCopyAgent" | "grantVaultAgent" | "likeComment" | "listAccountActivity" | "listAccountPositions" | "listComboCopies" | "listComboFeed" | "listCommentReplies" | "listComments" | "listControlledMakers" | "listCopiedFills" | "listCopyTrades" | "listDiscovery" | "listFollows" | "listMakerActivity" | "listMakerPositions" | "listMakerQuoteHistory" | "listMarkets" | "listMyNotifications" | "listOperations" | "listPartnerFills" | "listPartnerWebhookEvents" | "listQuotes" | "listTraderPositions" | "listTraderTrades" | "markMyNotificationsRead" | "placeGolden" | "reactComment" | "recordAcquisition" | "recordGoldenTelegramClick" | "refreshPicture" | "requestComboCopyAgent" | "requestCoreCopyAgent" | "revokeComboCopyAgent" | "searchCatalog" | "setAvatar" | "setCopyAllocation" | "setCopySettings" | "setPublicProfile" | "setUsername" | "setXHandleShown" | "signGoldenGift" | "stream" | "streamMarkets" | "switchOffComboCopyAgent" | "switchOffCoreCopyAgent" | "unfollowTrader" | "unlikeComment" | "unlockGolden" | "unreactComment">;
@@ -210,6 +210,26 @@ export declare const errorRegistry: {
210
210
  readonly status: 409;
211
211
  readonly retry: "REFRESH";
212
212
  };
213
+ readonly GOLDEN_UNLOCK_REQUIRED: {
214
+ readonly status: 409;
215
+ readonly retry: "NEVER";
216
+ };
217
+ readonly GOLDEN_GIVEN_OUT: {
218
+ readonly status: 409;
219
+ readonly retry: "NEVER";
220
+ };
221
+ readonly GOLDEN_CODE_DISABLED: {
222
+ readonly status: 409;
223
+ readonly retry: "NEVER";
224
+ };
225
+ readonly X_REQUIRED: {
226
+ readonly status: 409;
227
+ readonly retry: "NEVER";
228
+ };
229
+ readonly X_ALREADY_CLAIMED: {
230
+ readonly status: 409;
231
+ readonly retry: "NEVER";
232
+ };
213
233
  readonly INVALID_SIGNATURE: {
214
234
  readonly status: 422;
215
235
  readonly retry: "NEVER";
@@ -336,6 +356,10 @@ export declare const errorRegistry: {
336
356
  readonly status: 503;
337
357
  readonly retry: "BACKOFF";
338
358
  };
359
+ readonly X_VERIFICATION_UNAVAILABLE: {
360
+ readonly status: 503;
361
+ readonly retry: "BACKOFF";
362
+ };
339
363
  readonly CONNECTION_DRAIN: {
340
364
  readonly status: 503;
341
365
  readonly close: 1012;
@@ -372,7 +396,7 @@ export declare const errorRegistry: {
372
396
  };
373
397
  /** NEVER: stop. BACKOFF: resend the same request with the same Idempotency-Key after Retry-After. REFRESH: re-read state, then send a new request with a new key. */
374
398
  export type Retry = "NEVER" | "BACKOFF" | "REFRESH";
375
- export type ErrorCode = "INVALID_REQUEST" | "INVALID_QUERY" | "INVALID_CURSOR" | "INVALID_IDEMPOTENCY_KEY" | "ORIGIN_REQUIRED" | "SUBPROTOCOL_REQUIRED" | "UNSUPPORTED_BROWSE_CONTRACT" | "UNAUTHENTICATED" | "FORBIDDEN" | "ORIGIN_NOT_ALLOWED" | "ACCESS_REQUIRED" | "SIGN_IN_REQUIRED" | "NOT_FOUND" | "IDENTITY_NOT_FOUND" | "QUOTE_NOT_FOUND" | "INVITE_CODE_NOT_FOUND" | "IDEMPOTENCY_KEY_REUSED" | "STATE_CONFLICT" | "INVITE_CODE_EXHAUSTED" | "STALE_CURSOR" | "CURSOR_EXPIRED" | "CURSOR_RESET" | "RECURRING_DEFINITION_CONFLICT" | "EMBEDDED_WALLET_CONFLICT" | "SECRET_UNAVAILABLE" | "ROTATION_IN_PROGRESS" | "TELEMETRY_CONFLICT" | "RFQ_NOT_CANCELLABLE" | "RFQ_NOT_OPEN" | "RFQ_GENERATION_STALE" | "RFQ_GENERATION_IN_FLIGHT" | "QUOTE_EXPIRED" | "QUOTE_CANCELLED" | "QUOTE_REPLACED" | "QUOTE_SIGNER_CHANGED" | "QUOTE_CAPACITY_EXCEEDED" | "CORE_ACCOUNT_NOT_READY" | "CORE_ACCOUNT_ACTIVATION_REQUIRED" | "CORE_EXIT_ABANDONED" | "CORE_MOVE_IN_FLIGHT" | "ACCEPTANCE_IN_FLIGHT" | "USERNAME_TAKEN" | "USERNAME_ALREADY_SET" | "USERNAME_REQUIRED" | "GOLDEN_TICKET_NONE" | "GOLDEN_TICKET_USED" | "GOLDEN_TICKET_EXPIRED" | "GOLDEN_PLACEMENT_IN_FLIGHT" | "GOLDEN_PROMO_BUSY" | "GOLDEN_CASHOUT_REFUSED" | "GOLDEN_OFFER_BELOW_FLOOR" | "GOLDEN_GIFT_TERMS_EXPIRED" | "INVALID_SIGNATURE" | "WALLET_CONTRACT_UNSUPPORTED" | "WRONG_AUTHORITY" | "KEY_LIMIT_REACHED" | "USERNAME_NOT_ALLOWED" | "FOLLOW_SELF" | "FOLLOW_LIMIT_REACHED" | "GOLDEN_LEG_COUNT" | "GOLDEN_LEG_NOT_ELIGIBLE" | "GOLDEN_QUOTE_NOT_HOUSE" | "RATE_LIMITED" | "CONNECTION_LIMIT" | "RFQ_INTENT_LIMIT" | "QUOTE_EXPOSURE_LIMIT" | "DEPENDENCY_STALE" | "AUTHORIZATION_UNAVAILABLE" | "SOURCE_UNAVAILABLE" | "CONTRACT_UNAVAILABLE" | "MARKET_DATA_UNAVAILABLE" | "BROWSE_UNAVAILABLE" | "FINANCIAL_ACTIONS_DISABLED" | "CORE_EXIT_UNAVAILABLE" | "COLLATERAL_REDUCTION_UNAVAILABLE" | "SPONSORSHIP_UNAVAILABLE" | "CONTRACT_SIGNATURE_OVERLOADED" | "QUOTE_EXPOSURE_STALE" | "COMBO_AUTOMATIC_DISABLED" | "GAS_PRICE_ABOVE_CEILING" | "EXECUTION_BACKLOG_FULL" | "EMBEDDED_WALLET_UNAVAILABLE" | "GOLDEN_PROMO_FUNDS_LOW" | "CONNECTION_DRAIN";
399
+ export type ErrorCode = "INVALID_REQUEST" | "INVALID_QUERY" | "INVALID_CURSOR" | "INVALID_IDEMPOTENCY_KEY" | "ORIGIN_REQUIRED" | "SUBPROTOCOL_REQUIRED" | "UNSUPPORTED_BROWSE_CONTRACT" | "UNAUTHENTICATED" | "FORBIDDEN" | "ORIGIN_NOT_ALLOWED" | "ACCESS_REQUIRED" | "SIGN_IN_REQUIRED" | "NOT_FOUND" | "IDENTITY_NOT_FOUND" | "QUOTE_NOT_FOUND" | "INVITE_CODE_NOT_FOUND" | "IDEMPOTENCY_KEY_REUSED" | "STATE_CONFLICT" | "INVITE_CODE_EXHAUSTED" | "STALE_CURSOR" | "CURSOR_EXPIRED" | "CURSOR_RESET" | "RECURRING_DEFINITION_CONFLICT" | "EMBEDDED_WALLET_CONFLICT" | "SECRET_UNAVAILABLE" | "ROTATION_IN_PROGRESS" | "TELEMETRY_CONFLICT" | "RFQ_NOT_CANCELLABLE" | "RFQ_NOT_OPEN" | "RFQ_GENERATION_STALE" | "RFQ_GENERATION_IN_FLIGHT" | "QUOTE_EXPIRED" | "QUOTE_CANCELLED" | "QUOTE_REPLACED" | "QUOTE_SIGNER_CHANGED" | "QUOTE_CAPACITY_EXCEEDED" | "CORE_ACCOUNT_NOT_READY" | "CORE_ACCOUNT_ACTIVATION_REQUIRED" | "CORE_EXIT_ABANDONED" | "CORE_MOVE_IN_FLIGHT" | "ACCEPTANCE_IN_FLIGHT" | "USERNAME_TAKEN" | "USERNAME_ALREADY_SET" | "USERNAME_REQUIRED" | "GOLDEN_TICKET_NONE" | "GOLDEN_TICKET_USED" | "GOLDEN_TICKET_EXPIRED" | "GOLDEN_PLACEMENT_IN_FLIGHT" | "GOLDEN_PROMO_BUSY" | "GOLDEN_CASHOUT_REFUSED" | "GOLDEN_OFFER_BELOW_FLOOR" | "GOLDEN_GIFT_TERMS_EXPIRED" | "GOLDEN_UNLOCK_REQUIRED" | "GOLDEN_GIVEN_OUT" | "GOLDEN_CODE_DISABLED" | "X_REQUIRED" | "X_ALREADY_CLAIMED" | "INVALID_SIGNATURE" | "WALLET_CONTRACT_UNSUPPORTED" | "WRONG_AUTHORITY" | "KEY_LIMIT_REACHED" | "USERNAME_NOT_ALLOWED" | "FOLLOW_SELF" | "FOLLOW_LIMIT_REACHED" | "GOLDEN_LEG_COUNT" | "GOLDEN_LEG_NOT_ELIGIBLE" | "GOLDEN_QUOTE_NOT_HOUSE" | "RATE_LIMITED" | "CONNECTION_LIMIT" | "RFQ_INTENT_LIMIT" | "QUOTE_EXPOSURE_LIMIT" | "DEPENDENCY_STALE" | "AUTHORIZATION_UNAVAILABLE" | "SOURCE_UNAVAILABLE" | "CONTRACT_UNAVAILABLE" | "MARKET_DATA_UNAVAILABLE" | "BROWSE_UNAVAILABLE" | "FINANCIAL_ACTIONS_DISABLED" | "CORE_EXIT_UNAVAILABLE" | "COLLATERAL_REDUCTION_UNAVAILABLE" | "SPONSORSHIP_UNAVAILABLE" | "CONTRACT_SIGNATURE_OVERLOADED" | "QUOTE_EXPOSURE_STALE" | "COMBO_AUTOMATIC_DISABLED" | "GAS_PRICE_ABOVE_CEILING" | "EXECUTION_BACKLOG_FULL" | "EMBEDDED_WALLET_UNAVAILABLE" | "GOLDEN_PROMO_FUNDS_LOW" | "X_VERIFICATION_UNAVAILABLE" | "CONNECTION_DRAIN";
376
400
  export type CloseReason = "SUBPROTOCOL_REQUIRED" | "CURSOR_RESET" | "DEPENDENCY_STALE" | "SOURCE_UNAVAILABLE" | "CONNECTION_DRAIN" | "INVALID_SUBSCRIPTION" | "SUBSCRIPTION_DENIED" | "AUTHORIZATION_REVOKED" | "STREAM_REPLACED" | "SLOW_CONSUMER" | "RESNAPSHOT_REQUIRED" | "SNAPSHOT_TOO_LARGE";
377
401
  /** The codes each live operation can return. */
378
402
  export declare const operationErrors: {
@@ -393,7 +417,7 @@ export declare const operationErrors: {
393
417
  readonly createComment: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_REQUEST", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED", "STATE_CONFLICT"];
394
418
  readonly createCoreExit: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED", "CORE_EXIT_UNAVAILABLE", "CORE_ACCOUNT_NOT_READY", "CORE_ACCOUNT_ACTIVATION_REQUIRED", "CORE_MOVE_IN_FLIGHT", "STATE_CONFLICT", "FINANCIAL_ACTIONS_DISABLED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND"];
395
419
  readonly createDeposit: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED", "STATE_CONFLICT", "FINANCIAL_ACTIONS_DISABLED", "INVALID_SIGNATURE", "SPONSORSHIP_UNAVAILABLE", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND"];
396
- readonly createGoldenRfq: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_REQUEST", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED", "CONTRACT_UNAVAILABLE", "GOLDEN_TICKET_NONE", "GOLDEN_TICKET_USED", "GOLDEN_TICKET_EXPIRED", "GOLDEN_PLACEMENT_IN_FLIGHT", "GOLDEN_LEG_COUNT", "GOLDEN_LEG_NOT_ELIGIBLE", "STATE_CONFLICT", "FINANCIAL_ACTIONS_DISABLED", "COMBO_AUTOMATIC_DISABLED", "BROWSE_UNAVAILABLE"];
420
+ readonly createGoldenRfq: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_REQUEST", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED", "CONTRACT_UNAVAILABLE", "GOLDEN_TICKET_NONE", "GOLDEN_UNLOCK_REQUIRED", "GOLDEN_TICKET_USED", "GOLDEN_TICKET_EXPIRED", "GOLDEN_PLACEMENT_IN_FLIGHT", "GOLDEN_LEG_COUNT", "GOLDEN_LEG_NOT_ELIGIBLE", "STATE_CONFLICT", "FINANCIAL_ACTIONS_DISABLED", "COMBO_AUTOMATIC_DISABLED", "BROWSE_UNAVAILABLE"];
397
421
  readonly createMakerApiKey: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND", "IDEMPOTENCY_KEY_REUSED", "SECRET_UNAVAILABLE", "KEY_LIMIT_REACHED"];
398
422
  readonly createMakerApiKeyChallenge: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND", "IDEMPOTENCY_KEY_REUSED"];
399
423
  readonly createOperatorApiKey: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND", "IDEMPOTENCY_KEY_REUSED", "SECRET_UNAVAILABLE", "KEY_LIMIT_REACHED"];
@@ -413,6 +437,7 @@ export declare const operationErrors: {
413
437
  readonly getAccountActivity: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_QUERY", "ORIGIN_REQUIRED", "NOT_FOUND", "SOURCE_UNAVAILABLE", "CONTRACT_UNAVAILABLE", "IDENTITY_NOT_FOUND"];
414
438
  readonly getAccountPnl: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_QUERY", "ORIGIN_REQUIRED", "SOURCE_UNAVAILABLE", "CONTRACT_UNAVAILABLE", "IDENTITY_NOT_FOUND"];
415
439
  readonly getAccountPosition: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_QUERY", "ORIGIN_REQUIRED", "NOT_FOUND", "SOURCE_UNAVAILABLE", "CONTRACT_UNAVAILABLE", "IDENTITY_NOT_FOUND"];
440
+ readonly getAccountValue: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "IDENTITY_NOT_FOUND", "SOURCE_UNAVAILABLE"];
416
441
  readonly getBalances: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "IDENTITY_NOT_FOUND"];
417
442
  readonly getCollateralReduction: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND", "IDENTITY_NOT_FOUND"];
418
443
  readonly getCopyAgents: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "CONTRACT_UNAVAILABLE", "INVALID_QUERY"];
@@ -424,7 +449,7 @@ export declare const operationErrors: {
424
449
  readonly getGolden: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY"];
425
450
  readonly getGoldenMarkets: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY", "CONTRACT_UNAVAILABLE", "BROWSE_UNAVAILABLE"];
426
451
  readonly getGoldenOffer: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY", "NOT_FOUND", "CONTRACT_UNAVAILABLE", "FINANCIAL_ACTIONS_DISABLED"];
427
- readonly getGoldenSuggestions: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY", "CONTRACT_UNAVAILABLE", "GOLDEN_TICKET_NONE", "GOLDEN_TICKET_USED", "GOLDEN_TICKET_EXPIRED", "GOLDEN_PLACEMENT_IN_FLIGHT", "BROWSE_UNAVAILABLE"];
452
+ readonly getGoldenSuggestions: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY", "CONTRACT_UNAVAILABLE", "GOLDEN_TICKET_NONE", "GOLDEN_UNLOCK_REQUIRED", "GOLDEN_TICKET_USED", "GOLDEN_TICKET_EXPIRED", "GOLDEN_PLACEMENT_IN_FLIGHT", "BROWSE_UNAVAILABLE"];
428
453
  readonly getHypercoreBalance: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "INVALID_REQUEST", "IDENTITY_NOT_FOUND"];
429
454
  readonly getHypercorePortfolio: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "IDENTITY_NOT_FOUND"];
430
455
  readonly getHypercoreSettlementCredits: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "IDENTITY_NOT_FOUND"];
@@ -494,6 +519,7 @@ export declare const operationErrors: {
494
519
  readonly listOperations: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_QUERY", "INVALID_CURSOR", "IDENTITY_NOT_FOUND"];
495
520
  readonly listOperatorApiKeys: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND"];
496
521
  readonly listPartnerFills: readonly ["INVALID_QUERY", "INVALID_CURSOR", "UNAUTHENTICATED", "FORBIDDEN", "RATE_LIMITED", "AUTHORIZATION_UNAVAILABLE", "SOURCE_UNAVAILABLE"];
522
+ readonly listPartnerWebhookEvents: readonly ["INVALID_QUERY", "INVALID_CURSOR", "UNAUTHENTICATED", "FORBIDDEN", "RATE_LIMITED", "AUTHORIZATION_UNAVAILABLE", "SOURCE_UNAVAILABLE"];
497
523
  readonly listPersonalApiKeys: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND"];
498
524
  readonly listQuotes: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND", "IDENTITY_NOT_FOUND"];
499
525
  readonly listRfqs: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_QUERY", "INVALID_CURSOR"];
@@ -501,11 +527,12 @@ export declare const operationErrors: {
501
527
  readonly listTraderTrades: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_QUERY", "NOT_FOUND", "SOURCE_UNAVAILABLE"];
502
528
  readonly live: readonly [];
503
529
  readonly markMyNotificationsRead: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_REQUEST", "INVALID_IDEMPOTENCY_KEY", "CONTRACT_UNAVAILABLE"];
504
- 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"];
530
+ 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_UNLOCK_REQUIRED", "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"];
505
531
  readonly publishMakerTelemetry: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_QUERY", "NOT_FOUND", "CONTRACT_UNAVAILABLE", "TELEMETRY_CONFLICT", "INVALID_REQUEST"];
506
532
  readonly reactComment: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "NOT_FOUND", "INVALID_IDEMPOTENCY_KEY"];
507
533
  readonly ready: readonly ["DEPENDENCY_STALE"];
508
534
  readonly recordAcquisition: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED", "IDENTITY_NOT_FOUND", "ORIGIN_REQUIRED"];
535
+ readonly recordGoldenTelegramClick: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_REQUEST", "CONTRACT_UNAVAILABLE", "GOLDEN_TICKET_NONE"];
509
536
  readonly refreshPicture: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "IDENTITY_NOT_FOUND", "ORIGIN_REQUIRED", "CONTRACT_UNAVAILABLE"];
510
537
  readonly releaseQuoteLease: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND"];
511
538
  readonly renewQuoteLease: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND"];
@@ -533,6 +560,7 @@ export declare const operationErrors: {
533
560
  readonly switchOffCoreCopyAgent: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "CONTRACT_UNAVAILABLE", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED"];
534
561
  readonly unfollowTrader: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_IDEMPOTENCY_KEY", "INVALID_REQUEST", "IDEMPOTENCY_KEY_REUSED"];
535
562
  readonly unlikeComment: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "NOT_FOUND", "INVALID_IDEMPOTENCY_KEY"];
563
+ readonly unlockGolden: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_REQUEST", "CONTRACT_UNAVAILABLE", "GOLDEN_TICKET_NONE", "GOLDEN_TICKET_USED", "GOLDEN_TICKET_EXPIRED", "GOLDEN_PLACEMENT_IN_FLIGHT", "X_REQUIRED", "X_ALREADY_CLAIMED", "GOLDEN_GIVEN_OUT", "GOLDEN_CODE_DISABLED", "X_VERIFICATION_UNAVAILABLE"];
536
564
  readonly unreactComment: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "NOT_FOUND", "INVALID_IDEMPOTENCY_KEY"];
537
565
  };
538
566
  export type OperationErrorCode<Id extends keyof typeof operationErrors> = (typeof operationErrors)[Id][number];
@@ -211,6 +211,26 @@ export const errorRegistry = {
211
211
  "status": 409,
212
212
  "retry": "REFRESH"
213
213
  },
214
+ "GOLDEN_UNLOCK_REQUIRED": {
215
+ "status": 409,
216
+ "retry": "NEVER"
217
+ },
218
+ "GOLDEN_GIVEN_OUT": {
219
+ "status": 409,
220
+ "retry": "NEVER"
221
+ },
222
+ "GOLDEN_CODE_DISABLED": {
223
+ "status": 409,
224
+ "retry": "NEVER"
225
+ },
226
+ "X_REQUIRED": {
227
+ "status": 409,
228
+ "retry": "NEVER"
229
+ },
230
+ "X_ALREADY_CLAIMED": {
231
+ "status": 409,
232
+ "retry": "NEVER"
233
+ },
214
234
  "INVALID_SIGNATURE": {
215
235
  "status": 422,
216
236
  "retry": "NEVER"
@@ -337,6 +357,10 @@ export const errorRegistry = {
337
357
  "status": 503,
338
358
  "retry": "BACKOFF"
339
359
  },
360
+ "X_VERIFICATION_UNAVAILABLE": {
361
+ "status": 503,
362
+ "retry": "BACKOFF"
363
+ },
340
364
  "CONNECTION_DRAIN": {
341
365
  "status": 503,
342
366
  "close": 1012,
@@ -644,6 +668,7 @@ export const operationErrors = {
644
668
  "IDEMPOTENCY_KEY_REUSED",
645
669
  "CONTRACT_UNAVAILABLE",
646
670
  "GOLDEN_TICKET_NONE",
671
+ "GOLDEN_UNLOCK_REQUIRED",
647
672
  "GOLDEN_TICKET_USED",
648
673
  "GOLDEN_TICKET_EXPIRED",
649
674
  "GOLDEN_PLACEMENT_IN_FLIGHT",
@@ -892,6 +917,15 @@ export const operationErrors = {
892
917
  "CONTRACT_UNAVAILABLE",
893
918
  "IDENTITY_NOT_FOUND"
894
919
  ],
920
+ "getAccountValue": [
921
+ "UNAUTHENTICATED",
922
+ "FORBIDDEN",
923
+ "AUTHORIZATION_UNAVAILABLE",
924
+ "DEPENDENCY_STALE",
925
+ "RATE_LIMITED",
926
+ "IDENTITY_NOT_FOUND",
927
+ "SOURCE_UNAVAILABLE"
928
+ ],
895
929
  "getBalances": [
896
930
  "UNAUTHENTICATED",
897
931
  "FORBIDDEN",
@@ -1014,6 +1048,7 @@ export const operationErrors = {
1014
1048
  "INVALID_QUERY",
1015
1049
  "CONTRACT_UNAVAILABLE",
1016
1050
  "GOLDEN_TICKET_NONE",
1051
+ "GOLDEN_UNLOCK_REQUIRED",
1017
1052
  "GOLDEN_TICKET_USED",
1018
1053
  "GOLDEN_TICKET_EXPIRED",
1019
1054
  "GOLDEN_PLACEMENT_IN_FLIGHT",
@@ -1684,6 +1719,15 @@ export const operationErrors = {
1684
1719
  "AUTHORIZATION_UNAVAILABLE",
1685
1720
  "SOURCE_UNAVAILABLE"
1686
1721
  ],
1722
+ "listPartnerWebhookEvents": [
1723
+ "INVALID_QUERY",
1724
+ "INVALID_CURSOR",
1725
+ "UNAUTHENTICATED",
1726
+ "FORBIDDEN",
1727
+ "RATE_LIMITED",
1728
+ "AUTHORIZATION_UNAVAILABLE",
1729
+ "SOURCE_UNAVAILABLE"
1730
+ ],
1687
1731
  "listPersonalApiKeys": [
1688
1732
  "UNAUTHENTICATED",
1689
1733
  "FORBIDDEN",
@@ -1756,6 +1800,7 @@ export const operationErrors = {
1756
1800
  "NOT_FOUND",
1757
1801
  "CONTRACT_UNAVAILABLE",
1758
1802
  "GOLDEN_TICKET_NONE",
1803
+ "GOLDEN_UNLOCK_REQUIRED",
1759
1804
  "GOLDEN_TICKET_USED",
1760
1805
  "GOLDEN_TICKET_EXPIRED",
1761
1806
  "GOLDEN_PLACEMENT_IN_FLIGHT",
@@ -1813,6 +1858,18 @@ export const operationErrors = {
1813
1858
  "IDENTITY_NOT_FOUND",
1814
1859
  "ORIGIN_REQUIRED"
1815
1860
  ],
1861
+ "recordGoldenTelegramClick": [
1862
+ "UNAUTHENTICATED",
1863
+ "FORBIDDEN",
1864
+ "AUTHORIZATION_UNAVAILABLE",
1865
+ "DEPENDENCY_STALE",
1866
+ "RATE_LIMITED",
1867
+ "ORIGIN_REQUIRED",
1868
+ "IDENTITY_NOT_FOUND",
1869
+ "INVALID_REQUEST",
1870
+ "CONTRACT_UNAVAILABLE",
1871
+ "GOLDEN_TICKET_NONE"
1872
+ ],
1816
1873
  "refreshPicture": [
1817
1874
  "UNAUTHENTICATED",
1818
1875
  "FORBIDDEN",
@@ -2130,6 +2187,26 @@ export const operationErrors = {
2130
2187
  "NOT_FOUND",
2131
2188
  "INVALID_IDEMPOTENCY_KEY"
2132
2189
  ],
2190
+ "unlockGolden": [
2191
+ "UNAUTHENTICATED",
2192
+ "FORBIDDEN",
2193
+ "AUTHORIZATION_UNAVAILABLE",
2194
+ "DEPENDENCY_STALE",
2195
+ "RATE_LIMITED",
2196
+ "ORIGIN_REQUIRED",
2197
+ "IDENTITY_NOT_FOUND",
2198
+ "INVALID_REQUEST",
2199
+ "CONTRACT_UNAVAILABLE",
2200
+ "GOLDEN_TICKET_NONE",
2201
+ "GOLDEN_TICKET_USED",
2202
+ "GOLDEN_TICKET_EXPIRED",
2203
+ "GOLDEN_PLACEMENT_IN_FLIGHT",
2204
+ "X_REQUIRED",
2205
+ "X_ALREADY_CLAIMED",
2206
+ "GOLDEN_GIVEN_OUT",
2207
+ "GOLDEN_CODE_DISABLED",
2208
+ "X_VERIFICATION_UNAVAILABLE"
2209
+ ],
2133
2210
  "unreactComment": [
2134
2211
  "UNAUTHENTICATED",
2135
2212
  "FORBIDDEN",
@@ -555,6 +555,26 @@ export type paths = {
555
555
  readonly patch?: never;
556
556
  readonly trace?: never;
557
557
  };
558
+ readonly "/v1/partner/webhook-events": {
559
+ readonly parameters: {
560
+ readonly query?: never;
561
+ readonly header?: never;
562
+ readonly path?: never;
563
+ readonly cookie?: never;
564
+ };
565
+ /**
566
+ * List your webhook events
567
+ * @description Every webhook event Totalis queued for you in the last 30 days, delivered or not, in the order it queued them, each with the body it posts and how its delivery stands, so you can recover events your endpoint missed.
568
+ */
569
+ readonly get: operations["listPartnerWebhookEvents"];
570
+ readonly put?: never;
571
+ readonly post?: never;
572
+ readonly delete?: never;
573
+ readonly options?: never;
574
+ readonly head?: never;
575
+ readonly patch?: never;
576
+ readonly trace?: never;
577
+ };
558
578
  readonly "/v1/me/acquisition": {
559
579
  readonly parameters: {
560
580
  readonly query?: never;
@@ -704,7 +724,7 @@ export type paths = {
704
724
  };
705
725
  /**
706
726
  * Get the golden ticket
707
- * @description The account's golden ticket (TT-2624): one free Combo for an account created from a golden invite code, null for any other account or where golden Combos are off.
727
+ * @description The account's golden ticket (TT-2624): one free Combo for an account created from an invite code that still had free Combos to unlock when the account joined, null for any other account or where golden Combos are off. A ticket is LOCKED until this account unlocks it (POST /v1/me/golden/unlock); a LOCKED ticket is returned like any other, never null. A ticket not yet unlocked here first takes an unlock this account already made whose answer was lost, so another device or a reload sees it; reading never reads X or takes anything, and answers DEPENDENCY_STALE, not LOCKED, when that cannot be checked.
708
728
  */
709
729
  readonly get: operations["getGolden"];
710
730
  readonly put?: never;
@@ -715,6 +735,46 @@ export type paths = {
715
735
  readonly patch?: never;
716
736
  readonly trace?: never;
717
737
  };
738
+ readonly "/v1/me/golden/unlock": {
739
+ readonly parameters: {
740
+ readonly query?: never;
741
+ readonly header?: never;
742
+ readonly path?: never;
743
+ readonly cookie?: never;
744
+ };
745
+ readonly get?: never;
746
+ readonly put?: never;
747
+ /**
748
+ * Unlock the golden ticket
749
+ * @description Unlocks this account's LOCKED golden ticket, which makes it AVAILABLE. Totalis reads from the login provider which X account is linked to this account's login now, then, in one step, records that X account as having unlocked a free Combo, for good and on any account, and takes one free Combo from the invite code the account joined with: whoever unlocks first gets the last one. The body is empty; Totalis takes no X account, code or proof from the client. The account's single ticket keys the request: once it is unlocked, the same request answers the ticket as it stands and takes nothing more, also after X was unlinked, so an unlock whose answer was lost is found by unlocking again. Unlinking X later changes nothing, and an unlocked ticket that expires unused gives nothing back. Refusals take nothing: X_REQUIRED (no X account is linked), X_ALREADY_CLAIMED (that X account already unlocked a free Combo), GOLDEN_GIVEN_OUT (the code has none left), GOLDEN_CODE_DISABLED (the code is disabled), GOLDEN_TICKET_EXPIRED (it expired before it was unlocked), GOLDEN_TICKET_USED or GOLDEN_PLACEMENT_IN_FLIGHT (a ticket used before unlocking existed, which needs no unlock), X_VERIFICATION_UNAVAILABLE (the login provider did not answer). The ticket's 7 days still run from `granted_at`.
750
+ */
751
+ readonly post: operations["unlockGolden"];
752
+ readonly delete?: never;
753
+ readonly options?: never;
754
+ readonly head?: never;
755
+ readonly patch?: never;
756
+ readonly trace?: never;
757
+ };
758
+ readonly "/v1/me/golden/telegram-click": {
759
+ readonly parameters: {
760
+ readonly query?: never;
761
+ readonly header?: never;
762
+ readonly path?: never;
763
+ readonly cookie?: never;
764
+ };
765
+ readonly get?: never;
766
+ readonly put?: never;
767
+ /**
768
+ * Record the golden Telegram click
769
+ * @description Records that this account pressed Join Telegram for its golden ticket, in any state: the first press is kept as `telegram_clicked_at` and later ones change nothing. It records the press only, proves no Telegram membership and gates nothing; open the Telegram link without waiting for it.
770
+ */
771
+ readonly post: operations["recordGoldenTelegramClick"];
772
+ readonly delete?: never;
773
+ readonly options?: never;
774
+ readonly head?: never;
775
+ readonly patch?: never;
776
+ readonly trace?: never;
777
+ };
718
778
  readonly "/v1/me/golden/markets": {
719
779
  readonly parameters: {
720
780
  readonly query?: never;
@@ -2292,6 +2352,26 @@ export type paths = {
2292
2352
  readonly patch?: never;
2293
2353
  readonly trace?: never;
2294
2354
  };
2355
+ readonly "/v1/me/account-value": {
2356
+ readonly parameters: {
2357
+ readonly query?: never;
2358
+ readonly header?: never;
2359
+ readonly path?: never;
2360
+ readonly cookie?: never;
2361
+ };
2362
+ /**
2363
+ * Get account value
2364
+ * @description Everything your account holds at Totalis, all read at one HyperEVM block: wallet USDC, your cash in the vault and in vaults running off, what you paid for your open positions, and the profit you can still claim, net of the fee.
2365
+ */
2366
+ readonly get: operations["getAccountValue"];
2367
+ readonly put?: never;
2368
+ readonly post?: never;
2369
+ readonly delete?: never;
2370
+ readonly options?: never;
2371
+ readonly head?: never;
2372
+ readonly patch?: never;
2373
+ readonly trace?: never;
2374
+ };
2295
2375
  readonly "/v1/me/operations": {
2296
2376
  readonly parameters: {
2297
2377
  readonly query?: never;
@@ -3020,8 +3100,10 @@ export type components = {
3020
3100
  readonly TraderComboFields: {
3021
3101
  /** @description The Combo ticket, as GET /v1/me/positions names it for its owner. */
3022
3102
  readonly position_id: components["schemas"]["Bytes32"];
3023
- /** @description What the ticket staked, in HyperEVM USDC base units (10^-6). */
3024
- readonly stake: components["schemas"]["$defs-Amount"];
3103
+ /** @description Whether the ticket is a free Combo: a promotion paid its stake and gave it away, and it stays one whoever holds it now. Servers before contract 229 leave it out. */
3104
+ readonly golden: boolean;
3105
+ /** @description What the ticket staked, in HyperEVM USDC base units (10^-6); null for a free Combo (golden), whose stake no trader paid. Servers before contract 229 never answer null. */
3106
+ readonly stake: null | components["schemas"]["$defs-Amount"];
3025
3107
  /** @description What the ticket pays if every leg wins, in HyperEVM USDC base units (10^-6). */
3026
3108
  readonly payout: components["schemas"]["$defs-Amount"];
3027
3109
  readonly legs: readonly components["schemas"]["TraderLeg"][];
@@ -3406,6 +3488,37 @@ export type components = {
3406
3488
  readonly HyperevmKeeperOperationKind: "DEPOSIT_USER_AUTHORIZED" | "WITHDRAW_USER" | "ACCEPT" | "SETTLE" | "CACHE_SETTLEMENT" | "CLAIM" | "SELL_BACK" | "TRANSFER_TICKET" | "ATTEST" | "SYNC" | "TOTALIS_PAYOUT" | "CORE_EXIT" | "SET_AGENT" | "USDC_PERMIT";
3407
3489
  readonly Hash32: string;
3408
3490
  readonly Uint256: string;
3491
+ /** GoldenTicket */
3492
+ readonly GoldenTicket: {
3493
+ /**
3494
+ * @description LOCKED: unused and unexpired, and not unlocked yet: unlock it with POST /v1/me/golden/unlock; it cannot be quoted or placed until then (GOLDEN_UNLOCK_REQUIRED). AVAILABLE: unlocked, unused and unexpired. PLACING: Totalis is buying the Combo. BOUGHT: Totalis bought it; the gift to this account is on its way, or, while `placement.gift` is set, waits for this account's wallet to sign it. PLACED: the gift landed; `position_id` is the account's position. LAPSED: Totalis bought it, but the position ended (settled, or lost a leg) before its gift was signed and landed; it stays Totalis's and the ticket is used; `position_id` names it. EXPIRED: it lapsed unused, unlocked or not.
3495
+ * @enum {string}
3496
+ */
3497
+ readonly state: "LOCKED" | "AVAILABLE" | "PLACING" | "BOUGHT" | "PLACED" | "LAPSED" | "EXPIRED";
3498
+ /** @description When the account was created with the ticket. */
3499
+ readonly granted_at: components["schemas"]["$defs-Timestamp"];
3500
+ /** @description 7 days after `granted_at`, unlocked or not. */
3501
+ readonly expires_at: components["schemas"]["$defs-Timestamp"];
3502
+ /** @description When this account unlocked the ticket; it stays set whatever the state becomes. Null while it was never unlocked, which includes a ticket used before unlocking existed. */
3503
+ readonly unlocked_at: null | components["schemas"]["$defs-Timestamp"];
3504
+ /** @description When this account first pressed Join Telegram (POST /v1/me/golden/telegram-click); null before. A record of the press only: it proves no membership and gates nothing. */
3505
+ readonly telegram_clicked_at: null | components["schemas"]["$defs-Timestamp"];
3506
+ /** @description The gross stake Totalis pays, in USDC base units (6 decimals). */
3507
+ readonly stake: components["schemas"]["$defs-Amount"];
3508
+ /** @constant */
3509
+ readonly stake_asset: "USDC";
3510
+ /**
3511
+ * @description The exact number of legs a golden Combo has.
3512
+ * @constant
3513
+ */
3514
+ readonly legs: 5;
3515
+ /** @description The gifted position once PLACED, or the position Totalis kept once LAPSED; null otherwise. */
3516
+ readonly position_id: null | components["schemas"]["Bytes32"];
3517
+ /** @description While AVAILABLE, why the latest placement failed, if one did; null otherwise. */
3518
+ readonly last_failure: null | components["schemas"]["GoldenPlacementFailure"];
3519
+ /** @description The account's latest placement, the same object placeGolden answers plus when it was recorded, so a client that lost a placement's answer settles it from here; null before the first. */
3520
+ readonly placement: null | components["schemas"]["GoldenPlacementRead"];
3521
+ };
3409
3522
  /**
3410
3523
  * GoldenPlacementState
3411
3524
  * @description FAILED happens only before Totalis bought the Combo and leaves the golden ticket available. Once bought, the ticket is used: DELIVERED, or LAPSED when the position ended before its gift landed, which Totalis keeps.
@@ -3447,7 +3560,7 @@ export type components = {
3447
3560
  };
3448
3561
  /**
3449
3562
  * GoldenPlacementFailure
3450
- * @description Why Totalis did not buy the Combo. GIFT_FAILED and GIFT_EXPIRED appear only on placements from before a purchase always used the golden ticket; no placement fails after Totalis bought it.
3563
+ * @description Why Totalis did not buy the Combo. GIFT_FAILED and GIFT_EXPIRED appear only on placements from before a purchase always used the golden ticket, and such a placement whose Combo Totalis bought used the ticket: the ticket reads LAPSED with that position. No placement fails after Totalis bought it now.
3451
3564
  * @enum {string}
3452
3565
  */
3453
3566
  readonly GoldenPlacementFailure: "MAKER_DECLINED" | "ACCEPT_FAILED" | "NOT_ACCEPTED" | "PROMO_BUSY" | "GIFT_FAILED" | "GIFT_EXPIRED";
@@ -3505,7 +3618,7 @@ export type components = {
3505
3618
  * @description Stable HTTP error code. Each code has one HTTP status and one retry value.
3506
3619
  * @enum {string}
3507
3620
  */
3508
- readonly ErrorCode: "INVALID_REQUEST" | "INVALID_QUERY" | "INVALID_CURSOR" | "INVALID_IDEMPOTENCY_KEY" | "ORIGIN_REQUIRED" | "SUBPROTOCOL_REQUIRED" | "UNSUPPORTED_BROWSE_CONTRACT" | "UNAUTHENTICATED" | "FORBIDDEN" | "ORIGIN_NOT_ALLOWED" | "ACCESS_REQUIRED" | "SIGN_IN_REQUIRED" | "NOT_FOUND" | "IDENTITY_NOT_FOUND" | "QUOTE_NOT_FOUND" | "INVITE_CODE_NOT_FOUND" | "IDEMPOTENCY_KEY_REUSED" | "STATE_CONFLICT" | "INVITE_CODE_EXHAUSTED" | "STALE_CURSOR" | "CURSOR_EXPIRED" | "CURSOR_RESET" | "RECURRING_DEFINITION_CONFLICT" | "EMBEDDED_WALLET_CONFLICT" | "SECRET_UNAVAILABLE" | "ROTATION_IN_PROGRESS" | "TELEMETRY_CONFLICT" | "RFQ_NOT_CANCELLABLE" | "RFQ_NOT_OPEN" | "RFQ_GENERATION_STALE" | "RFQ_GENERATION_IN_FLIGHT" | "QUOTE_EXPIRED" | "QUOTE_CANCELLED" | "QUOTE_REPLACED" | "QUOTE_SIGNER_CHANGED" | "QUOTE_CAPACITY_EXCEEDED" | "CORE_ACCOUNT_NOT_READY" | "CORE_ACCOUNT_ACTIVATION_REQUIRED" | "CORE_EXIT_ABANDONED" | "CORE_MOVE_IN_FLIGHT" | "ACCEPTANCE_IN_FLIGHT" | "USERNAME_TAKEN" | "USERNAME_ALREADY_SET" | "USERNAME_REQUIRED" | "GOLDEN_TICKET_NONE" | "GOLDEN_TICKET_USED" | "GOLDEN_TICKET_EXPIRED" | "GOLDEN_PLACEMENT_IN_FLIGHT" | "GOLDEN_PROMO_BUSY" | "GOLDEN_CASHOUT_REFUSED" | "GOLDEN_OFFER_BELOW_FLOOR" | "GOLDEN_GIFT_TERMS_EXPIRED" | "INVALID_SIGNATURE" | "WALLET_CONTRACT_UNSUPPORTED" | "WRONG_AUTHORITY" | "KEY_LIMIT_REACHED" | "USERNAME_NOT_ALLOWED" | "FOLLOW_SELF" | "FOLLOW_LIMIT_REACHED" | "GOLDEN_LEG_COUNT" | "GOLDEN_LEG_NOT_ELIGIBLE" | "GOLDEN_QUOTE_NOT_HOUSE" | "RATE_LIMITED" | "CONNECTION_LIMIT" | "RFQ_INTENT_LIMIT" | "QUOTE_EXPOSURE_LIMIT" | "DEPENDENCY_STALE" | "AUTHORIZATION_UNAVAILABLE" | "SOURCE_UNAVAILABLE" | "CONTRACT_UNAVAILABLE" | "MARKET_DATA_UNAVAILABLE" | "BROWSE_UNAVAILABLE" | "FINANCIAL_ACTIONS_DISABLED" | "CORE_EXIT_UNAVAILABLE" | "COLLATERAL_REDUCTION_UNAVAILABLE" | "SPONSORSHIP_UNAVAILABLE" | "CONTRACT_SIGNATURE_OVERLOADED" | "QUOTE_EXPOSURE_STALE" | "COMBO_AUTOMATIC_DISABLED" | "GAS_PRICE_ABOVE_CEILING" | "EXECUTION_BACKLOG_FULL" | "EMBEDDED_WALLET_UNAVAILABLE" | "GOLDEN_PROMO_FUNDS_LOW" | "CONNECTION_DRAIN";
3621
+ readonly ErrorCode: "INVALID_REQUEST" | "INVALID_QUERY" | "INVALID_CURSOR" | "INVALID_IDEMPOTENCY_KEY" | "ORIGIN_REQUIRED" | "SUBPROTOCOL_REQUIRED" | "UNSUPPORTED_BROWSE_CONTRACT" | "UNAUTHENTICATED" | "FORBIDDEN" | "ORIGIN_NOT_ALLOWED" | "ACCESS_REQUIRED" | "SIGN_IN_REQUIRED" | "NOT_FOUND" | "IDENTITY_NOT_FOUND" | "QUOTE_NOT_FOUND" | "INVITE_CODE_NOT_FOUND" | "IDEMPOTENCY_KEY_REUSED" | "STATE_CONFLICT" | "INVITE_CODE_EXHAUSTED" | "STALE_CURSOR" | "CURSOR_EXPIRED" | "CURSOR_RESET" | "RECURRING_DEFINITION_CONFLICT" | "EMBEDDED_WALLET_CONFLICT" | "SECRET_UNAVAILABLE" | "ROTATION_IN_PROGRESS" | "TELEMETRY_CONFLICT" | "RFQ_NOT_CANCELLABLE" | "RFQ_NOT_OPEN" | "RFQ_GENERATION_STALE" | "RFQ_GENERATION_IN_FLIGHT" | "QUOTE_EXPIRED" | "QUOTE_CANCELLED" | "QUOTE_REPLACED" | "QUOTE_SIGNER_CHANGED" | "QUOTE_CAPACITY_EXCEEDED" | "CORE_ACCOUNT_NOT_READY" | "CORE_ACCOUNT_ACTIVATION_REQUIRED" | "CORE_EXIT_ABANDONED" | "CORE_MOVE_IN_FLIGHT" | "ACCEPTANCE_IN_FLIGHT" | "USERNAME_TAKEN" | "USERNAME_ALREADY_SET" | "USERNAME_REQUIRED" | "GOLDEN_TICKET_NONE" | "GOLDEN_TICKET_USED" | "GOLDEN_TICKET_EXPIRED" | "GOLDEN_PLACEMENT_IN_FLIGHT" | "GOLDEN_PROMO_BUSY" | "GOLDEN_CASHOUT_REFUSED" | "GOLDEN_OFFER_BELOW_FLOOR" | "GOLDEN_GIFT_TERMS_EXPIRED" | "GOLDEN_UNLOCK_REQUIRED" | "GOLDEN_GIVEN_OUT" | "GOLDEN_CODE_DISABLED" | "X_REQUIRED" | "X_ALREADY_CLAIMED" | "INVALID_SIGNATURE" | "WALLET_CONTRACT_UNSUPPORTED" | "WRONG_AUTHORITY" | "KEY_LIMIT_REACHED" | "USERNAME_NOT_ALLOWED" | "FOLLOW_SELF" | "FOLLOW_LIMIT_REACHED" | "GOLDEN_LEG_COUNT" | "GOLDEN_LEG_NOT_ELIGIBLE" | "GOLDEN_QUOTE_NOT_HOUSE" | "RATE_LIMITED" | "CONNECTION_LIMIT" | "RFQ_INTENT_LIMIT" | "QUOTE_EXPOSURE_LIMIT" | "DEPENDENCY_STALE" | "AUTHORIZATION_UNAVAILABLE" | "SOURCE_UNAVAILABLE" | "CONTRACT_UNAVAILABLE" | "MARKET_DATA_UNAVAILABLE" | "BROWSE_UNAVAILABLE" | "FINANCIAL_ACTIONS_DISABLED" | "CORE_EXIT_UNAVAILABLE" | "COLLATERAL_REDUCTION_UNAVAILABLE" | "SPONSORSHIP_UNAVAILABLE" | "CONTRACT_SIGNATURE_OVERLOADED" | "QUOTE_EXPOSURE_STALE" | "COMBO_AUTOMATIC_DISABLED" | "GAS_PRICE_ABOVE_CEILING" | "EXECUTION_BACKLOG_FULL" | "EMBEDDED_WALLET_UNAVAILABLE" | "GOLDEN_PROMO_FUNDS_LOW" | "X_VERIFICATION_UNAVAILABLE" | "CONNECTION_DRAIN";
3509
3622
  readonly FieldViolation: {
3510
3623
  /**
3511
3624
  * @description REQUIRED: the input is missing. INVALID: it is present but malformed or out of range. UNEXPECTED: the input is not accepted here.
@@ -3673,8 +3786,10 @@ export type components = {
3673
3786
  readonly position_id: string;
3674
3787
  /** @description Lowercase vault contract address the position is on. An account's positions span every vault the deployment has served: the active one, one running off and closed ones. */
3675
3788
  readonly vault_address: components["schemas"]["LowercaseNonZeroAddress"];
3676
- /** @description Whether the position's vault takes a cash-out. Only the active vault does; a position on a vault running off cannot be cashed out (`STATE_CONFLICT`) and pays out automatically when it settles. Whether this position can be cashed out now also depends on its status. */
3789
+ /** @description Whether this position takes a cash-out. It is false on a vault running off, which refuses one (`STATE_CONFLICT`) and pays out automatically when the position settles, and on a free Combo (`golden`), which is never cashed out (`GOLDEN_CASHOUT_REFUSED`). Whether this position can be cashed out now also depends on its status. */
3677
3790
  readonly cashout_available: boolean;
3791
+ /** @description Whether this position is a free Combo: a promotion paid its stake and gave it away, and it stays one whoever holds it now. Its `net_stake` is what the promotion paid, never its holder's money; what it pays at settlement is the holder's. It is never cashed out. */
3792
+ readonly golden: boolean;
3678
3793
  /** @description Maker that wrote the position, as a decimal string. */
3679
3794
  readonly maker_id: components["schemas"]["NonZeroUInt64String"];
3680
3795
  /** @description Current position owner wallet (lowercase). */
@@ -4449,6 +4564,41 @@ export type components = {
4449
4564
  /** @description Whether more fills follow in the range. */
4450
4565
  readonly has_more: boolean;
4451
4566
  };
4567
+ readonly PartnerWebhookEvent: {
4568
+ /** @description The event body exactly as Totalis posts it to the webhook. */
4569
+ readonly event: {
4570
+ /** @description The event's id, as the webhook-id header carried it; dedupe on it. */
4571
+ readonly id: string;
4572
+ /** @description The event type, such as position.opened or balance.updated. */
4573
+ readonly type: string;
4574
+ /** @description When the event happened. */
4575
+ readonly created_at: string;
4576
+ /** @description The event's data, as posted. */
4577
+ readonly data: unknown;
4578
+ };
4579
+ /**
4580
+ * @description PENDING while Totalis still sends it, DELIVERED once the webhook answered 2xx, FAILED after the last attempt failed.
4581
+ * @enum {string}
4582
+ */
4583
+ readonly status: "PENDING" | "DELIVERED" | "FAILED";
4584
+ /** @description How many times Totalis has sent it. */
4585
+ readonly attempts: number;
4586
+ /** @description When Totalis queued it. */
4587
+ readonly queued_at: components["schemas"]["$defs-Timestamp"];
4588
+ /**
4589
+ * Format: date-time
4590
+ * @description When the webhook accepted it, or null.
4591
+ */
4592
+ readonly delivered_at: string | null;
4593
+ };
4594
+ readonly PartnerWebhookEventPage: {
4595
+ /** @description Events in the order Totalis queued them, oldest first. */
4596
+ readonly events: readonly components["schemas"]["PartnerWebhookEvent"][];
4597
+ /** @description Send it as cursor for the events after this page. It follows the last event even when has_more is false, so keep it and read again later for new events. Null only when no event has been returned yet. */
4598
+ readonly next_cursor: components["schemas"]["NextCursor"];
4599
+ /** @description Whether more events follow. */
4600
+ readonly has_more: boolean;
4601
+ };
4452
4602
  /** @description One tagged landing on the app. Values come from utm_source, utm_medium, utm_campaign and ref; the path carries no query string. */
4453
4603
  readonly AcquisitionTouch: {
4454
4604
  readonly source?: string;
@@ -5820,6 +5970,34 @@ export type components = {
5820
5970
  /** @description The account's cash in vaults running off, one item per vault holding any or with a claim in flight, outside amount: it is owned but never spendable here. A Totalis embedded wallet's moves to its HyperCore spot balance automatically. Any other wallet claims it to its own wallet, part of Cash, with one Exit signed for that vault and sent with Create run-off claim; a sponsored claim must move at least 1 USDC (1000000), so offer it only when state is CURRENT, vault_free is at least that and claim is null. Smaller amounts stay in the vault. Empty when no vault is running off. */
5821
5971
  readonly run_off: readonly components["schemas"]["RunOffCash"][];
5822
5972
  };
5973
+ /** @description What the account holds at Totalis at one HyperEVM block, in atomic USDC (6 decimals, "1000000" = 1 USDC): wallet USDC, its cash in the vault and in vaults running off, what it paid for its open positions, and the profit it can still claim, net of the fee. Every amount is read from the chain at block_number. HyperCore balances are not included; read them from Hyperliquid. */
5974
+ readonly AccountValue: {
5975
+ /** @description The account's wallet, lowercase. */
5976
+ readonly account: components["schemas"]["LowercaseNonZeroAddress"];
5977
+ /**
5978
+ * @description CURRENT when every amount was read at block_number; UNKNOWN when the chain could not be read, or the projection did not reach that block in time, and every amount is null. Read again later.
5979
+ * @enum {unknown}
5980
+ */
5981
+ readonly state: "CURRENT" | "UNKNOWN";
5982
+ /** @description The account's value: wallet_usdc + vault_cash + run_off_cash + open_cost + claimable_profit. Null unless state is CURRENT. */
5983
+ readonly amount: components["schemas"]["$defs-Amount"] | null;
5984
+ /** @description The HyperEVM block every amount was read at. Null unless state is CURRENT. */
5985
+ readonly block_number: components["schemas"]["UInt64String"] | null;
5986
+ /** @description USDC in the account's wallet on HyperEVM, including any already committed to a Totalis withdrawal or stake that has not landed. Null unless state is CURRENT. */
5987
+ readonly wallet_usdc: components["schemas"]["$defs-Amount"] | null;
5988
+ /** @description All the account's cash in the vault, including any held for an operation that has not landed, so it can exceed GET /v1/me/balances' free vault cash. Null unless state is CURRENT. */
5989
+ readonly vault_cash: components["schemas"]["$defs-Amount"] | null;
5990
+ /** @description The account's cash in vaults running off, all together; GET /v1/me/balances lists it per vault. Null unless state is CURRENT. */
5991
+ readonly run_off_cash: components["schemas"]["$defs-Amount"] | null;
5992
+ /** @description How many positions the account holds that have not settled: OPEN and AWAITING_SETTLEMENT in GET /v1/me/positions. Null unless state is CURRENT. */
5993
+ readonly open_positions: number | null;
5994
+ /** @description What the account paid for those positions: the sum of their acquisition_cost. Null unless state is CURRENT. */
5995
+ readonly open_cost: components["schemas"]["$defs-Amount"] | null;
5996
+ /** @description What claiming every SETTLED_UNCLAIMED position would pay the account: each one's unclaimed_profit minus floor(unclaimed_profit * fee_bps / 10000). Null unless state is CURRENT. */
5997
+ readonly claimable_profit: components["schemas"]["$defs-Amount"] | null;
5998
+ /** @description The vault projection the read used to find the account's positions. When state is CURRENT it has reached block_number. */
5999
+ readonly checkpoint: components["schemas"]["Checkpoint"];
6000
+ };
5823
6001
  readonly OperationList: {
5824
6002
  /** @description Operations newest first by creation time. */
5825
6003
  readonly operations: readonly components["schemas"]["Operation"][];
@@ -7921,6 +8099,51 @@ export interface operations {
7921
8099
  readonly 503: components["responses"]["Unavailable"];
7922
8100
  };
7923
8101
  };
8102
+ readonly listPartnerWebhookEvents: {
8103
+ readonly parameters: {
8104
+ readonly query?: {
8105
+ /**
8106
+ * @description List only events queued at or after this RFC 3339 time.
8107
+ * @example 2026-11-13T00:00:00Z
8108
+ */
8109
+ readonly since?: string;
8110
+ /**
8111
+ * @description Omit for the oldest events kept; then send a previous response's next_cursor unchanged.
8112
+ * @example v1:812:balance_01933a5e-6f1c-7c3a-9b1e-2f4d5c6b7a81
8113
+ */
8114
+ readonly cursor?: components["schemas"]["PageCursor"];
8115
+ /**
8116
+ * @description Maximum items per page, 1 to 200, default 50. A page may hold fewer, even none, while has_more is true.
8117
+ * @example 50
8118
+ */
8119
+ readonly limit?: components["parameters"]["Limit"];
8120
+ };
8121
+ readonly header?: never;
8122
+ readonly path?: never;
8123
+ readonly cookie?: never;
8124
+ };
8125
+ readonly requestBody?: never;
8126
+ readonly responses: {
8127
+ /** @description A page of your webhook events. No caching. */
8128
+ readonly 200: {
8129
+ headers: {
8130
+ readonly [name: string]: unknown;
8131
+ };
8132
+ content: {
8133
+ readonly "application/json": components["schemas"]["PartnerWebhookEventPage"];
8134
+ };
8135
+ };
8136
+ /** @description `INVALID_QUERY`: since is not an RFC 3339 time, or limit is not 1 to 200. `INVALID_CURSOR`: the cursor is not one this endpoint returned. */
8137
+ readonly 400: components["responses"]["Error"];
8138
+ /** @description The partner server key is missing, unknown or revoked, or your partner is suspended. */
8139
+ readonly 401: components["responses"]["Error"];
8140
+ /** @description Any credential but a partner server key, or any request with an `Origin`, is refused: read webhook events from your server. */
8141
+ readonly 403: components["responses"]["Error"];
8142
+ readonly 429: components["responses"]["RateLimited"];
8143
+ /** @description Webhook events are temporarily unavailable; resend after `Retry-After`. */
8144
+ readonly 503: components["responses"]["Unavailable"];
8145
+ };
8146
+ };
7924
8147
  readonly recordAcquisition: {
7925
8148
  readonly parameters: {
7926
8149
  readonly query?: never;
@@ -8160,30 +8383,72 @@ export interface operations {
8160
8383
  };
8161
8384
  content: {
8162
8385
  readonly "application/json": {
8163
- readonly golden: null | {
8164
- /**
8165
- * @description AVAILABLE: unused and unexpired. PLACING: Totalis is buying the Combo. BOUGHT: Totalis bought it; the gift to this account is on its way, or, while `placement.gift` is set, waits for this account's wallet to sign it. PLACED: the gift landed; `position_id` is the account's position. LAPSED: Totalis bought it, but the position ended (settled, or lost a leg) before its gift was signed and landed; it stays Totalis's and the ticket is used; `position_id` names it. EXPIRED: it lapsed unused.
8166
- * @enum {string}
8167
- */
8168
- readonly state: "AVAILABLE" | "PLACING" | "BOUGHT" | "PLACED" | "LAPSED" | "EXPIRED";
8169
- readonly granted_at: components["schemas"]["$defs-Timestamp"];
8170
- readonly expires_at: components["schemas"]["$defs-Timestamp"];
8171
- /** @description The gross stake Totalis pays, in USDC base units (6 decimals). */
8172
- readonly stake: components["schemas"]["$defs-Amount"];
8173
- /** @constant */
8174
- readonly stake_asset: "USDC";
8175
- /**
8176
- * @description The exact number of legs a golden Combo has.
8177
- * @constant
8178
- */
8179
- readonly legs: 5;
8180
- /** @description The gifted position once PLACED, or the position Totalis kept once LAPSED; null otherwise. */
8181
- readonly position_id: null | components["schemas"]["Bytes32"];
8182
- /** @description While AVAILABLE, why the latest placement failed, if one did; null otherwise. */
8183
- readonly last_failure: null | components["schemas"]["GoldenPlacementFailure"];
8184
- /** @description The account's latest placement, the same object placeGolden answers plus when it was recorded, so a client that lost a placement's answer settles it from here; null before the first. */
8185
- readonly placement: null | components["schemas"]["GoldenPlacementRead"];
8186
- };
8386
+ readonly golden: null | components["schemas"]["GoldenTicket"];
8387
+ };
8388
+ };
8389
+ };
8390
+ readonly 400: components["responses"]["Error"];
8391
+ readonly 401: components["responses"]["Error"];
8392
+ readonly 403: components["responses"]["Error"];
8393
+ readonly 404: components["responses"]["Error"];
8394
+ readonly 429: components["responses"]["RateLimited"];
8395
+ readonly 503: components["responses"]["Unavailable"];
8396
+ };
8397
+ };
8398
+ readonly unlockGolden: {
8399
+ readonly parameters: {
8400
+ readonly query?: never;
8401
+ readonly header?: never;
8402
+ readonly path?: never;
8403
+ readonly cookie?: never;
8404
+ };
8405
+ readonly requestBody: {
8406
+ readonly content: {
8407
+ readonly "application/json": Record<string, never>;
8408
+ };
8409
+ };
8410
+ readonly responses: {
8411
+ /** @description The unlocked ticket, as GET /v1/me/golden reads it */
8412
+ readonly 200: {
8413
+ headers: {
8414
+ readonly [name: string]: unknown;
8415
+ };
8416
+ content: {
8417
+ readonly "application/json": {
8418
+ readonly golden: components["schemas"]["GoldenTicket"];
8419
+ };
8420
+ };
8421
+ };
8422
+ readonly 400: components["responses"]["Error"];
8423
+ readonly 401: components["responses"]["Error"];
8424
+ readonly 403: components["responses"]["Error"];
8425
+ readonly 404: components["responses"]["Error"];
8426
+ readonly 409: components["responses"]["Error"];
8427
+ readonly 429: components["responses"]["RateLimited"];
8428
+ readonly 503: components["responses"]["Unavailable"];
8429
+ };
8430
+ };
8431
+ readonly recordGoldenTelegramClick: {
8432
+ readonly parameters: {
8433
+ readonly query?: never;
8434
+ readonly header?: never;
8435
+ readonly path?: never;
8436
+ readonly cookie?: never;
8437
+ };
8438
+ readonly requestBody: {
8439
+ readonly content: {
8440
+ readonly "application/json": Record<string, never>;
8441
+ };
8442
+ };
8443
+ readonly responses: {
8444
+ /** @description The ticket, as GET /v1/me/golden reads it */
8445
+ readonly 200: {
8446
+ headers: {
8447
+ readonly [name: string]: unknown;
8448
+ };
8449
+ content: {
8450
+ readonly "application/json": {
8451
+ readonly golden: components["schemas"]["GoldenTicket"];
8187
8452
  };
8188
8453
  };
8189
8454
  };
@@ -8191,6 +8456,7 @@ export interface operations {
8191
8456
  readonly 401: components["responses"]["Error"];
8192
8457
  readonly 403: components["responses"]["Error"];
8193
8458
  readonly 404: components["responses"]["Error"];
8459
+ readonly 409: components["responses"]["Error"];
8194
8460
  readonly 429: components["responses"]["RateLimited"];
8195
8461
  readonly 503: components["responses"]["Unavailable"];
8196
8462
  };
@@ -11535,6 +11801,31 @@ export interface operations {
11535
11801
  readonly 503: components["responses"]["Unavailable"];
11536
11802
  };
11537
11803
  };
11804
+ readonly getAccountValue: {
11805
+ readonly parameters: {
11806
+ readonly query?: never;
11807
+ readonly header?: never;
11808
+ readonly path?: never;
11809
+ readonly cookie?: never;
11810
+ };
11811
+ readonly requestBody?: never;
11812
+ readonly responses: {
11813
+ /** @description Your account's value and its parts. When state is UNKNOWN every amount is null; read again later. No caching. */
11814
+ readonly 200: {
11815
+ headers: {
11816
+ readonly [name: string]: unknown;
11817
+ };
11818
+ content: {
11819
+ readonly "application/json": components["schemas"]["AccountValue"];
11820
+ };
11821
+ };
11822
+ readonly 401: components["responses"]["Error"];
11823
+ readonly 403: components["responses"]["Error"];
11824
+ readonly 404: components["responses"]["Error"];
11825
+ readonly 429: components["responses"]["RateLimited"];
11826
+ readonly 503: components["responses"]["Unavailable"];
11827
+ };
11828
+ };
11538
11829
  readonly listOperations: {
11539
11830
  readonly parameters: {
11540
11831
  readonly query?: {
@@ -1,14 +1,14 @@
1
- export declare const sdkVersion = "227.0.0-genesis-badge";
2
- export declare const openapiSha256 = "110977fb90ba64f8d7e1317a7053fa93d75aaff9b16cee63dea4abd20da505ca";
1
+ export declare const sdkVersion = "231.0.0-partner-webhook-events";
2
+ export declare const openapiSha256 = "153af0c29c1c8e4c69d5223c04b30f32186065262348f4c4713a5b6ea53d851d";
3
3
  export declare const realtimeSha256 = "32e56c8bb642401f5b03e9c38274087c09bebb73ffe60c0d34432c2e78ce1e15";
4
4
  export declare const jsonSchemaSha256: {
5
- readonly "account.schema.json": "c11a94438d5f7b54e08d3b559098ce2671f4c9aad3a79feb684b7a81f77d809a";
5
+ readonly "account.schema.json": "e6cd5a75429d074f23bd7f6ffd370fa59d0e3f7dbd6aef6433e5ba0d21b5baeb";
6
6
  readonly "comments.schema.json": "b3e35b9b1bd90b763658fcd25910ec123d44713cdf608b4e52667c91b78f0aa5";
7
7
  readonly "common.schema.json": "04f51deb3cbea448e59195e26ede3212598d58a7940fe67eb2123fd9161c5edb";
8
8
  readonly "core-exit.schema.json": "c7f617e815225cdcac95c236f8b73fbe288ee5713ff444c3be90eb915fc3a401";
9
- readonly "error.schema.json": "a980d4d81ea2f8528d24d79a6cf3823b15690d21e81a1852039ae12c4ce0a393";
9
+ readonly "error.schema.json": "f98be7f7a0fa7d46479743fb040684627658abc3a04b0dccdf3f089a22454715";
10
10
  readonly "hypercore.schema.json": "5b89b2bbff7ec8cc1b8717375d12ce9cd5ab6aa5af03c4fdc6cc753ef9583a2c";
11
- readonly "identity.schema.json": "02e333b88c82d89abd6f1c9b739935db1701c67aa53b4fcc487f1d78d8c99dcc";
11
+ readonly "identity.schema.json": "a97ec2f4319a16619d3a3ab613989fb1dba8107713e0fb8f1f9ad5aea25a67e3";
12
12
  readonly "maker-access.schema.json": "49698ee0235e42064aae0397db1e0f646bdc10d9dfa10121714ba06dd69fee3b";
13
13
  readonly "maker-action.schema.json": "dc41e52c868848e85cdeb918992cb710d34616d2803a63f6d9a658e016744a50";
14
14
  readonly "maker-telemetry.schema.json": "85b111ce0f4935299d1116071b43de12e775bef4e0c283c12f19046d34374a9c";
@@ -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", "getMyGenesis", "getMyReferralBonus", "getOperation", "getOwnMaker", "getPartnerReport", "getPerpMarks", "getProfitLeaderboard", "getQuestion", "getQuestionRecurringRound", "getQuestionScoreTimeline", "getRfq", "getSeries", "getSuggestedCombo", "getTaxonomy", "getTrader", "getTraderPnl", "getUsernameAvailability", "getVaultAgents", "getVolumeLeaderboard", "getWalletApproval", "getWithdrawal", "grantComboCopyAgent", "grantVaultAgent", "likeComment", "listAccountActivity", "listAccountPositions", "listComboCopies", "listComboFeed", "listCommentReplies", "listComments", "listControlledMakers", "listCopiedFills", "listCopyTrades", "listDiscovery", "listFollows", "listMakerActivity", "listMakerPositions", "listMakerQuoteHistory", "listMarkets", "listMyNotifications", "listOperations", "listPartnerFills", "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"];
21
+ readonly client: readonly ["abandonCoreExit", "acceptQuote", "activeCoreExits", "admitOwnMaker", "admitPartnerWallet", "approveWallet", "bindEmbeddedWallet", "cancelRfq", "confirmComboCopyAgent", "confirmCoreCopyAgent", "createCashout", "createComment", "createCoreExit", "createDeposit", "createGoldenRfq", "createRfq", "createRunOffClaim", "createWalletChallenge", "createWalletSession", "createWithdrawal", "deleteComment", "editComment", "endWalletSession", "followTrader", "getAcceptance", "getAccountActivity", "getAccountPnl", "getAccountPosition", "getAccountValue", "getBalances", "getCopyAgents", "getCopyBudget", "getCopySettings", "getCopySummary", "getCoreExit", "getDeployment", "getGolden", "getGoldenMarkets", "getGoldenOffer", "getGoldenSuggestions", "getHypercoreBalance", "getHypercorePortfolio", "getHypercoreSettlementCredits", "getIdentity", "getMakerActivity", "getMakerCapital", "getMakerExposure", "getMakerPerformance", "getMakerPosition", "getMakerQuotes", "getMakerTelemetry", "getMakerVaultFundingTransaction", "getMakerWithdrawal", "getMarket", "getMarketDataConfig", "getMarketDefinitions", "getMarketHistory", "getMarketRecurringRound", "getMarketReferenceCloses", "getMarketScoreTimeline", "getMarketStats", "getMyGenesis", "getMyReferralBonus", "getOperation", "getOwnMaker", "getPartnerReport", "getPerpMarks", "getProfitLeaderboard", "getQuestion", "getQuestionRecurringRound", "getQuestionScoreTimeline", "getRfq", "getSeries", "getSuggestedCombo", "getTaxonomy", "getTrader", "getTraderPnl", "getUsernameAvailability", "getVaultAgents", "getVolumeLeaderboard", "getWalletApproval", "getWithdrawal", "grantComboCopyAgent", "grantVaultAgent", "likeComment", "listAccountActivity", "listAccountPositions", "listComboCopies", "listComboFeed", "listCommentReplies", "listComments", "listControlledMakers", "listCopiedFills", "listCopyTrades", "listDiscovery", "listFollows", "listMakerActivity", "listMakerPositions", "listMakerQuoteHistory", "listMarkets", "listMyNotifications", "listOperations", "listPartnerFills", "listPartnerWebhookEvents", "listQuotes", "listTraderPositions", "listTraderTrades", "markMyNotificationsRead", "placeGolden", "reactComment", "recordAcquisition", "recordGoldenTelegramClick", "refreshPicture", "requestComboCopyAgent", "requestCoreCopyAgent", "revokeComboCopyAgent", "searchCatalog", "setAvatar", "setCopyAllocation", "setCopySettings", "setPublicProfile", "setUsername", "setXHandleShown", "signGoldenGift", "stream", "streamMarkets", "switchOffComboCopyAgent", "switchOffCoreCopyAgent", "unfollowTrader", "unlikeComment", "unlockGolden", "unreactComment"];
22
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,15 +1,15 @@
1
1
  // Generated by scripts/generate.mjs; do not edit.
2
- export const sdkVersion = "227.0.0-genesis-badge";
3
- export const openapiSha256 = "110977fb90ba64f8d7e1317a7053fa93d75aaff9b16cee63dea4abd20da505ca";
2
+ export const sdkVersion = "231.0.0-partner-webhook-events";
3
+ export const openapiSha256 = "153af0c29c1c8e4c69d5223c04b30f32186065262348f4c4713a5b6ea53d851d";
4
4
  export const realtimeSha256 = "32e56c8bb642401f5b03e9c38274087c09bebb73ffe60c0d34432c2e78ce1e15";
5
5
  export const jsonSchemaSha256 = {
6
- "account.schema.json": "c11a94438d5f7b54e08d3b559098ce2671f4c9aad3a79feb684b7a81f77d809a",
6
+ "account.schema.json": "e6cd5a75429d074f23bd7f6ffd370fa59d0e3f7dbd6aef6433e5ba0d21b5baeb",
7
7
  "comments.schema.json": "b3e35b9b1bd90b763658fcd25910ec123d44713cdf608b4e52667c91b78f0aa5",
8
8
  "common.schema.json": "04f51deb3cbea448e59195e26ede3212598d58a7940fe67eb2123fd9161c5edb",
9
9
  "core-exit.schema.json": "c7f617e815225cdcac95c236f8b73fbe288ee5713ff444c3be90eb915fc3a401",
10
- "error.schema.json": "a980d4d81ea2f8528d24d79a6cf3823b15690d21e81a1852039ae12c4ce0a393",
10
+ "error.schema.json": "f98be7f7a0fa7d46479743fb040684627658abc3a04b0dccdf3f089a22454715",
11
11
  "hypercore.schema.json": "5b89b2bbff7ec8cc1b8717375d12ce9cd5ab6aa5af03c4fdc6cc753ef9583a2c",
12
- "identity.schema.json": "02e333b88c82d89abd6f1c9b739935db1701c67aa53b4fcc487f1d78d8c99dcc",
12
+ "identity.schema.json": "a97ec2f4319a16619d3a3ab613989fb1dba8107713e0fb8f1f9ad5aea25a67e3",
13
13
  "maker-access.schema.json": "49698ee0235e42064aae0397db1e0f646bdc10d9dfa10121714ba06dd69fee3b",
14
14
  "maker-action.schema.json": "dc41e52c868848e85cdeb918992cb710d34616d2803a63f6d9a658e016744a50",
15
15
  "maker-telemetry.schema.json": "85b111ce0f4935299d1116071b43de12e775bef4e0c283c12f19046d34374a9c",
@@ -48,6 +48,7 @@ export const operations = {
48
48
  "getAccountActivity",
49
49
  "getAccountPnl",
50
50
  "getAccountPosition",
51
+ "getAccountValue",
51
52
  "getBalances",
52
53
  "getCopyAgents",
53
54
  "getCopyBudget",
@@ -122,6 +123,7 @@ export const operations = {
122
123
  "listMyNotifications",
123
124
  "listOperations",
124
125
  "listPartnerFills",
126
+ "listPartnerWebhookEvents",
125
127
  "listQuotes",
126
128
  "listTraderPositions",
127
129
  "listTraderTrades",
@@ -129,6 +131,7 @@ export const operations = {
129
131
  "placeGolden",
130
132
  "reactComment",
131
133
  "recordAcquisition",
134
+ "recordGoldenTelegramClick",
132
135
  "refreshPicture",
133
136
  "requestComboCopyAgent",
134
137
  "requestCoreCopyAgent",
@@ -147,6 +150,7 @@ export const operations = {
147
150
  "switchOffCoreCopyAgent",
148
151
  "unfollowTrader",
149
152
  "unlikeComment",
153
+ "unlockGolden",
150
154
  "unreactComment"
151
155
  ],
152
156
  "maker": [
package/dist/partner.d.ts CHANGED
@@ -6,6 +6,7 @@ export type WalletAdmission = components["schemas"]["WalletAdmission"];
6
6
  export type PartnerReport = components["schemas"]["PartnerReport"];
7
7
  /** A page of fee events on your users' positions (TT-2749). Amounts are atomic USDC strings. */
8
8
  export type PartnerFillPage = components["schemas"]["PartnerFillPage"];
9
+ export type PartnerWebhookEventPage = components["schemas"]["PartnerWebhookEventPage"];
9
10
  /** A wallet's signed consent to one partner opening its account (TT-1688). */
10
11
  export type AdmissionConsent = {
11
12
  readonly expires_at: string;
@@ -51,7 +52,8 @@ export type PartnerServerOptions = Omit<ApiClientOptions, "accessToken" | "partn
51
52
  * wallet's consent (`signAdmissionConsent` in your frontend), and its next
52
53
  * wallet sign-in creates the account, attributed to you. `report` reads your
53
54
  * fees, terms and payouts (TT-2420), and `fills` each fee event on your
54
- * users' positions (TT-2749). Refuses to run in a browser or a React Native
55
+ * users' positions (TT-2749), and `webhookEvents` reads back the webhook
56
+ * events Totalis queued for you (TT-2794). Refuses to run in a browser or a React Native
55
57
  * app, where the server key would be exposed.
56
58
  */
57
59
  export declare function createPartnerServer(options: PartnerServerOptions): {
@@ -83,5 +85,18 @@ export declare function createPartnerServer(options: PartnerServerOptions): {
83
85
  readonly cursor?: string;
84
86
  readonly limit?: number;
85
87
  }): Promise<PartnerFillPage>;
88
+ /**
89
+ * Your webhook events from the last 30 days, delivered or not, oldest
90
+ * first, each with the body as it was posted and how its delivery stands:
91
+ * recover what your endpoint missed. `since` (RFC 3339) narrows to events
92
+ * queued from then on. Pass `next_cursor` as `cursor` for the next page;
93
+ * it follows the last event even when `has_more` is false, so keep it to
94
+ * read new events later.
95
+ */
96
+ webhookEvents(query?: {
97
+ readonly since?: string;
98
+ readonly cursor?: string;
99
+ readonly limit?: number;
100
+ }): Promise<PartnerWebhookEventPage>;
86
101
  };
87
102
  export type PartnerServer = ReturnType<typeof createPartnerServer>;
package/dist/partner.js CHANGED
@@ -34,7 +34,8 @@ export async function signAdmissionConsent(request) {
34
34
  * wallet's consent (`signAdmissionConsent` in your frontend), and its next
35
35
  * wallet sign-in creates the account, attributed to you. `report` reads your
36
36
  * fees, terms and payouts (TT-2420), and `fills` each fee event on your
37
- * users' positions (TT-2749). Refuses to run in a browser or a React Native
37
+ * users' positions (TT-2749), and `webhookEvents` reads back the webhook
38
+ * events Totalis queued for you (TT-2794). Refuses to run in a browser or a React Native
38
39
  * app, where the server key would be exposed.
39
40
  */
40
41
  export function createPartnerServer(options) {
@@ -74,5 +75,16 @@ export function createPartnerServer(options) {
74
75
  async fills(query) {
75
76
  return unwrap(await client.GET("/v1/partner/fills", { params: { query: query ?? {} } }));
76
77
  },
78
+ /**
79
+ * Your webhook events from the last 30 days, delivered or not, oldest
80
+ * first, each with the body as it was posted and how its delivery stands:
81
+ * recover what your endpoint missed. `since` (RFC 3339) narrows to events
82
+ * queued from then on. Pass `next_cursor` as `cursor` for the next page;
83
+ * it follows the last event even when `has_more` is false, so keep it to
84
+ * read new events later.
85
+ */
86
+ async webhookEvents(query) {
87
+ return unwrap(await client.GET("/v1/partner/webhook-events", { params: { query: query ?? {} } }));
88
+ },
77
89
  };
78
90
  }
package/dist/totalis.d.ts CHANGED
@@ -319,6 +319,23 @@ export declare function createTotalis(options: TotalisOptions): {
319
319
  readonly wallet: bigint | null;
320
320
  readonly total: bigint | null;
321
321
  }>;
322
+ /** What the account holds at Totalis, every amount read at one block (`GET /v1/me/account-value`). */
323
+ accountValue: (signal?: AbortSignal) => Promise<{
324
+ readonly account: import("./generated/openapi.js").components["schemas"]["LowercaseNonZeroAddress"];
325
+ readonly state: "CURRENT" | "UNKNOWN";
326
+ readonly amount: import("./generated/openapi.js").components["schemas"]["$defs-Amount"] | null;
327
+ readonly block_number: import("./generated/openapi.js").components["schemas"]["UInt64String"] | null;
328
+ readonly wallet_usdc: import("./generated/openapi.js").components["schemas"]["$defs-Amount"] | null;
329
+ readonly vault_cash: import("./generated/openapi.js").components["schemas"]["$defs-Amount"] | null;
330
+ readonly run_off_cash: import("./generated/openapi.js").components["schemas"]["$defs-Amount"] | null;
331
+ readonly open_positions: number | null;
332
+ readonly open_cost: import("./generated/openapi.js").components["schemas"]["$defs-Amount"] | null;
333
+ readonly claimable_profit: import("./generated/openapi.js").components["schemas"]["$defs-Amount"] | null;
334
+ readonly checkpoint: {
335
+ readonly block_number: import("./generated/openapi.js").components["schemas"]["UInt64String"];
336
+ readonly projection_state: "CURRENT" | "STALE";
337
+ };
338
+ }>;
322
339
  readComboCash: (options?: {
323
340
  readonly info?: HyperliquidInfo;
324
341
  readonly signal?: AbortSignal;
package/dist/totalis.js CHANGED
@@ -449,6 +449,10 @@ export function createTotalis(options) {
449
449
  async function readSpendableCash(signal) {
450
450
  return spendableCash(unwrap(await client.GET("/v1/me/balances", signal === undefined ? {} : { signal })));
451
451
  }
452
+ /** A fresh `GET /v1/me/account-value`: what the account holds at Totalis, every amount read at one block; all null when `state` is `UNKNOWN`. */
453
+ async function readAccountValue(signal) {
454
+ return unwrap(await client.GET("/v1/me/account-value", signal === undefined ? {} : { signal }));
455
+ }
452
456
  /**
453
457
  * The account's Combo cash now (`ComboCash`): one venue balances read and
454
458
  * the signer's HyperCore cash read from Hyperliquid, together. Pass `cash`
@@ -1558,6 +1562,8 @@ export function createTotalis(options) {
1558
1562
  deployment,
1559
1563
  /** Spendable Totalis cash from a fresh balances read (`spendableCash`): `{ vault, wallet, total }`, each `null` while unknown, never 0. */
1560
1564
  spendableCash: readSpendableCash,
1565
+ /** What the account holds at Totalis, every amount read at one block (`GET /v1/me/account-value`). */
1566
+ accountValue: readAccountValue,
1561
1567
  readComboCash,
1562
1568
  openPosition,
1563
1569
  cashOut,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@totalis/hip4-client",
3
- "version": "0.96.0",
3
+ "version": "0.98.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": [