@totalis/hip4-client 0.95.0 → 0.97.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 +46 -0
- package/dist/generated/account-read.d.ts +4 -2
- package/dist/generated/api-keys.d.ts +1 -1
- package/dist/generated/browse.d.ts +1 -1
- package/dist/generated/client.d.ts +3 -1
- package/dist/generated/errors.d.ts +30 -4
- package/dist/generated/errors.js +59 -0
- package/dist/generated/openapi.d.ts +160 -30
- package/dist/generated/version.d.ts +6 -6
- package/dist/generated/version.js +7 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,52 @@
|
|
|
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.97.0
|
|
7
|
+
|
|
8
|
+
### Changed
|
|
9
|
+
|
|
10
|
+
- Free Combos on positions (contract `229.0.0-free-combo-positions`, major
|
|
11
|
+
225). Account and maker positions (`listAccountPositions`,
|
|
12
|
+
`getAccountPosition`, `listMakerPositions`, `getMakerPosition`) carry a
|
|
13
|
+
required `golden`: whether a promotion bought the ticket and gave it away,
|
|
14
|
+
whoever holds it now. `cashout_available` is now this position's own: false
|
|
15
|
+
for a free Combo as well as on a vault running off. Breaking for trader
|
|
16
|
+
readers: the shared trader Combo (`listTraderTrades`, `listTraderPositions`,
|
|
17
|
+
`listComboFeed`) carries a required `golden`, and its `stake` is null for a
|
|
18
|
+
free Combo, whose stake no trader paid.
|
|
19
|
+
- Golden Combo unlocks with X (TT-2761, contract `228.0.0-golden-x-unlock`,
|
|
20
|
+
major 224). Breaking for golden callers: `GET /v1/me/golden`'s ticket is
|
|
21
|
+
now the `GoldenTicket` schema, whose `state` adds `LOCKED` (unused,
|
|
22
|
+
unexpired and not unlocked) and which carries `unlocked_at` and
|
|
23
|
+
`telegram_clicked_at` (nullable timestamps). Every new ticket starts
|
|
24
|
+
`LOCKED`, and so do tickets unused when this shipped; a `LOCKED` ticket is
|
|
25
|
+
returned, never null. `createGoldenRfq`, `placeGolden` and
|
|
26
|
+
`getGoldenSuggestions` refuse it with 409 `GOLDEN_UNLOCK_REQUIRED`.
|
|
27
|
+
`unlockGolden` (`POST /v1/me/golden/unlock`, body `{}`, no idempotency key)
|
|
28
|
+
unlocks it once the account's login has an X account linked that never
|
|
29
|
+
unlocked a free Combo, taking one of the invite code's free Combos, and
|
|
30
|
+
answers `{golden}`; the same request again answers the ticket as it stands.
|
|
31
|
+
Its refusals take nothing: 409 `X_REQUIRED`, `X_ALREADY_CLAIMED`,
|
|
32
|
+
`GOLDEN_GIVEN_OUT`, `GOLDEN_CODE_DISABLED`, and 503
|
|
33
|
+
`X_VERIFICATION_UNAVAILABLE`. `getGolden` first applies an unlock the
|
|
34
|
+
account already made whose answer was lost, and answers 503
|
|
35
|
+
`DEPENDENCY_STALE` rather than `LOCKED` when it cannot check.
|
|
36
|
+
`recordGoldenTelegramClick`
|
|
37
|
+
(`POST /v1/me/golden/telegram-click`, body `{}`) keeps the first Join
|
|
38
|
+
Telegram press as `telegram_clicked_at` and gates nothing. A historical
|
|
39
|
+
`GIFT_FAILED` or `GIFT_EXPIRED` placement whose Combo Totalis bought now
|
|
40
|
+
reads as a used ticket (`LAPSED` with that position). Only the Totalis app
|
|
41
|
+
calls these routes.
|
|
42
|
+
|
|
43
|
+
## 0.96.0
|
|
44
|
+
|
|
45
|
+
### Added
|
|
46
|
+
|
|
47
|
+
- Genesis badge on usernames (contract `227.0.0-genesis-badge`). `getIdentity`,
|
|
48
|
+
`getTrader`, comment authors, both leaderboards and `listComboFeed` carry an
|
|
49
|
+
optional `genesis`, when the account earned the Genesis Account badge.
|
|
50
|
+
Others see it only while the account's public profile is on.
|
|
51
|
+
|
|
6
52
|
## 0.95.0
|
|
7
53
|
|
|
8
54
|
### 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
|
|
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.
|
|
@@ -34,6 +34,8 @@ export type paths = {
|
|
|
34
34
|
readonly "/v1/deployment": Pick<SharedPaths["/v1/deployment"], "parameters" | "get">;
|
|
35
35
|
readonly "/v1/suggested-combo": Pick<SharedPaths["/v1/suggested-combo"], "parameters" | "get">;
|
|
36
36
|
readonly "/v1/me/golden": Pick<SharedPaths["/v1/me/golden"], "parameters" | "get">;
|
|
37
|
+
readonly "/v1/me/golden/unlock": Pick<SharedPaths["/v1/me/golden/unlock"], "parameters" | "post">;
|
|
38
|
+
readonly "/v1/me/golden/telegram-click": Pick<SharedPaths["/v1/me/golden/telegram-click"], "parameters" | "post">;
|
|
37
39
|
readonly "/v1/me/golden/markets": Pick<SharedPaths["/v1/me/golden/markets"], "parameters" | "get">;
|
|
38
40
|
readonly "/v1/me/golden/suggestions": Pick<SharedPaths["/v1/me/golden/suggestions"], "parameters" | "get">;
|
|
39
41
|
readonly "/v1/me/golden/rfqs": Pick<SharedPaths["/v1/me/golden/rfqs"], "parameters" | "post">;
|
|
@@ -118,4 +120,4 @@ export type paths = {
|
|
|
118
120
|
readonly "/v1/makers/{maker_id}/exposure": Pick<SharedPaths["/v1/makers/{maker_id}/exposure"], "parameters" | "get">;
|
|
119
121
|
readonly "/v1/makers/{maker_id}/performance": Pick<SharedPaths["/v1/makers/{maker_id}/performance"], "parameters" | "get">;
|
|
120
122
|
};
|
|
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">;
|
|
123
|
+
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" | "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"];
|
|
@@ -424,7 +448,7 @@ export declare const operationErrors: {
|
|
|
424
448
|
readonly getGolden: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY"];
|
|
425
449
|
readonly getGoldenMarkets: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY", "CONTRACT_UNAVAILABLE", "BROWSE_UNAVAILABLE"];
|
|
426
450
|
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"];
|
|
451
|
+
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
452
|
readonly getHypercoreBalance: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "INVALID_REQUEST", "IDENTITY_NOT_FOUND"];
|
|
429
453
|
readonly getHypercorePortfolio: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "IDENTITY_NOT_FOUND"];
|
|
430
454
|
readonly getHypercoreSettlementCredits: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "IDENTITY_NOT_FOUND"];
|
|
@@ -501,11 +525,12 @@ export declare const operationErrors: {
|
|
|
501
525
|
readonly listTraderTrades: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_QUERY", "NOT_FOUND", "SOURCE_UNAVAILABLE"];
|
|
502
526
|
readonly live: readonly [];
|
|
503
527
|
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"];
|
|
528
|
+
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
529
|
readonly publishMakerTelemetry: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_QUERY", "NOT_FOUND", "CONTRACT_UNAVAILABLE", "TELEMETRY_CONFLICT", "INVALID_REQUEST"];
|
|
506
530
|
readonly reactComment: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "NOT_FOUND", "INVALID_IDEMPOTENCY_KEY"];
|
|
507
531
|
readonly ready: readonly ["DEPENDENCY_STALE"];
|
|
508
532
|
readonly recordAcquisition: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED", "IDENTITY_NOT_FOUND", "ORIGIN_REQUIRED"];
|
|
533
|
+
readonly recordGoldenTelegramClick: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_REQUEST", "CONTRACT_UNAVAILABLE", "GOLDEN_TICKET_NONE"];
|
|
509
534
|
readonly refreshPicture: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "IDENTITY_NOT_FOUND", "ORIGIN_REQUIRED", "CONTRACT_UNAVAILABLE"];
|
|
510
535
|
readonly releaseQuoteLease: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND"];
|
|
511
536
|
readonly renewQuoteLease: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND"];
|
|
@@ -533,6 +558,7 @@ export declare const operationErrors: {
|
|
|
533
558
|
readonly switchOffCoreCopyAgent: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "CONTRACT_UNAVAILABLE", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED"];
|
|
534
559
|
readonly unfollowTrader: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_IDEMPOTENCY_KEY", "INVALID_REQUEST", "IDEMPOTENCY_KEY_REUSED"];
|
|
535
560
|
readonly unlikeComment: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "NOT_FOUND", "INVALID_IDEMPOTENCY_KEY"];
|
|
561
|
+
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
562
|
readonly unreactComment: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "NOT_FOUND", "INVALID_IDEMPOTENCY_KEY"];
|
|
537
563
|
};
|
|
538
564
|
export type OperationErrorCode<Id extends keyof typeof operationErrors> = (typeof operationErrors)[Id][number];
|
package/dist/generated/errors.js
CHANGED
|
@@ -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",
|
|
@@ -1014,6 +1039,7 @@ export const operationErrors = {
|
|
|
1014
1039
|
"INVALID_QUERY",
|
|
1015
1040
|
"CONTRACT_UNAVAILABLE",
|
|
1016
1041
|
"GOLDEN_TICKET_NONE",
|
|
1042
|
+
"GOLDEN_UNLOCK_REQUIRED",
|
|
1017
1043
|
"GOLDEN_TICKET_USED",
|
|
1018
1044
|
"GOLDEN_TICKET_EXPIRED",
|
|
1019
1045
|
"GOLDEN_PLACEMENT_IN_FLIGHT",
|
|
@@ -1756,6 +1782,7 @@ export const operationErrors = {
|
|
|
1756
1782
|
"NOT_FOUND",
|
|
1757
1783
|
"CONTRACT_UNAVAILABLE",
|
|
1758
1784
|
"GOLDEN_TICKET_NONE",
|
|
1785
|
+
"GOLDEN_UNLOCK_REQUIRED",
|
|
1759
1786
|
"GOLDEN_TICKET_USED",
|
|
1760
1787
|
"GOLDEN_TICKET_EXPIRED",
|
|
1761
1788
|
"GOLDEN_PLACEMENT_IN_FLIGHT",
|
|
@@ -1813,6 +1840,18 @@ export const operationErrors = {
|
|
|
1813
1840
|
"IDENTITY_NOT_FOUND",
|
|
1814
1841
|
"ORIGIN_REQUIRED"
|
|
1815
1842
|
],
|
|
1843
|
+
"recordGoldenTelegramClick": [
|
|
1844
|
+
"UNAUTHENTICATED",
|
|
1845
|
+
"FORBIDDEN",
|
|
1846
|
+
"AUTHORIZATION_UNAVAILABLE",
|
|
1847
|
+
"DEPENDENCY_STALE",
|
|
1848
|
+
"RATE_LIMITED",
|
|
1849
|
+
"ORIGIN_REQUIRED",
|
|
1850
|
+
"IDENTITY_NOT_FOUND",
|
|
1851
|
+
"INVALID_REQUEST",
|
|
1852
|
+
"CONTRACT_UNAVAILABLE",
|
|
1853
|
+
"GOLDEN_TICKET_NONE"
|
|
1854
|
+
],
|
|
1816
1855
|
"refreshPicture": [
|
|
1817
1856
|
"UNAUTHENTICATED",
|
|
1818
1857
|
"FORBIDDEN",
|
|
@@ -2130,6 +2169,26 @@ export const operationErrors = {
|
|
|
2130
2169
|
"NOT_FOUND",
|
|
2131
2170
|
"INVALID_IDEMPOTENCY_KEY"
|
|
2132
2171
|
],
|
|
2172
|
+
"unlockGolden": [
|
|
2173
|
+
"UNAUTHENTICATED",
|
|
2174
|
+
"FORBIDDEN",
|
|
2175
|
+
"AUTHORIZATION_UNAVAILABLE",
|
|
2176
|
+
"DEPENDENCY_STALE",
|
|
2177
|
+
"RATE_LIMITED",
|
|
2178
|
+
"ORIGIN_REQUIRED",
|
|
2179
|
+
"IDENTITY_NOT_FOUND",
|
|
2180
|
+
"INVALID_REQUEST",
|
|
2181
|
+
"CONTRACT_UNAVAILABLE",
|
|
2182
|
+
"GOLDEN_TICKET_NONE",
|
|
2183
|
+
"GOLDEN_TICKET_USED",
|
|
2184
|
+
"GOLDEN_TICKET_EXPIRED",
|
|
2185
|
+
"GOLDEN_PLACEMENT_IN_FLIGHT",
|
|
2186
|
+
"X_REQUIRED",
|
|
2187
|
+
"X_ALREADY_CLAIMED",
|
|
2188
|
+
"GOLDEN_GIVEN_OUT",
|
|
2189
|
+
"GOLDEN_CODE_DISABLED",
|
|
2190
|
+
"X_VERIFICATION_UNAVAILABLE"
|
|
2191
|
+
],
|
|
2133
2192
|
"unreactComment": [
|
|
2134
2193
|
"UNAUTHENTICATED",
|
|
2135
2194
|
"FORBIDDEN",
|
|
@@ -704,7 +704,7 @@ export type paths = {
|
|
|
704
704
|
};
|
|
705
705
|
/**
|
|
706
706
|
* Get the golden ticket
|
|
707
|
-
* @description The account's golden ticket (TT-2624): one free Combo for an account created from
|
|
707
|
+
* @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
708
|
*/
|
|
709
709
|
readonly get: operations["getGolden"];
|
|
710
710
|
readonly put?: never;
|
|
@@ -715,6 +715,46 @@ export type paths = {
|
|
|
715
715
|
readonly patch?: never;
|
|
716
716
|
readonly trace?: never;
|
|
717
717
|
};
|
|
718
|
+
readonly "/v1/me/golden/unlock": {
|
|
719
|
+
readonly parameters: {
|
|
720
|
+
readonly query?: never;
|
|
721
|
+
readonly header?: never;
|
|
722
|
+
readonly path?: never;
|
|
723
|
+
readonly cookie?: never;
|
|
724
|
+
};
|
|
725
|
+
readonly get?: never;
|
|
726
|
+
readonly put?: never;
|
|
727
|
+
/**
|
|
728
|
+
* Unlock the golden ticket
|
|
729
|
+
* @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`.
|
|
730
|
+
*/
|
|
731
|
+
readonly post: operations["unlockGolden"];
|
|
732
|
+
readonly delete?: never;
|
|
733
|
+
readonly options?: never;
|
|
734
|
+
readonly head?: never;
|
|
735
|
+
readonly patch?: never;
|
|
736
|
+
readonly trace?: never;
|
|
737
|
+
};
|
|
738
|
+
readonly "/v1/me/golden/telegram-click": {
|
|
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
|
+
* Record the golden Telegram click
|
|
749
|
+
* @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.
|
|
750
|
+
*/
|
|
751
|
+
readonly post: operations["recordGoldenTelegramClick"];
|
|
752
|
+
readonly delete?: never;
|
|
753
|
+
readonly options?: never;
|
|
754
|
+
readonly head?: never;
|
|
755
|
+
readonly patch?: never;
|
|
756
|
+
readonly trace?: never;
|
|
757
|
+
};
|
|
718
758
|
readonly "/v1/me/golden/markets": {
|
|
719
759
|
readonly parameters: {
|
|
720
760
|
readonly query?: never;
|
|
@@ -3020,8 +3060,10 @@ export type components = {
|
|
|
3020
3060
|
readonly TraderComboFields: {
|
|
3021
3061
|
/** @description The Combo ticket, as GET /v1/me/positions names it for its owner. */
|
|
3022
3062
|
readonly position_id: components["schemas"]["Bytes32"];
|
|
3023
|
-
/** @description
|
|
3024
|
-
readonly
|
|
3063
|
+
/** @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. */
|
|
3064
|
+
readonly golden: boolean;
|
|
3065
|
+
/** @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. */
|
|
3066
|
+
readonly stake: null | components["schemas"]["$defs-Amount"];
|
|
3025
3067
|
/** @description What the ticket pays if every leg wins, in HyperEVM USDC base units (10^-6). */
|
|
3026
3068
|
readonly payout: components["schemas"]["$defs-Amount"];
|
|
3027
3069
|
readonly legs: readonly components["schemas"]["TraderLeg"][];
|
|
@@ -3054,6 +3096,8 @@ export type components = {
|
|
|
3054
3096
|
readonly avatar_seed: components["schemas"]["AvatarSeed"];
|
|
3055
3097
|
/** @description The trader's X picture, shown in place of the generated avatar; absent when there is none. */
|
|
3056
3098
|
readonly picture_url?: components["schemas"]["XPictureUrl"];
|
|
3099
|
+
/** @description The trader's Genesis Account badge; absent when they have not earned it. Servers before contract 227 omit it. */
|
|
3100
|
+
readonly genesis?: components["schemas"]["$defs-Timestamp"];
|
|
3057
3101
|
/** @description HyperEVM block time of the ticket's opening. */
|
|
3058
3102
|
readonly opened_at: components["schemas"]["$defs-Timestamp"];
|
|
3059
3103
|
} & components["schemas"]["TraderComboFields"];
|
|
@@ -3404,6 +3448,37 @@ export type components = {
|
|
|
3404
3448
|
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";
|
|
3405
3449
|
readonly Hash32: string;
|
|
3406
3450
|
readonly Uint256: string;
|
|
3451
|
+
/** GoldenTicket */
|
|
3452
|
+
readonly GoldenTicket: {
|
|
3453
|
+
/**
|
|
3454
|
+
* @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.
|
|
3455
|
+
* @enum {string}
|
|
3456
|
+
*/
|
|
3457
|
+
readonly state: "LOCKED" | "AVAILABLE" | "PLACING" | "BOUGHT" | "PLACED" | "LAPSED" | "EXPIRED";
|
|
3458
|
+
/** @description When the account was created with the ticket. */
|
|
3459
|
+
readonly granted_at: components["schemas"]["$defs-Timestamp"];
|
|
3460
|
+
/** @description 7 days after `granted_at`, unlocked or not. */
|
|
3461
|
+
readonly expires_at: components["schemas"]["$defs-Timestamp"];
|
|
3462
|
+
/** @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. */
|
|
3463
|
+
readonly unlocked_at: null | components["schemas"]["$defs-Timestamp"];
|
|
3464
|
+
/** @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. */
|
|
3465
|
+
readonly telegram_clicked_at: null | components["schemas"]["$defs-Timestamp"];
|
|
3466
|
+
/** @description The gross stake Totalis pays, in USDC base units (6 decimals). */
|
|
3467
|
+
readonly stake: components["schemas"]["$defs-Amount"];
|
|
3468
|
+
/** @constant */
|
|
3469
|
+
readonly stake_asset: "USDC";
|
|
3470
|
+
/**
|
|
3471
|
+
* @description The exact number of legs a golden Combo has.
|
|
3472
|
+
* @constant
|
|
3473
|
+
*/
|
|
3474
|
+
readonly legs: 5;
|
|
3475
|
+
/** @description The gifted position once PLACED, or the position Totalis kept once LAPSED; null otherwise. */
|
|
3476
|
+
readonly position_id: null | components["schemas"]["Bytes32"];
|
|
3477
|
+
/** @description While AVAILABLE, why the latest placement failed, if one did; null otherwise. */
|
|
3478
|
+
readonly last_failure: null | components["schemas"]["GoldenPlacementFailure"];
|
|
3479
|
+
/** @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. */
|
|
3480
|
+
readonly placement: null | components["schemas"]["GoldenPlacementRead"];
|
|
3481
|
+
};
|
|
3407
3482
|
/**
|
|
3408
3483
|
* GoldenPlacementState
|
|
3409
3484
|
* @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.
|
|
@@ -3445,7 +3520,7 @@ export type components = {
|
|
|
3445
3520
|
};
|
|
3446
3521
|
/**
|
|
3447
3522
|
* GoldenPlacementFailure
|
|
3448
|
-
* @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
|
|
3523
|
+
* @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.
|
|
3449
3524
|
* @enum {string}
|
|
3450
3525
|
*/
|
|
3451
3526
|
readonly GoldenPlacementFailure: "MAKER_DECLINED" | "ACCEPT_FAILED" | "NOT_ACCEPTED" | "PROMO_BUSY" | "GIFT_FAILED" | "GIFT_EXPIRED";
|
|
@@ -3503,7 +3578,7 @@ export type components = {
|
|
|
3503
3578
|
* @description Stable HTTP error code. Each code has one HTTP status and one retry value.
|
|
3504
3579
|
* @enum {string}
|
|
3505
3580
|
*/
|
|
3506
|
-
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";
|
|
3581
|
+
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";
|
|
3507
3582
|
readonly FieldViolation: {
|
|
3508
3583
|
/**
|
|
3509
3584
|
* @description REQUIRED: the input is missing. INVALID: it is present but malformed or out of range. UNEXPECTED: the input is not accepted here.
|
|
@@ -3671,8 +3746,10 @@ export type components = {
|
|
|
3671
3746
|
readonly position_id: string;
|
|
3672
3747
|
/** @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. */
|
|
3673
3748
|
readonly vault_address: components["schemas"]["LowercaseNonZeroAddress"];
|
|
3674
|
-
/** @description Whether
|
|
3749
|
+
/** @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. */
|
|
3675
3750
|
readonly cashout_available: boolean;
|
|
3751
|
+
/** @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. */
|
|
3752
|
+
readonly golden: boolean;
|
|
3676
3753
|
/** @description Maker that wrote the position, as a decimal string. */
|
|
3677
3754
|
readonly maker_id: components["schemas"]["NonZeroUInt64String"];
|
|
3678
3755
|
/** @description Current position owner wallet (lowercase). */
|
|
@@ -4203,6 +4280,8 @@ export type components = {
|
|
|
4203
4280
|
readonly x_username?: components["schemas"]["XUsername"];
|
|
4204
4281
|
/** @description Whether the public trader profile shows x_username: true until the account hides it with PUT /v1/me/public-profile/x, whether or not X is linked. Servers before contract 210 omit it. */
|
|
4205
4282
|
readonly x_shown?: boolean;
|
|
4283
|
+
/** @description The account's Genesis Account badge (GET /v1/me/genesis), shown whether or not its public profile is on; absent until it is earned. Servers before contract 227 omit it. */
|
|
4284
|
+
readonly genesis?: components["schemas"]["$defs-Timestamp"];
|
|
4206
4285
|
};
|
|
4207
4286
|
readonly NonZeroAddress: components["schemas"]["Address"] & unknown;
|
|
4208
4287
|
/** Format: uri */
|
|
@@ -4989,6 +5068,8 @@ export type components = {
|
|
|
4989
5068
|
readonly avatar_seed: components["schemas"]["AvatarSeed"];
|
|
4990
5069
|
/** @description The author's X picture, as GET /v1/me serves it to them; absent when the server has none. Servers before contract 186 omit it. */
|
|
4991
5070
|
readonly picture_url?: components["schemas"]["XPictureUrl"];
|
|
5071
|
+
/** @description The author's Genesis Account badge, read now; absent when they have not earned it or have their public profile off. Servers before contract 227 omit it. */
|
|
5072
|
+
readonly genesis?: components["schemas"]["$defs-Timestamp"];
|
|
4992
5073
|
} | null;
|
|
4993
5074
|
/** @description The text, or null once it is deleted. */
|
|
4994
5075
|
readonly body: components["schemas"]["CommentBody"] | null;
|
|
@@ -8154,30 +8235,72 @@ export interface operations {
|
|
|
8154
8235
|
};
|
|
8155
8236
|
content: {
|
|
8156
8237
|
readonly "application/json": {
|
|
8157
|
-
readonly golden: null |
|
|
8158
|
-
|
|
8159
|
-
|
|
8160
|
-
|
|
8161
|
-
|
|
8162
|
-
|
|
8163
|
-
|
|
8164
|
-
|
|
8165
|
-
|
|
8166
|
-
|
|
8167
|
-
|
|
8168
|
-
|
|
8169
|
-
|
|
8170
|
-
|
|
8171
|
-
|
|
8172
|
-
|
|
8173
|
-
|
|
8174
|
-
|
|
8175
|
-
|
|
8176
|
-
|
|
8177
|
-
|
|
8178
|
-
|
|
8179
|
-
|
|
8180
|
-
|
|
8238
|
+
readonly golden: null | components["schemas"]["GoldenTicket"];
|
|
8239
|
+
};
|
|
8240
|
+
};
|
|
8241
|
+
};
|
|
8242
|
+
readonly 400: components["responses"]["Error"];
|
|
8243
|
+
readonly 401: components["responses"]["Error"];
|
|
8244
|
+
readonly 403: components["responses"]["Error"];
|
|
8245
|
+
readonly 404: components["responses"]["Error"];
|
|
8246
|
+
readonly 429: components["responses"]["RateLimited"];
|
|
8247
|
+
readonly 503: components["responses"]["Unavailable"];
|
|
8248
|
+
};
|
|
8249
|
+
};
|
|
8250
|
+
readonly unlockGolden: {
|
|
8251
|
+
readonly parameters: {
|
|
8252
|
+
readonly query?: never;
|
|
8253
|
+
readonly header?: never;
|
|
8254
|
+
readonly path?: never;
|
|
8255
|
+
readonly cookie?: never;
|
|
8256
|
+
};
|
|
8257
|
+
readonly requestBody: {
|
|
8258
|
+
readonly content: {
|
|
8259
|
+
readonly "application/json": Record<string, never>;
|
|
8260
|
+
};
|
|
8261
|
+
};
|
|
8262
|
+
readonly responses: {
|
|
8263
|
+
/** @description The unlocked ticket, as GET /v1/me/golden reads it */
|
|
8264
|
+
readonly 200: {
|
|
8265
|
+
headers: {
|
|
8266
|
+
readonly [name: string]: unknown;
|
|
8267
|
+
};
|
|
8268
|
+
content: {
|
|
8269
|
+
readonly "application/json": {
|
|
8270
|
+
readonly golden: components["schemas"]["GoldenTicket"];
|
|
8271
|
+
};
|
|
8272
|
+
};
|
|
8273
|
+
};
|
|
8274
|
+
readonly 400: components["responses"]["Error"];
|
|
8275
|
+
readonly 401: components["responses"]["Error"];
|
|
8276
|
+
readonly 403: components["responses"]["Error"];
|
|
8277
|
+
readonly 404: components["responses"]["Error"];
|
|
8278
|
+
readonly 409: components["responses"]["Error"];
|
|
8279
|
+
readonly 429: components["responses"]["RateLimited"];
|
|
8280
|
+
readonly 503: components["responses"]["Unavailable"];
|
|
8281
|
+
};
|
|
8282
|
+
};
|
|
8283
|
+
readonly recordGoldenTelegramClick: {
|
|
8284
|
+
readonly parameters: {
|
|
8285
|
+
readonly query?: never;
|
|
8286
|
+
readonly header?: never;
|
|
8287
|
+
readonly path?: never;
|
|
8288
|
+
readonly cookie?: never;
|
|
8289
|
+
};
|
|
8290
|
+
readonly requestBody: {
|
|
8291
|
+
readonly content: {
|
|
8292
|
+
readonly "application/json": Record<string, never>;
|
|
8293
|
+
};
|
|
8294
|
+
};
|
|
8295
|
+
readonly responses: {
|
|
8296
|
+
/** @description The ticket, as GET /v1/me/golden reads it */
|
|
8297
|
+
readonly 200: {
|
|
8298
|
+
headers: {
|
|
8299
|
+
readonly [name: string]: unknown;
|
|
8300
|
+
};
|
|
8301
|
+
content: {
|
|
8302
|
+
readonly "application/json": {
|
|
8303
|
+
readonly golden: components["schemas"]["GoldenTicket"];
|
|
8181
8304
|
};
|
|
8182
8305
|
};
|
|
8183
8306
|
};
|
|
@@ -8185,6 +8308,7 @@ export interface operations {
|
|
|
8185
8308
|
readonly 401: components["responses"]["Error"];
|
|
8186
8309
|
readonly 403: components["responses"]["Error"];
|
|
8187
8310
|
readonly 404: components["responses"]["Error"];
|
|
8311
|
+
readonly 409: components["responses"]["Error"];
|
|
8188
8312
|
readonly 429: components["responses"]["RateLimited"];
|
|
8189
8313
|
readonly 503: components["responses"]["Unavailable"];
|
|
8190
8314
|
};
|
|
@@ -8475,6 +8599,8 @@ export interface operations {
|
|
|
8475
8599
|
readonly avatar_seed?: components["schemas"]["AvatarSeed"];
|
|
8476
8600
|
/** @description The profile picture of the X account linked to the trader's Privy login, which clients show in place of the generated avatar. The same picture GET /v1/me serves the trader, as of when the ranking was read. Absent when the server has no picture for the trader. Servers before contract 167 omit it. */
|
|
8477
8601
|
readonly picture_url?: components["schemas"]["XPictureUrl"];
|
|
8602
|
+
/** @description The Genesis Account badge, as of when the ranking was read: absent when the trader has not earned it or has their public profile off. Servers before contract 227 omit it. */
|
|
8603
|
+
readonly genesis?: components["schemas"]["$defs-Timestamp"];
|
|
8478
8604
|
/** @description USDC in units of 10^-8, always above zero. */
|
|
8479
8605
|
readonly volume: components["schemas"]["$defs-Amount"];
|
|
8480
8606
|
}[];
|
|
@@ -8529,6 +8655,8 @@ export interface operations {
|
|
|
8529
8655
|
readonly avatar_seed: components["schemas"]["AvatarSeed"];
|
|
8530
8656
|
/** @description The profile picture of the X account linked to the trader's Privy login, which clients show in place of the generated avatar. The same picture GET /v1/me serves the trader, as of when the ranking was read. Absent when the server has no picture for the trader. Servers before contract 167 omit it. */
|
|
8531
8657
|
readonly picture_url?: components["schemas"]["XPictureUrl"];
|
|
8658
|
+
/** @description The Genesis Account badge, as of when the ranking was read: absent when the trader has not earned it or has their public profile off. Servers before contract 227 omit it. */
|
|
8659
|
+
readonly genesis?: components["schemas"]["$defs-Timestamp"];
|
|
8532
8660
|
/** @description USDC in atomic units (10^-6), always above zero. */
|
|
8533
8661
|
readonly profit: components["schemas"]["$defs-Amount"];
|
|
8534
8662
|
}[];
|
|
@@ -8644,6 +8772,8 @@ export interface operations {
|
|
|
8644
8772
|
readonly picture_url?: components["schemas"]["XPictureUrl"];
|
|
8645
8773
|
/** @description The handle of the X account linked to the trader's Privy login, as for GET /v1/me. Absent when there is none or the trader hid it with PUT /v1/me/public-profile/x; a signed-out answer the edge cached may show it for up to 30 seconds after it changes. Servers before contract 210 omit it. */
|
|
8646
8774
|
readonly x_username?: components["schemas"]["XUsername"];
|
|
8775
|
+
/** @description The trader's Genesis Account badge; absent when they have not earned it. Servers before contract 227 omit it. */
|
|
8776
|
+
readonly genesis?: components["schemas"]["$defs-Timestamp"];
|
|
8647
8777
|
/** @description The account wallet the trader trades from, as GET /v1/me shows it to them. */
|
|
8648
8778
|
readonly account: components["schemas"]["LowercaseNonZeroAddress"];
|
|
8649
8779
|
/** @description When the trader turned the profile on. */
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export declare const sdkVersion = "
|
|
2
|
-
export declare const openapiSha256 = "
|
|
1
|
+
export declare const sdkVersion = "229.0.0-free-combo-positions";
|
|
2
|
+
export declare const openapiSha256 = "13e7c698136fc0afbd569d644a7935ac9900d09b4d68eddf7ba7caab11fc4687";
|
|
3
3
|
export declare const realtimeSha256 = "32e56c8bb642401f5b03e9c38274087c09bebb73ffe60c0d34432c2e78ce1e15";
|
|
4
4
|
export declare const jsonSchemaSha256: {
|
|
5
5
|
readonly "account.schema.json": "c11a94438d5f7b54e08d3b559098ce2671f4c9aad3a79feb684b7a81f77d809a";
|
|
6
|
-
readonly "comments.schema.json": "
|
|
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": "
|
|
9
|
+
readonly "error.schema.json": "f98be7f7a0fa7d46479743fb040684627658abc3a04b0dccdf3f089a22454715";
|
|
10
10
|
readonly "hypercore.schema.json": "5b89b2bbff7ec8cc1b8717375d12ce9cd5ab6aa5af03c4fdc6cc753ef9583a2c";
|
|
11
|
-
readonly "identity.schema.json": "
|
|
11
|
+
readonly "identity.schema.json": "02e333b88c82d89abd6f1c9b739935db1701c67aa53b4fcc487f1d78d8c99dcc";
|
|
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", "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", "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 = "
|
|
3
|
-
export const openapiSha256 = "
|
|
2
|
+
export const sdkVersion = "229.0.0-free-combo-positions";
|
|
3
|
+
export const openapiSha256 = "13e7c698136fc0afbd569d644a7935ac9900d09b4d68eddf7ba7caab11fc4687";
|
|
4
4
|
export const realtimeSha256 = "32e56c8bb642401f5b03e9c38274087c09bebb73ffe60c0d34432c2e78ce1e15";
|
|
5
5
|
export const jsonSchemaSha256 = {
|
|
6
6
|
"account.schema.json": "c11a94438d5f7b54e08d3b559098ce2671f4c9aad3a79feb684b7a81f77d809a",
|
|
7
|
-
"comments.schema.json": "
|
|
7
|
+
"comments.schema.json": "b3e35b9b1bd90b763658fcd25910ec123d44713cdf608b4e52667c91b78f0aa5",
|
|
8
8
|
"common.schema.json": "04f51deb3cbea448e59195e26ede3212598d58a7940fe67eb2123fd9161c5edb",
|
|
9
9
|
"core-exit.schema.json": "c7f617e815225cdcac95c236f8b73fbe288ee5713ff444c3be90eb915fc3a401",
|
|
10
|
-
"error.schema.json": "
|
|
10
|
+
"error.schema.json": "f98be7f7a0fa7d46479743fb040684627658abc3a04b0dccdf3f089a22454715",
|
|
11
11
|
"hypercore.schema.json": "5b89b2bbff7ec8cc1b8717375d12ce9cd5ab6aa5af03c4fdc6cc753ef9583a2c",
|
|
12
|
-
"identity.schema.json": "
|
|
12
|
+
"identity.schema.json": "02e333b88c82d89abd6f1c9b739935db1701c67aa53b4fcc487f1d78d8c99dcc",
|
|
13
13
|
"maker-access.schema.json": "49698ee0235e42064aae0397db1e0f646bdc10d9dfa10121714ba06dd69fee3b",
|
|
14
14
|
"maker-action.schema.json": "dc41e52c868848e85cdeb918992cb710d34616d2803a63f6d9a658e016744a50",
|
|
15
15
|
"maker-telemetry.schema.json": "85b111ce0f4935299d1116071b43de12e775bef4e0c283c12f19046d34374a9c",
|
|
@@ -129,6 +129,7 @@ export const operations = {
|
|
|
129
129
|
"placeGolden",
|
|
130
130
|
"reactComment",
|
|
131
131
|
"recordAcquisition",
|
|
132
|
+
"recordGoldenTelegramClick",
|
|
132
133
|
"refreshPicture",
|
|
133
134
|
"requestComboCopyAgent",
|
|
134
135
|
"requestCoreCopyAgent",
|
|
@@ -147,6 +148,7 @@ export const operations = {
|
|
|
147
148
|
"switchOffCoreCopyAgent",
|
|
148
149
|
"unfollowTrader",
|
|
149
150
|
"unlikeComment",
|
|
151
|
+
"unlockGolden",
|
|
150
152
|
"unreactComment"
|
|
151
153
|
],
|
|
152
154
|
"maker": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@totalis/hip4-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.97.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": [
|