@totalis/hip4-client 0.126.0 → 0.128.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 +27 -0
- package/dist/generated/account-read.d.ts +1 -1
- package/dist/generated/api-keys.d.ts +1 -1
- package/dist/generated/browse.d.ts +5 -5
- package/dist/generated/client.d.ts +2 -1
- package/dist/generated/errors.d.ts +14 -33
- package/dist/generated/errors.js +26 -35
- package/dist/generated/openapi.d.ts +57 -2
- package/dist/generated/realtime.d.ts +29 -0
- package/dist/generated/version.d.ts +6 -6
- package/dist/generated/version.js +6 -5
- package/dist/realtime.d.ts +2 -1
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
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.128.0
|
|
7
|
+
|
|
8
|
+
No change notes for this release.
|
|
9
|
+
|
|
10
|
+
## 0.127.0
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- `POST /v1/me/golden/decline` ends the account's free Combo `seq` for good;
|
|
15
|
+
`GET /v1/me/golden` names it in `seq`. Refusals add
|
|
16
|
+
`GOLDEN_TICKET_NOT_CURRENT` and `GOLDEN_UNLOCK_IN_FLIGHT`.
|
|
17
|
+
- A session's account stream sends `goldenUpdated` frames when its free
|
|
18
|
+
Combo's offer, placement or grant changes: a wake to read the golden routes
|
|
19
|
+
again, naming only the `rfq_id`, `placement_id` or `seq`. Unknown channels
|
|
20
|
+
were already only emitted as `frame`, so older clients ignore them.
|
|
21
|
+
- `RealtimeGoldenUpdated` is exported, and `RealtimeFrame` includes it.
|
|
22
|
+
|
|
23
|
+
### Removed
|
|
24
|
+
|
|
25
|
+
Contract `282.0.0-no-intent-errors`:
|
|
26
|
+
|
|
27
|
+
- The error codes `RFQ_GENERATION_STALE`, `RFQ_GENERATION_IN_FLIGHT`,
|
|
28
|
+
`RFQ_INTENT_LIMIT`, `QUOTE_EXPOSURE_LIMIT`, `QUOTE_EXPOSURE_STALE` and
|
|
29
|
+
`COMBO_AUTOMATIC_DISABLED` leave `ErrorCode` and the `createGoldenRfq` and
|
|
30
|
+
`confirmQuote` error lists. No route has sent them since the simplified RFQ
|
|
31
|
+
API replaced RFQ intents; drop any handling that names them.
|
|
32
|
+
|
|
6
33
|
## 0.126.0
|
|
7
34
|
|
|
8
35
|
### Added
|
|
@@ -724,7 +724,7 @@ export type components = {
|
|
|
724
724
|
* @description Stable HTTP error code. Each code has one HTTP status and one retry value.
|
|
725
725
|
* @enum {string}
|
|
726
726
|
*/
|
|
727
|
-
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" | "PICTURE_UPLOADS_BLOCKED" | "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" | "
|
|
727
|
+
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" | "PICTURE_UPLOADS_BLOCKED" | "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" | "QUOTE_EXPIRED" | "QUOTE_CANCELLED" | "QUOTE_REPLACED" | "QUOTE_SIGNER_CHANGED" | "QUOTE_CAPACITY_EXCEEDED" | "CORE_ACCOUNT_NOT_READY" | "CORE_ACCOUNT_ACTIVATION_REQUIRED" | "CORE_EXIT_ABANDONED" | "INSUFFICIENT_WALLET_BALANCE" | "CORE_MOVE_IN_FLIGHT" | "ACCEPTANCE_IN_FLIGHT" | "USERNAME_TAKEN" | "USERNAME_ALREADY_SET" | "PICTURE_REMOVED" | "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" | "GOLDEN_TICKET_HELD" | "GOLDEN_LINK_SIGN_UP_ONLY" | "GOLDEN_LINK_CLAIMED" | "GOLDEN_TICKET_NOT_CURRENT" | "GOLDEN_UNLOCK_IN_FLIGHT" | "X_REQUIRED" | "X_ALREADY_CLAIMED" | "X_TOO_NEW" | "GOLDEN_NOT_ELIGIBLE" | "INVALID_SIGNATURE" | "WALLET_CONTRACT_UNSUPPORTED" | "WRONG_AUTHORITY" | "KEY_LIMIT_REACHED" | "USERNAME_NOT_ALLOWED" | "PICTURE_TOO_LARGE" | "PICTURE_UNREADABLE" | "PICTURE_TOO_MANY_PIXELS" | "FOLLOW_SELF" | "FOLLOW_LIMIT_REACHED" | "COPY_SELF" | "COPY_NOT_MATCHED" | "GOLDEN_LEG_COUNT" | "GOLDEN_LEG_NOT_ELIGIBLE" | "GOLDEN_QUOTE_NOT_HOUSE" | "RATE_LIMITED" | "CONNECTION_LIMIT" | "INTERNAL_ERROR" | "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" | "GAS_PRICE_ABOVE_CEILING" | "EXECUTION_BACKLOG_FULL" | "EMBEDDED_WALLET_UNAVAILABLE" | "GOLDEN_PROMO_FUNDS_LOW" | "X_VERIFICATION_UNAVAILABLE" | "CONNECTION_DRAIN";
|
|
728
728
|
readonly FieldViolation: {
|
|
729
729
|
/**
|
|
730
730
|
* @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" | "PICTURE_UPLOADS_BLOCKED" | "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" | "
|
|
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" | "PICTURE_UPLOADS_BLOCKED" | "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" | "QUOTE_EXPIRED" | "QUOTE_CANCELLED" | "QUOTE_REPLACED" | "QUOTE_SIGNER_CHANGED" | "QUOTE_CAPACITY_EXCEEDED" | "CORE_ACCOUNT_NOT_READY" | "CORE_ACCOUNT_ACTIVATION_REQUIRED" | "CORE_EXIT_ABANDONED" | "INSUFFICIENT_WALLET_BALANCE" | "CORE_MOVE_IN_FLIGHT" | "ACCEPTANCE_IN_FLIGHT" | "USERNAME_TAKEN" | "USERNAME_ALREADY_SET" | "PICTURE_REMOVED" | "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" | "GOLDEN_TICKET_HELD" | "GOLDEN_LINK_SIGN_UP_ONLY" | "GOLDEN_LINK_CLAIMED" | "GOLDEN_TICKET_NOT_CURRENT" | "GOLDEN_UNLOCK_IN_FLIGHT" | "X_REQUIRED" | "X_ALREADY_CLAIMED" | "X_TOO_NEW" | "GOLDEN_NOT_ELIGIBLE" | "INVALID_SIGNATURE" | "WALLET_CONTRACT_UNSUPPORTED" | "WRONG_AUTHORITY" | "KEY_LIMIT_REACHED" | "USERNAME_NOT_ALLOWED" | "PICTURE_TOO_LARGE" | "PICTURE_UNREADABLE" | "PICTURE_TOO_MANY_PIXELS" | "FOLLOW_SELF" | "FOLLOW_LIMIT_REACHED" | "COPY_SELF" | "COPY_NOT_MATCHED" | "GOLDEN_LEG_COUNT" | "GOLDEN_LEG_NOT_ELIGIBLE" | "GOLDEN_QUOTE_NOT_HOUSE" | "RATE_LIMITED" | "CONNECTION_LIMIT" | "INTERNAL_ERROR" | "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" | "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.
|
|
@@ -893,7 +893,7 @@ export type components = {
|
|
|
893
893
|
* @description Stable HTTP error code. Each code has one HTTP status and one retry value.
|
|
894
894
|
* @enum {string}
|
|
895
895
|
*/
|
|
896
|
-
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" | "PICTURE_UPLOADS_BLOCKED" | "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" | "
|
|
896
|
+
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" | "PICTURE_UPLOADS_BLOCKED" | "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" | "QUOTE_EXPIRED" | "QUOTE_CANCELLED" | "QUOTE_REPLACED" | "QUOTE_SIGNER_CHANGED" | "QUOTE_CAPACITY_EXCEEDED" | "CORE_ACCOUNT_NOT_READY" | "CORE_ACCOUNT_ACTIVATION_REQUIRED" | "CORE_EXIT_ABANDONED" | "INSUFFICIENT_WALLET_BALANCE" | "CORE_MOVE_IN_FLIGHT" | "ACCEPTANCE_IN_FLIGHT" | "USERNAME_TAKEN" | "USERNAME_ALREADY_SET" | "PICTURE_REMOVED" | "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" | "GOLDEN_TICKET_HELD" | "GOLDEN_LINK_SIGN_UP_ONLY" | "GOLDEN_LINK_CLAIMED" | "GOLDEN_TICKET_NOT_CURRENT" | "GOLDEN_UNLOCK_IN_FLIGHT" | "X_REQUIRED" | "X_ALREADY_CLAIMED" | "X_TOO_NEW" | "GOLDEN_NOT_ELIGIBLE" | "INVALID_SIGNATURE" | "WALLET_CONTRACT_UNSUPPORTED" | "WRONG_AUTHORITY" | "KEY_LIMIT_REACHED" | "USERNAME_NOT_ALLOWED" | "PICTURE_TOO_LARGE" | "PICTURE_UNREADABLE" | "PICTURE_TOO_MANY_PIXELS" | "FOLLOW_SELF" | "FOLLOW_LIMIT_REACHED" | "COPY_SELF" | "COPY_NOT_MATCHED" | "GOLDEN_LEG_COUNT" | "GOLDEN_LEG_NOT_ELIGIBLE" | "GOLDEN_QUOTE_NOT_HOUSE" | "RATE_LIMITED" | "CONNECTION_LIMIT" | "INTERNAL_ERROR" | "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" | "GAS_PRICE_ABOVE_CEILING" | "EXECUTION_BACKLOG_FULL" | "EMBEDDED_WALLET_UNAVAILABLE" | "GOLDEN_PROMO_FUNDS_LOW" | "X_VERIFICATION_UNAVAILABLE" | "CONNECTION_DRAIN";
|
|
897
897
|
readonly FieldViolation: {
|
|
898
898
|
/**
|
|
899
899
|
* @description REQUIRED: the input is missing. INVALID: it is present but malformed or out of range. UNEXPECTED: the input is not accepted here.
|
|
@@ -1057,10 +1057,10 @@ export interface operations {
|
|
|
1057
1057
|
};
|
|
1058
1058
|
readonly requestBody?: never;
|
|
1059
1059
|
readonly responses: {
|
|
1060
|
-
/** @description Published browse response with current visibility applied
|
|
1060
|
+
/** @description Published browse response with current visibility applied. Cache-Control lets shared caches, never browsers, keep an answer of the current, fresh and complete publication for at most 5 seconds, never past its valid_until, its next_change_at or the instant anything overlaid on it would age; any other answer is no-store. */
|
|
1061
1061
|
readonly 200: {
|
|
1062
1062
|
headers: {
|
|
1063
|
-
readonly "Cache-Control"?:
|
|
1063
|
+
readonly "Cache-Control"?: string;
|
|
1064
1064
|
/** @description Includes X-Totalis-Browse-Contract. */
|
|
1065
1065
|
readonly Vary?: string;
|
|
1066
1066
|
readonly [name: string]: unknown;
|
|
@@ -1125,10 +1125,10 @@ export interface operations {
|
|
|
1125
1125
|
};
|
|
1126
1126
|
readonly requestBody?: never;
|
|
1127
1127
|
readonly responses: {
|
|
1128
|
-
/** @description Published browse response with current visibility applied
|
|
1128
|
+
/** @description Published browse response with current visibility applied. Cache-Control lets shared caches, never browsers, keep an answer of the current, fresh and complete publication for at most 5 seconds, never past its valid_until, its next_change_at or the instant anything overlaid on it would age; any other answer is no-store. */
|
|
1129
1129
|
readonly 200: {
|
|
1130
1130
|
headers: {
|
|
1131
|
-
readonly "Cache-Control"?:
|
|
1131
|
+
readonly "Cache-Control"?: string;
|
|
1132
1132
|
/** @description Includes X-Totalis-Browse-Contract. */
|
|
1133
1133
|
readonly Vary?: string;
|
|
1134
1134
|
readonly [name: string]: unknown;
|
|
@@ -44,6 +44,7 @@ export type paths = {
|
|
|
44
44
|
readonly "/v1/me/golden/unlock": Pick<SharedPaths["/v1/me/golden/unlock"], "parameters" | "post">;
|
|
45
45
|
readonly "/v1/me/golden/telegram-click": Pick<SharedPaths["/v1/me/golden/telegram-click"], "parameters" | "post">;
|
|
46
46
|
readonly "/v1/me/golden/claim": Pick<SharedPaths["/v1/me/golden/claim"], "parameters" | "post">;
|
|
47
|
+
readonly "/v1/me/golden/decline": Pick<SharedPaths["/v1/me/golden/decline"], "parameters" | "post">;
|
|
47
48
|
readonly "/v1/me/golden/markets": Pick<SharedPaths["/v1/me/golden/markets"], "parameters" | "get">;
|
|
48
49
|
readonly "/v1/me/golden/suggestions": Pick<SharedPaths["/v1/me/golden/suggestions"], "parameters" | "get">;
|
|
49
50
|
readonly "/v1/me/golden/rfqs": Pick<SharedPaths["/v1/me/golden/rfqs"], "parameters" | "post">;
|
|
@@ -152,4 +153,4 @@ export type paths = {
|
|
|
152
153
|
readonly "/v1/makers/{maker_id}/exposure": Pick<SharedPaths["/v1/makers/{maker_id}/exposure"], "parameters" | "get">;
|
|
153
154
|
readonly "/v1/makers/{maker_id}/performance": Pick<SharedPaths["/v1/makers/{maker_id}/performance"], "parameters" | "get">;
|
|
154
155
|
};
|
|
155
|
-
export type operations = Pick<SharedOperations, "abandonCoreExit" | "acceptQuote" | "activeCoreExits" | "admitOwnMaker" | "admitPartnerWallet" | "approveWallet" | "bindEmbeddedWallet" | "cancelRfq" | "claimGoldenLink" | "confirmComboCopyAgent" | "confirmCoreCopyAgent" | "createCashout" | "createComment" | "createCoreExit" | "createDeposit" | "createGoldenRfq" | "createRfq" | "createRunOffClaim" | "createWalletChallenge" | "createWalletSession" | "createWithdrawal" | "deleteComment" | "editComment" | "endWalletSession" | "followTrader" | "getAcceptance" | "getAccountActivity" | "getAccountPnl" | "getAccountPosition" | "getAccountValue" | "getBalances" | "getChart" | "getCopyAgents" | "getCopyBudget" | "getCopySettings" | "getCopySummary" | "getCoreExit" | "getDeployment" | "getGenesis" | "getGolden" | "getGoldenLinkSuggestions" | "getGoldenMarkets" | "getGoldenOffer" | "getGoldenSuggestions" | "getHypercoreBalance" | "getHypercoreOrders" | "getHypercorePortfolio" | "getHypercoreSettlementCredits" | "getIdentity" | "getLiveMarks" | "getMakerActivity" | "getMakerCapital" | "getMakerExposure" | "getMakerPerformance" | "getMakerPosition" | "getMakerQuotes" | "getMakerTelemetry" | "getMakerVaultFundingTransaction" | "getMakerWithdrawal" | "getMarket" | "getMarketDataConfig" | "getMarketDefinitions" | "getMarketDisplay" | "getMarketRecurringRound" | "getMarketReferenceCloses" | "getMarketResults" | "getMarketRoundHistory" | "getMarketScoreTimeline" | "getMarketStats" | "getMyGenesis" | "getMyReferralBonus" | "getMyTradingRewards" | "getOperation" | "getOutcomeMetadata" | "getOwnMaker" | "getPartnerAccountValue" | "getPartnerReport" | "getPerpMarks" | "getPicture" | "getProfitLeaderboard" | "getPublicGoldenMarkets" | "getQuestion" | "getQuestionRecurringRound" | "getQuestionScoreTimeline" | "getRfq" | "getSeries" | "getSocialLeaderboard" | "getSocialPerson" | "getSocialPosition" | "getSuggestedCombo" | "getTaxonomy" | "getTrader" | "getTraderPnl" | "getUsernameAvailability" | "getVaultAgents" | "getVolumeLeaderboard" | "getWalletApproval" | "getWithdrawal" | "grantComboCopyAgent" | "grantVaultAgent" | "likeComment" | "listAccountActivity" | "listAccountPositions" | "listComboCopies" | "listComboFeed" | "listCommentReplies" | "listComments" | "listControlledMakers" | "listCopiedFills" | "listCopyTrades" | "listDiscovery" | "listFollowers" | "listFollowingFeed" | "listFollowingPositions" | "listFollows" | "listHypercorePositions" | "listMakerActivity" | "listMakerPositions" | "listMakerQuoteHistory" | "listMarketTrades" | "listMarkets" | "listMyNotifications" | "listOperations" | "listPartnerFills" | "listPartnerWebhookEvents" | "listQuotes" | "listSocialActivity" | "listSocialFeed" | "listSocialFollowers" | "listSocialFollowing" | "listSocialPositions" | "listTraderPositions" | "listTraderTrades" | "markMyNotificationsRead" | "placeGolden" | "reactComment" | "recordAcquisition" | "recordCopiedTrade" | "recordGoldenTelegramClick" | "refreshPicture" | "removeUploadedPicture" | "requestComboCopyAgent" | "requestCoreCopyAgent" | "revokeComboCopyAgent" | "searchCatalog" | "searchTraders" | "setAvatar" | "setCopyAllocation" | "setCopySettings" | "setPublicProfile" | "setUsername" | "setXHandleShown" | "setXPictureShown" | "signGoldenGift" | "stream" | "streamMarkets" | "switchOffComboCopyAgent" | "switchOffCoreCopyAgent" | "unfollowTrader" | "unlikeComment" | "unlockGolden" | "unreactComment" | "uploadPicture">;
|
|
156
|
+
export type operations = Pick<SharedOperations, "abandonCoreExit" | "acceptQuote" | "activeCoreExits" | "admitOwnMaker" | "admitPartnerWallet" | "approveWallet" | "bindEmbeddedWallet" | "cancelRfq" | "claimGoldenLink" | "confirmComboCopyAgent" | "confirmCoreCopyAgent" | "createCashout" | "createComment" | "createCoreExit" | "createDeposit" | "createGoldenRfq" | "createRfq" | "createRunOffClaim" | "createWalletChallenge" | "createWalletSession" | "createWithdrawal" | "declineGolden" | "deleteComment" | "editComment" | "endWalletSession" | "followTrader" | "getAcceptance" | "getAccountActivity" | "getAccountPnl" | "getAccountPosition" | "getAccountValue" | "getBalances" | "getChart" | "getCopyAgents" | "getCopyBudget" | "getCopySettings" | "getCopySummary" | "getCoreExit" | "getDeployment" | "getGenesis" | "getGolden" | "getGoldenLinkSuggestions" | "getGoldenMarkets" | "getGoldenOffer" | "getGoldenSuggestions" | "getHypercoreBalance" | "getHypercoreOrders" | "getHypercorePortfolio" | "getHypercoreSettlementCredits" | "getIdentity" | "getLiveMarks" | "getMakerActivity" | "getMakerCapital" | "getMakerExposure" | "getMakerPerformance" | "getMakerPosition" | "getMakerQuotes" | "getMakerTelemetry" | "getMakerVaultFundingTransaction" | "getMakerWithdrawal" | "getMarket" | "getMarketDataConfig" | "getMarketDefinitions" | "getMarketDisplay" | "getMarketRecurringRound" | "getMarketReferenceCloses" | "getMarketResults" | "getMarketRoundHistory" | "getMarketScoreTimeline" | "getMarketStats" | "getMyGenesis" | "getMyReferralBonus" | "getMyTradingRewards" | "getOperation" | "getOutcomeMetadata" | "getOwnMaker" | "getPartnerAccountValue" | "getPartnerReport" | "getPerpMarks" | "getPicture" | "getProfitLeaderboard" | "getPublicGoldenMarkets" | "getQuestion" | "getQuestionRecurringRound" | "getQuestionScoreTimeline" | "getRfq" | "getSeries" | "getSocialLeaderboard" | "getSocialPerson" | "getSocialPosition" | "getSuggestedCombo" | "getTaxonomy" | "getTrader" | "getTraderPnl" | "getUsernameAvailability" | "getVaultAgents" | "getVolumeLeaderboard" | "getWalletApproval" | "getWithdrawal" | "grantComboCopyAgent" | "grantVaultAgent" | "likeComment" | "listAccountActivity" | "listAccountPositions" | "listComboCopies" | "listComboFeed" | "listCommentReplies" | "listComments" | "listControlledMakers" | "listCopiedFills" | "listCopyTrades" | "listDiscovery" | "listFollowers" | "listFollowingFeed" | "listFollowingPositions" | "listFollows" | "listHypercorePositions" | "listMakerActivity" | "listMakerPositions" | "listMakerQuoteHistory" | "listMarketTrades" | "listMarkets" | "listMyNotifications" | "listOperations" | "listPartnerFills" | "listPartnerWebhookEvents" | "listQuotes" | "listSocialActivity" | "listSocialFeed" | "listSocialFollowers" | "listSocialFollowing" | "listSocialPositions" | "listTraderPositions" | "listTraderTrades" | "markMyNotificationsRead" | "placeGolden" | "reactComment" | "recordAcquisition" | "recordCopiedTrade" | "recordGoldenTelegramClick" | "refreshPicture" | "removeUploadedPicture" | "requestComboCopyAgent" | "requestCoreCopyAgent" | "revokeComboCopyAgent" | "searchCatalog" | "searchTraders" | "setAvatar" | "setCopyAllocation" | "setCopySettings" | "setPublicProfile" | "setUsername" | "setXHandleShown" | "setXPictureShown" | "signGoldenGift" | "stream" | "streamMarkets" | "switchOffComboCopyAgent" | "switchOffCoreCopyAgent" | "unfollowTrader" | "unlikeComment" | "unlockGolden" | "unreactComment" | "uploadPicture">;
|
|
@@ -152,16 +152,6 @@ export declare const errorRegistry: {
|
|
|
152
152
|
readonly retry: "REFRESH";
|
|
153
153
|
readonly class: "outcome";
|
|
154
154
|
};
|
|
155
|
-
readonly RFQ_GENERATION_STALE: {
|
|
156
|
-
readonly status: 409;
|
|
157
|
-
readonly retry: "REFRESH";
|
|
158
|
-
readonly class: "outcome";
|
|
159
|
-
};
|
|
160
|
-
readonly RFQ_GENERATION_IN_FLIGHT: {
|
|
161
|
-
readonly status: 409;
|
|
162
|
-
readonly retry: "REFRESH";
|
|
163
|
-
readonly class: "outcome";
|
|
164
|
-
};
|
|
165
155
|
readonly QUOTE_EXPIRED: {
|
|
166
156
|
readonly status: 409;
|
|
167
157
|
readonly retry: "REFRESH";
|
|
@@ -307,6 +297,16 @@ export declare const errorRegistry: {
|
|
|
307
297
|
readonly retry: "NEVER";
|
|
308
298
|
readonly class: "refusal";
|
|
309
299
|
};
|
|
300
|
+
readonly GOLDEN_TICKET_NOT_CURRENT: {
|
|
301
|
+
readonly status: 409;
|
|
302
|
+
readonly retry: "NEVER";
|
|
303
|
+
readonly class: "refusal";
|
|
304
|
+
};
|
|
305
|
+
readonly GOLDEN_UNLOCK_IN_FLIGHT: {
|
|
306
|
+
readonly status: 409;
|
|
307
|
+
readonly retry: "REFRESH";
|
|
308
|
+
readonly class: "outcome";
|
|
309
|
+
};
|
|
310
310
|
readonly X_REQUIRED: {
|
|
311
311
|
readonly status: 409;
|
|
312
312
|
readonly retry: "NEVER";
|
|
@@ -412,16 +412,6 @@ export declare const errorRegistry: {
|
|
|
412
412
|
readonly retry: "BACKOFF";
|
|
413
413
|
readonly class: "refusal";
|
|
414
414
|
};
|
|
415
|
-
readonly RFQ_INTENT_LIMIT: {
|
|
416
|
-
readonly status: 429;
|
|
417
|
-
readonly retry: "BACKOFF";
|
|
418
|
-
readonly class: "refusal";
|
|
419
|
-
};
|
|
420
|
-
readonly QUOTE_EXPOSURE_LIMIT: {
|
|
421
|
-
readonly status: 429;
|
|
422
|
-
readonly retry: "BACKOFF";
|
|
423
|
-
readonly class: "refusal";
|
|
424
|
-
};
|
|
425
415
|
readonly INTERNAL_ERROR: {
|
|
426
416
|
readonly status: 500;
|
|
427
417
|
readonly close: 1011;
|
|
@@ -485,16 +475,6 @@ export declare const errorRegistry: {
|
|
|
485
475
|
readonly retry: "BACKOFF";
|
|
486
476
|
readonly class: "unavailable";
|
|
487
477
|
};
|
|
488
|
-
readonly QUOTE_EXPOSURE_STALE: {
|
|
489
|
-
readonly status: 503;
|
|
490
|
-
readonly retry: "BACKOFF";
|
|
491
|
-
readonly class: "unavailable";
|
|
492
|
-
};
|
|
493
|
-
readonly COMBO_AUTOMATIC_DISABLED: {
|
|
494
|
-
readonly status: 503;
|
|
495
|
-
readonly retry: "BACKOFF";
|
|
496
|
-
readonly class: "unavailable";
|
|
497
|
-
};
|
|
498
478
|
readonly GAS_PRICE_ABOVE_CEILING: {
|
|
499
479
|
readonly status: 503;
|
|
500
480
|
readonly retry: "BACKOFF";
|
|
@@ -564,7 +544,7 @@ export declare const errorRegistry: {
|
|
|
564
544
|
};
|
|
565
545
|
/** 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. */
|
|
566
546
|
export type Retry = "NEVER" | "BACKOFF" | "REFRESH";
|
|
567
|
-
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" | "PICTURE_UPLOADS_BLOCKED" | "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" | "
|
|
547
|
+
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" | "PICTURE_UPLOADS_BLOCKED" | "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" | "QUOTE_EXPIRED" | "QUOTE_CANCELLED" | "QUOTE_REPLACED" | "QUOTE_SIGNER_CHANGED" | "QUOTE_CAPACITY_EXCEEDED" | "CORE_ACCOUNT_NOT_READY" | "CORE_ACCOUNT_ACTIVATION_REQUIRED" | "CORE_EXIT_ABANDONED" | "INSUFFICIENT_WALLET_BALANCE" | "CORE_MOVE_IN_FLIGHT" | "ACCEPTANCE_IN_FLIGHT" | "USERNAME_TAKEN" | "USERNAME_ALREADY_SET" | "PICTURE_REMOVED" | "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" | "GOLDEN_TICKET_HELD" | "GOLDEN_LINK_SIGN_UP_ONLY" | "GOLDEN_LINK_CLAIMED" | "GOLDEN_TICKET_NOT_CURRENT" | "GOLDEN_UNLOCK_IN_FLIGHT" | "X_REQUIRED" | "X_ALREADY_CLAIMED" | "X_TOO_NEW" | "GOLDEN_NOT_ELIGIBLE" | "INVALID_SIGNATURE" | "WALLET_CONTRACT_UNSUPPORTED" | "WRONG_AUTHORITY" | "KEY_LIMIT_REACHED" | "USERNAME_NOT_ALLOWED" | "PICTURE_TOO_LARGE" | "PICTURE_UNREADABLE" | "PICTURE_TOO_MANY_PIXELS" | "FOLLOW_SELF" | "FOLLOW_LIMIT_REACHED" | "COPY_SELF" | "COPY_NOT_MATCHED" | "GOLDEN_LEG_COUNT" | "GOLDEN_LEG_NOT_ELIGIBLE" | "GOLDEN_QUOTE_NOT_HOUSE" | "RATE_LIMITED" | "CONNECTION_LIMIT" | "INTERNAL_ERROR" | "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" | "GAS_PRICE_ABOVE_CEILING" | "EXECUTION_BACKLOG_FULL" | "EMBEDDED_WALLET_UNAVAILABLE" | "GOLDEN_PROMO_FUNDS_LOW" | "X_VERIFICATION_UNAVAILABLE" | "CONNECTION_DRAIN";
|
|
568
548
|
export type CloseReason = "SUBPROTOCOL_REQUIRED" | "CURSOR_RESET" | "INTERNAL_ERROR" | "DEPENDENCY_STALE" | "SOURCE_UNAVAILABLE" | "CONNECTION_DRAIN" | "INVALID_SUBSCRIPTION" | "SUBSCRIPTION_DENIED" | "AUTHORIZATION_REVOKED" | "STREAM_REPLACED" | "SLOW_CONSUMER" | "RESNAPSHOT_REQUIRED" | "SNAPSHOT_TOO_LARGE";
|
|
569
549
|
/** The codes each live operation can return. */
|
|
570
550
|
export declare const operationErrors: {
|
|
@@ -581,13 +561,13 @@ export declare const operationErrors: {
|
|
|
581
561
|
readonly claimGoldenLink: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_REQUEST", "CONTRACT_UNAVAILABLE", "NOT_FOUND", "GOLDEN_LINK_SIGN_UP_ONLY", "GOLDEN_GIVEN_OUT", "GOLDEN_CODE_DISABLED", "GOLDEN_LINK_CLAIMED", "GOLDEN_TICKET_HELD", "GOLDEN_PLACEMENT_IN_FLIGHT", "INTERNAL_ERROR"];
|
|
582
562
|
readonly confirmComboCopyAgent: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "CONTRACT_UNAVAILABLE", "NOT_FOUND", "STATE_CONFLICT", "DEPENDENCY_STALE", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED", "INTERNAL_ERROR"];
|
|
583
563
|
readonly confirmCoreCopyAgent: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "CONTRACT_UNAVAILABLE", "NOT_FOUND", "STATE_CONFLICT", "DEPENDENCY_STALE", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED", "INTERNAL_ERROR"];
|
|
584
|
-
readonly confirmQuote: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED", "NOT_FOUND", "STATE_CONFLICT", "INVALID_SIGNATURE", "QUOTE_EXPIRED", "QUOTE_SIGNER_CHANGED", "QUOTE_CAPACITY_EXCEEDED", "
|
|
564
|
+
readonly confirmQuote: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED", "NOT_FOUND", "STATE_CONFLICT", "INVALID_SIGNATURE", "QUOTE_EXPIRED", "QUOTE_SIGNER_CHANGED", "QUOTE_CAPACITY_EXCEEDED", "FINANCIAL_ACTIONS_DISABLED", "WRONG_AUTHORITY", "INTERNAL_ERROR"];
|
|
585
565
|
readonly createCashout: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED", "STATE_CONFLICT", "GOLDEN_CASHOUT_REFUSED", "FINANCIAL_ACTIONS_DISABLED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INTERNAL_ERROR"];
|
|
586
566
|
readonly createCollateralReduction: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED", "NOT_FOUND", "STATE_CONFLICT", "FINANCIAL_ACTIONS_DISABLED", "COLLATERAL_REDUCTION_UNAVAILABLE", "INTERNAL_ERROR"];
|
|
587
567
|
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", "INTERNAL_ERROR"];
|
|
588
568
|
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", "INTERNAL_ERROR"];
|
|
589
569
|
readonly createDeposit: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED", "STATE_CONFLICT", "INSUFFICIENT_WALLET_BALANCE", "FINANCIAL_ACTIONS_DISABLED", "INVALID_SIGNATURE", "SPONSORSHIP_UNAVAILABLE", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INTERNAL_ERROR"];
|
|
590
|
-
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", "
|
|
570
|
+
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", "BROWSE_UNAVAILABLE", "INTERNAL_ERROR"];
|
|
591
571
|
readonly createMakerApiKey: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND", "IDEMPOTENCY_KEY_REUSED", "SECRET_UNAVAILABLE", "KEY_LIMIT_REACHED", "INTERNAL_ERROR"];
|
|
592
572
|
readonly createMakerApiKeyChallenge: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND", "IDEMPOTENCY_KEY_REUSED", "INTERNAL_ERROR"];
|
|
593
573
|
readonly createOperatorApiKey: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND", "IDEMPOTENCY_KEY_REUSED", "SECRET_UNAVAILABLE", "KEY_LIMIT_REACHED", "INTERNAL_ERROR"];
|
|
@@ -599,6 +579,7 @@ export declare const operationErrors: {
|
|
|
599
579
|
readonly createWalletChallenge: readonly ["INVALID_REQUEST", "INVALID_IDEMPOTENCY_KEY", "ORIGIN_REQUIRED", "ORIGIN_NOT_ALLOWED", "UNAUTHENTICATED", "IDEMPOTENCY_KEY_REUSED", "STATE_CONFLICT", "WALLET_CONTRACT_UNSUPPORTED", "RATE_LIMITED", "AUTHORIZATION_UNAVAILABLE", "INTERNAL_ERROR"];
|
|
600
580
|
readonly createWalletSession: readonly ["INVALID_REQUEST", "INVALID_IDEMPOTENCY_KEY", "ORIGIN_REQUIRED", "ORIGIN_NOT_ALLOWED", "UNAUTHENTICATED", "ACCESS_REQUIRED", "IDEMPOTENCY_KEY_REUSED", "STATE_CONFLICT", "INVALID_SIGNATURE", "RATE_LIMITED", "AUTHORIZATION_UNAVAILABLE", "INTERNAL_ERROR"];
|
|
601
581
|
readonly createWithdrawal: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED", "STATE_CONFLICT", "FINANCIAL_ACTIONS_DISABLED", "INVALID_SIGNATURE", "CONTRACT_SIGNATURE_OVERLOADED", "SPONSORSHIP_UNAVAILABLE", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INTERNAL_ERROR"];
|
|
582
|
+
readonly declineGolden: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_REQUEST", "CONTRACT_UNAVAILABLE", "GOLDEN_TICKET_NOT_CURRENT", "GOLDEN_UNLOCK_IN_FLIGHT", "GOLDEN_PLACEMENT_IN_FLIGHT", "GOLDEN_TICKET_USED", "GOLDEN_TICKET_EXPIRED", "INTERNAL_ERROR"];
|
|
602
583
|
readonly deleteComment: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "NOT_FOUND", "INVALID_IDEMPOTENCY_KEY", "INTERNAL_ERROR"];
|
|
603
584
|
readonly editComment: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_REQUEST", "NOT_FOUND", "STATE_CONFLICT", "INVALID_IDEMPOTENCY_KEY", "INTERNAL_ERROR"];
|
|
604
585
|
readonly endWalletSession: readonly ["UNAUTHENTICATED", "FORBIDDEN", "ORIGIN_REQUIRED", "RATE_LIMITED", "AUTHORIZATION_UNAVAILABLE", "INTERNAL_ERROR"];
|
package/dist/generated/errors.js
CHANGED
|
@@ -153,16 +153,6 @@ export const errorRegistry = {
|
|
|
153
153
|
"retry": "REFRESH",
|
|
154
154
|
"class": "outcome"
|
|
155
155
|
},
|
|
156
|
-
"RFQ_GENERATION_STALE": {
|
|
157
|
-
"status": 409,
|
|
158
|
-
"retry": "REFRESH",
|
|
159
|
-
"class": "outcome"
|
|
160
|
-
},
|
|
161
|
-
"RFQ_GENERATION_IN_FLIGHT": {
|
|
162
|
-
"status": 409,
|
|
163
|
-
"retry": "REFRESH",
|
|
164
|
-
"class": "outcome"
|
|
165
|
-
},
|
|
166
156
|
"QUOTE_EXPIRED": {
|
|
167
157
|
"status": 409,
|
|
168
158
|
"retry": "REFRESH",
|
|
@@ -308,6 +298,16 @@ export const errorRegistry = {
|
|
|
308
298
|
"retry": "NEVER",
|
|
309
299
|
"class": "refusal"
|
|
310
300
|
},
|
|
301
|
+
"GOLDEN_TICKET_NOT_CURRENT": {
|
|
302
|
+
"status": 409,
|
|
303
|
+
"retry": "NEVER",
|
|
304
|
+
"class": "refusal"
|
|
305
|
+
},
|
|
306
|
+
"GOLDEN_UNLOCK_IN_FLIGHT": {
|
|
307
|
+
"status": 409,
|
|
308
|
+
"retry": "REFRESH",
|
|
309
|
+
"class": "outcome"
|
|
310
|
+
},
|
|
311
311
|
"X_REQUIRED": {
|
|
312
312
|
"status": 409,
|
|
313
313
|
"retry": "NEVER",
|
|
@@ -413,16 +413,6 @@ export const errorRegistry = {
|
|
|
413
413
|
"retry": "BACKOFF",
|
|
414
414
|
"class": "refusal"
|
|
415
415
|
},
|
|
416
|
-
"RFQ_INTENT_LIMIT": {
|
|
417
|
-
"status": 429,
|
|
418
|
-
"retry": "BACKOFF",
|
|
419
|
-
"class": "refusal"
|
|
420
|
-
},
|
|
421
|
-
"QUOTE_EXPOSURE_LIMIT": {
|
|
422
|
-
"status": 429,
|
|
423
|
-
"retry": "BACKOFF",
|
|
424
|
-
"class": "refusal"
|
|
425
|
-
},
|
|
426
416
|
"INTERNAL_ERROR": {
|
|
427
417
|
"status": 500,
|
|
428
418
|
"close": 1011,
|
|
@@ -486,16 +476,6 @@ export const errorRegistry = {
|
|
|
486
476
|
"retry": "BACKOFF",
|
|
487
477
|
"class": "unavailable"
|
|
488
478
|
},
|
|
489
|
-
"QUOTE_EXPOSURE_STALE": {
|
|
490
|
-
"status": 503,
|
|
491
|
-
"retry": "BACKOFF",
|
|
492
|
-
"class": "unavailable"
|
|
493
|
-
},
|
|
494
|
-
"COMBO_AUTOMATIC_DISABLED": {
|
|
495
|
-
"status": 503,
|
|
496
|
-
"retry": "BACKOFF",
|
|
497
|
-
"class": "unavailable"
|
|
498
|
-
},
|
|
499
479
|
"GAS_PRICE_ABOVE_CEILING": {
|
|
500
480
|
"status": 503,
|
|
501
481
|
"retry": "BACKOFF",
|
|
@@ -775,10 +755,6 @@ export const operationErrors = {
|
|
|
775
755
|
"QUOTE_EXPIRED",
|
|
776
756
|
"QUOTE_SIGNER_CHANGED",
|
|
777
757
|
"QUOTE_CAPACITY_EXCEEDED",
|
|
778
|
-
"QUOTE_EXPOSURE_LIMIT",
|
|
779
|
-
"QUOTE_EXPOSURE_STALE",
|
|
780
|
-
"COMBO_AUTOMATIC_DISABLED",
|
|
781
|
-
"RFQ_GENERATION_STALE",
|
|
782
758
|
"FINANCIAL_ACTIONS_DISABLED",
|
|
783
759
|
"WRONG_AUTHORITY",
|
|
784
760
|
"INTERNAL_ERROR"
|
|
@@ -887,7 +863,6 @@ export const operationErrors = {
|
|
|
887
863
|
"GOLDEN_LEG_NOT_ELIGIBLE",
|
|
888
864
|
"STATE_CONFLICT",
|
|
889
865
|
"FINANCIAL_ACTIONS_DISABLED",
|
|
890
|
-
"COMBO_AUTOMATIC_DISABLED",
|
|
891
866
|
"BROWSE_UNAVAILABLE",
|
|
892
867
|
"INTERNAL_ERROR"
|
|
893
868
|
],
|
|
@@ -1043,6 +1018,22 @@ export const operationErrors = {
|
|
|
1043
1018
|
"IDENTITY_NOT_FOUND",
|
|
1044
1019
|
"INTERNAL_ERROR"
|
|
1045
1020
|
],
|
|
1021
|
+
"declineGolden": [
|
|
1022
|
+
"UNAUTHENTICATED",
|
|
1023
|
+
"FORBIDDEN",
|
|
1024
|
+
"AUTHORIZATION_UNAVAILABLE",
|
|
1025
|
+
"RATE_LIMITED",
|
|
1026
|
+
"ORIGIN_REQUIRED",
|
|
1027
|
+
"IDENTITY_NOT_FOUND",
|
|
1028
|
+
"INVALID_REQUEST",
|
|
1029
|
+
"CONTRACT_UNAVAILABLE",
|
|
1030
|
+
"GOLDEN_TICKET_NOT_CURRENT",
|
|
1031
|
+
"GOLDEN_UNLOCK_IN_FLIGHT",
|
|
1032
|
+
"GOLDEN_PLACEMENT_IN_FLIGHT",
|
|
1033
|
+
"GOLDEN_TICKET_USED",
|
|
1034
|
+
"GOLDEN_TICKET_EXPIRED",
|
|
1035
|
+
"INTERNAL_ERROR"
|
|
1036
|
+
],
|
|
1046
1037
|
"deleteComment": [
|
|
1047
1038
|
"UNAUTHENTICATED",
|
|
1048
1039
|
"FORBIDDEN",
|
|
@@ -852,7 +852,7 @@ export type paths = {
|
|
|
852
852
|
};
|
|
853
853
|
/**
|
|
854
854
|
* Get the golden ticket
|
|
855
|
-
* @description The account's current golden ticket (TT-2624): its latest free Combo, null for an account that never got one or where golden Combos are off. A free Combo lands with an account created from an invite code's golden link while the code still had free Combos to unlock, with a Free Combo link the account claimed (POST /v1/me/golden/claim), or when Totalis gives the account one. An account holds at most one unused or in-flight free Combo at a time and may get the next once that one is used or expired; this read answers the latest, and one Totalis cancelled before it was used reads as null. 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.
|
|
855
|
+
* @description The account's current golden ticket (TT-2624): its latest free Combo, null for an account that never got one or where golden Combos are off. A free Combo lands with an account created from an invite code's golden link while the code still had free Combos to unlock, with a Free Combo link the account claimed (POST /v1/me/golden/claim), or when Totalis gives the account one. An account holds at most one unused or in-flight free Combo at a time and may get the next once that one is used or expired; this read answers the latest, and one Totalis cancelled, or the account declined (POST /v1/me/golden/decline), before it was used reads as null. 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.
|
|
856
856
|
*/
|
|
857
857
|
readonly get: operations["getGolden"];
|
|
858
858
|
readonly put?: never;
|
|
@@ -923,6 +923,26 @@ export type paths = {
|
|
|
923
923
|
readonly patch?: never;
|
|
924
924
|
readonly trace?: never;
|
|
925
925
|
};
|
|
926
|
+
readonly "/v1/me/golden/decline": {
|
|
927
|
+
readonly parameters: {
|
|
928
|
+
readonly query?: never;
|
|
929
|
+
readonly header?: never;
|
|
930
|
+
readonly path?: never;
|
|
931
|
+
readonly cookie?: never;
|
|
932
|
+
};
|
|
933
|
+
readonly get?: never;
|
|
934
|
+
readonly put?: never;
|
|
935
|
+
/**
|
|
936
|
+
* Decline the free Combo
|
|
937
|
+
* @description Ends this account's free Combo `seq` unused, for good: from then on GET /v1/me/golden reads null, nothing quotes or places it, and no reminder about it is sent. It gives nothing back: a free Combo its unlock took from an invite code or Free Combo link stays taken, and so does any X account the unlock took. A later free Combo still lands as before, from Totalis or another Free Combo link; claiming the same link again answers GOLDEN_LINK_CLAIMED. `seq` keys the request, so the same request again answers 204 and a retry never touches a newer free Combo. Refusals change nothing: GOLDEN_TICKET_NOT_CURRENT (that free Combo is not this account's current one: read the ticket again and never resend with another `seq` unasked), GOLDEN_UNLOCK_IN_FLIGHT (its unlock is still being decided), GOLDEN_PLACEMENT_IN_FLIGHT (its Combo is being bought or delivered), GOLDEN_TICKET_USED (it already placed its Combo) and GOLDEN_TICKET_EXPIRED (it expired unused). A LOCKED ticket a refusal left LOCKED declines like any other.
|
|
938
|
+
*/
|
|
939
|
+
readonly post: operations["declineGolden"];
|
|
940
|
+
readonly delete?: never;
|
|
941
|
+
readonly options?: never;
|
|
942
|
+
readonly head?: never;
|
|
943
|
+
readonly patch?: never;
|
|
944
|
+
readonly trace?: never;
|
|
945
|
+
};
|
|
926
946
|
readonly "/v1/me/golden/markets": {
|
|
927
947
|
readonly parameters: {
|
|
928
948
|
readonly query?: never;
|
|
@@ -4089,6 +4109,8 @@ export type components = {
|
|
|
4089
4109
|
};
|
|
4090
4110
|
/** GoldenTicket */
|
|
4091
4111
|
readonly GoldenTicket: {
|
|
4112
|
+
/** @description Which of this account's free Combos this is, numbered from 0 as they land. POST /v1/me/golden/decline names it, so a decline never touches a newer one. */
|
|
4113
|
+
readonly seq: number;
|
|
4092
4114
|
/** @description Why a press of this ticket would be refused now whatever its picks, from Totalis's latest read of its free Combo cash, at most 30 seconds old; null when nothing is known to stop it, including while no read that recent is at hand, and always null unless the ticket is AVAILABLE, or LOCKED and not `not_eligible`. FUNDS_LOW: Totalis's free Combo cash cannot pay this ticket's `stake` now, so POST /v1/me/golden/placements would answer GOLDEN_PROMO_FUNDS_LOW; it clears on its own once Totalis tops it up. The ticket stays as it is: read it again to see the pause lift. The placement's own check still decides. */
|
|
4093
4115
|
readonly paused: null | components["schemas"]["GoldenPause"];
|
|
4094
4116
|
/** @description What this account must still verify before POST /v1/me/golden/unlock can unlock this ticket; empty when nothing (unlocked, refused, expired, or a free Combo that needs none). X: a linked X account, checked when the unlock is pressed. Only a free Combo from a person's or campaign's invite code needs X; one from a Free Combo link Totalis made, or one Totalis gave, never does. It says what is owed, not what the login holds: an X may already be linked, and the unlock reads it then (X_REQUIRED, X_ALREADY_CLAIMED, X_TOO_NEW, X_VERIFICATION_UNAVAILABLE). */
|
|
@@ -4254,7 +4276,7 @@ export type components = {
|
|
|
4254
4276
|
* @description Stable HTTP error code. Each code has one HTTP status and one retry value.
|
|
4255
4277
|
* @enum {string}
|
|
4256
4278
|
*/
|
|
4257
|
-
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" | "PICTURE_UPLOADS_BLOCKED" | "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" | "
|
|
4279
|
+
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" | "PICTURE_UPLOADS_BLOCKED" | "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" | "QUOTE_EXPIRED" | "QUOTE_CANCELLED" | "QUOTE_REPLACED" | "QUOTE_SIGNER_CHANGED" | "QUOTE_CAPACITY_EXCEEDED" | "CORE_ACCOUNT_NOT_READY" | "CORE_ACCOUNT_ACTIVATION_REQUIRED" | "CORE_EXIT_ABANDONED" | "INSUFFICIENT_WALLET_BALANCE" | "CORE_MOVE_IN_FLIGHT" | "ACCEPTANCE_IN_FLIGHT" | "USERNAME_TAKEN" | "USERNAME_ALREADY_SET" | "PICTURE_REMOVED" | "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" | "GOLDEN_TICKET_HELD" | "GOLDEN_LINK_SIGN_UP_ONLY" | "GOLDEN_LINK_CLAIMED" | "GOLDEN_TICKET_NOT_CURRENT" | "GOLDEN_UNLOCK_IN_FLIGHT" | "X_REQUIRED" | "X_ALREADY_CLAIMED" | "X_TOO_NEW" | "GOLDEN_NOT_ELIGIBLE" | "INVALID_SIGNATURE" | "WALLET_CONTRACT_UNSUPPORTED" | "WRONG_AUTHORITY" | "KEY_LIMIT_REACHED" | "USERNAME_NOT_ALLOWED" | "PICTURE_TOO_LARGE" | "PICTURE_UNREADABLE" | "PICTURE_TOO_MANY_PIXELS" | "FOLLOW_SELF" | "FOLLOW_LIMIT_REACHED" | "COPY_SELF" | "COPY_NOT_MATCHED" | "GOLDEN_LEG_COUNT" | "GOLDEN_LEG_NOT_ELIGIBLE" | "GOLDEN_QUOTE_NOT_HOUSE" | "RATE_LIMITED" | "CONNECTION_LIMIT" | "INTERNAL_ERROR" | "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" | "GAS_PRICE_ABOVE_CEILING" | "EXECUTION_BACKLOG_FULL" | "EMBEDDED_WALLET_UNAVAILABLE" | "GOLDEN_PROMO_FUNDS_LOW" | "X_VERIFICATION_UNAVAILABLE" | "CONNECTION_DRAIN";
|
|
4258
4280
|
readonly FieldViolation: {
|
|
4259
4281
|
/**
|
|
4260
4282
|
* @description REQUIRED: the input is missing. INVALID: it is present but malformed or out of range. UNEXPECTED: the input is not accepted here.
|
|
@@ -10099,6 +10121,39 @@ export interface operations {
|
|
|
10099
10121
|
readonly 503: components["responses"]["Unavailable"];
|
|
10100
10122
|
};
|
|
10101
10123
|
};
|
|
10124
|
+
readonly declineGolden: {
|
|
10125
|
+
readonly parameters: {
|
|
10126
|
+
readonly query?: never;
|
|
10127
|
+
readonly header?: never;
|
|
10128
|
+
readonly path?: never;
|
|
10129
|
+
readonly cookie?: never;
|
|
10130
|
+
};
|
|
10131
|
+
readonly requestBody: {
|
|
10132
|
+
readonly content: {
|
|
10133
|
+
readonly "application/json": {
|
|
10134
|
+
/** @description The free Combo to end, as GET /v1/me/golden names it in `seq`. */
|
|
10135
|
+
readonly seq: number;
|
|
10136
|
+
};
|
|
10137
|
+
};
|
|
10138
|
+
};
|
|
10139
|
+
readonly responses: {
|
|
10140
|
+
/** @description The free Combo is ended */
|
|
10141
|
+
readonly 204: {
|
|
10142
|
+
headers: {
|
|
10143
|
+
readonly [name: string]: unknown;
|
|
10144
|
+
};
|
|
10145
|
+
content?: never;
|
|
10146
|
+
};
|
|
10147
|
+
readonly 400: components["responses"]["Error"];
|
|
10148
|
+
readonly 401: components["responses"]["Error"];
|
|
10149
|
+
readonly 403: components["responses"]["Error"];
|
|
10150
|
+
readonly 404: components["responses"]["Error"];
|
|
10151
|
+
readonly 409: components["responses"]["Error"];
|
|
10152
|
+
readonly 429: components["responses"]["RateLimited"];
|
|
10153
|
+
readonly 500: components["responses"]["InternalError"];
|
|
10154
|
+
readonly 503: components["responses"]["Unavailable"];
|
|
10155
|
+
};
|
|
10156
|
+
};
|
|
10102
10157
|
readonly getGoldenMarkets: {
|
|
10103
10158
|
readonly parameters: {
|
|
10104
10159
|
readonly query?: never;
|
|
@@ -531,6 +531,35 @@ export type components = {
|
|
|
531
531
|
/** @description The account reads to refetch. */
|
|
532
532
|
readonly data: components["schemas"]["Invalidation"];
|
|
533
533
|
};
|
|
534
|
+
readonly GoldenUpdatedFrame: {
|
|
535
|
+
/**
|
|
536
|
+
* @description Frame discriminator, always goldenUpdated. Sent to account subscriptions on a session or unscoped key, about the account's own free Combo only.
|
|
537
|
+
* @constant
|
|
538
|
+
*/
|
|
539
|
+
readonly channel: "goldenUpdated";
|
|
540
|
+
/** @description A wake to read the golden routes again. It carries no price, quote, wallet, signature or status: the reads stay the authority, and a missed or repeated frame changes nothing they say. */
|
|
541
|
+
readonly data: {
|
|
542
|
+
/**
|
|
543
|
+
* @description What moved. OFFER: a quote on the account's golden RFQ `rfq_id` was published or withdrawn; read GET /v1/me/golden/rfqs/{rfq_id}/offer. PLACEMENT: the golden placement `placement_id` was recorded, changed status, or had its gift signed or dropped; read GET /v1/me/golden. GRANT: the free Combo `seq` landed on the existing account (Totalis gave it, or the account claimed a Free Combo link), was unlocked, or ended (declined or cancelled); read GET /v1/me/golden. A client ignores a change it does not know.
|
|
544
|
+
* @enum {unknown}
|
|
545
|
+
*/
|
|
546
|
+
readonly change: "OFFER" | "PLACEMENT" | "GRANT";
|
|
547
|
+
/** @description The free Combo it is about, as GET /v1/me/golden names it in `seq`. */
|
|
548
|
+
readonly seq: number;
|
|
549
|
+
/**
|
|
550
|
+
* Format: uuid
|
|
551
|
+
* @description The golden RFQ whose offer moved; present only on OFFER.
|
|
552
|
+
*/
|
|
553
|
+
readonly rfq_id?: string;
|
|
554
|
+
/**
|
|
555
|
+
* Format: uuid
|
|
556
|
+
* @description The golden placement that moved; present only on PLACEMENT.
|
|
557
|
+
*/
|
|
558
|
+
readonly placement_id?: string;
|
|
559
|
+
/** @description The journal position of the change. Order only: resume from the last event cursor as before. */
|
|
560
|
+
readonly cursor: components["schemas"]["Cursor"];
|
|
561
|
+
};
|
|
562
|
+
};
|
|
534
563
|
readonly ResetFrame: {
|
|
535
564
|
/**
|
|
536
565
|
* @description Frame discriminator, always reset. The server closes right after; discard local state, reload over HTTP and reconnect.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export declare const sdkVersion = "
|
|
2
|
-
export declare const openapiSha256 = "
|
|
3
|
-
export declare const realtimeSha256 = "
|
|
1
|
+
export declare const sdkVersion = "282.0.0-no-intent-errors";
|
|
2
|
+
export declare const openapiSha256 = "47db60764499d2fc83e8bdfe7dbc299db969190a7d3a8661a4ebff278f08b77f";
|
|
3
|
+
export declare const realtimeSha256 = "f85e0ee178b1aa88dae8ec44f97acd829a1f6308ea601ded2e0809dcf9e35168";
|
|
4
4
|
export declare const jsonSchemaSha256: {
|
|
5
5
|
readonly "account.schema.json": "3120357249f55f8481d5afb7a99112f803c22c6a1cbe3adadca478bb313f8160";
|
|
6
6
|
readonly "comments.schema.json": "5773471b4442ba9d8af0dc012d71561baaf50d0e1c2571039241780848edb4a4";
|
|
7
7
|
readonly "common.schema.json": "e7b414609c7eefa2e649882d251290993832aa484eddce41fda472af9b7ca40b";
|
|
8
8
|
readonly "core-exit.schema.json": "6208a8dc775e8a9f858ec802e9b013a3e2363279a7b24ff7dfecf89fe0462eb9";
|
|
9
|
-
readonly "error.schema.json": "
|
|
9
|
+
readonly "error.schema.json": "48b22a54961612526f4aaa81a569a2f704d3ffe095346fd2e6d6082dfeb8fa6d";
|
|
10
10
|
readonly "hypercore.schema.json": "38685dc8ee900f9d1c7d1eeda40cc622bc74a10d7dd702163085ab1e0c1437e3";
|
|
11
11
|
readonly "identity.schema.json": "06d5d3f175761af1f96c2367524ee5f736325c78999f471accfd9662bfa85373";
|
|
12
12
|
readonly "maker-access.schema.json": "49698ee0235e42064aae0397db1e0f646bdc10d9dfa10121714ba06dd69fee3b";
|
|
@@ -15,11 +15,11 @@ export declare const jsonSchemaSha256: {
|
|
|
15
15
|
readonly "market-data.schema.json": "fd00eaf6524d25019db1dce6c20a3c6f0b9786608583aa6bd1cc14cd2388702f";
|
|
16
16
|
readonly "product-metadata.schema.json": "7c8ffbde878a0aedaed16814fcfd2e80038054b140886cc8736bb7b508042631";
|
|
17
17
|
readonly "quote.schema.json": "5c16a54c428656a4e8c1042b2057ce8290e6eebcc02b237f5dce7e4c13b7ded0";
|
|
18
|
-
readonly "realtime.schema.json": "
|
|
18
|
+
readonly "realtime.schema.json": "f85e0ee178b1aa88dae8ec44f97acd829a1f6308ea601ded2e0809dcf9e35168";
|
|
19
19
|
readonly "social.schema.json": "98e5c2a3159e5833e9af5e776231875bc42133144476e771e73575cec3f36380";
|
|
20
20
|
};
|
|
21
21
|
export declare const operations: {
|
|
22
|
-
readonly client: readonly ["abandonCoreExit", "acceptQuote", "activeCoreExits", "admitOwnMaker", "admitPartnerWallet", "approveWallet", "bindEmbeddedWallet", "cancelRfq", "claimGoldenLink", "confirmComboCopyAgent", "confirmCoreCopyAgent", "createCashout", "createComment", "createCoreExit", "createDeposit", "createGoldenRfq", "createRfq", "createRunOffClaim", "createWalletChallenge", "createWalletSession", "createWithdrawal", "deleteComment", "editComment", "endWalletSession", "followTrader", "getAcceptance", "getAccountActivity", "getAccountPnl", "getAccountPosition", "getAccountValue", "getBalances", "getChart", "getCopyAgents", "getCopyBudget", "getCopySettings", "getCopySummary", "getCoreExit", "getDeployment", "getGenesis", "getGolden", "getGoldenLinkSuggestions", "getGoldenMarkets", "getGoldenOffer", "getGoldenSuggestions", "getHypercoreBalance", "getHypercoreOrders", "getHypercorePortfolio", "getHypercoreSettlementCredits", "getIdentity", "getLiveMarks", "getMakerActivity", "getMakerCapital", "getMakerExposure", "getMakerPerformance", "getMakerPosition", "getMakerQuotes", "getMakerTelemetry", "getMakerVaultFundingTransaction", "getMakerWithdrawal", "getMarket", "getMarketDataConfig", "getMarketDefinitions", "getMarketDisplay", "getMarketRecurringRound", "getMarketReferenceCloses", "getMarketResults", "getMarketRoundHistory", "getMarketScoreTimeline", "getMarketStats", "getMyGenesis", "getMyReferralBonus", "getMyTradingRewards", "getOperation", "getOutcomeMetadata", "getOwnMaker", "getPartnerAccountValue", "getPartnerReport", "getPerpMarks", "getPicture", "getProfitLeaderboard", "getPublicGoldenMarkets", "getQuestion", "getQuestionRecurringRound", "getQuestionScoreTimeline", "getRfq", "getSeries", "getSocialLeaderboard", "getSocialPerson", "getSocialPosition", "getSuggestedCombo", "getTaxonomy", "getTrader", "getTraderPnl", "getUsernameAvailability", "getVaultAgents", "getVolumeLeaderboard", "getWalletApproval", "getWithdrawal", "grantComboCopyAgent", "grantVaultAgent", "likeComment", "listAccountActivity", "listAccountPositions", "listComboCopies", "listComboFeed", "listCommentReplies", "listComments", "listControlledMakers", "listCopiedFills", "listCopyTrades", "listDiscovery", "listFollowers", "listFollowingFeed", "listFollowingPositions", "listFollows", "listHypercorePositions", "listMakerActivity", "listMakerPositions", "listMakerQuoteHistory", "listMarketTrades", "listMarkets", "listMyNotifications", "listOperations", "listPartnerFills", "listPartnerWebhookEvents", "listQuotes", "listSocialActivity", "listSocialFeed", "listSocialFollowers", "listSocialFollowing", "listSocialPositions", "listTraderPositions", "listTraderTrades", "markMyNotificationsRead", "placeGolden", "reactComment", "recordAcquisition", "recordCopiedTrade", "recordGoldenTelegramClick", "refreshPicture", "removeUploadedPicture", "requestComboCopyAgent", "requestCoreCopyAgent", "revokeComboCopyAgent", "searchCatalog", "searchTraders", "setAvatar", "setCopyAllocation", "setCopySettings", "setPublicProfile", "setUsername", "setXHandleShown", "setXPictureShown", "signGoldenGift", "stream", "streamMarkets", "switchOffComboCopyAgent", "switchOffCoreCopyAgent", "unfollowTrader", "unlikeComment", "unlockGolden", "unreactComment", "uploadPicture"];
|
|
22
|
+
readonly client: readonly ["abandonCoreExit", "acceptQuote", "activeCoreExits", "admitOwnMaker", "admitPartnerWallet", "approveWallet", "bindEmbeddedWallet", "cancelRfq", "claimGoldenLink", "confirmComboCopyAgent", "confirmCoreCopyAgent", "createCashout", "createComment", "createCoreExit", "createDeposit", "createGoldenRfq", "createRfq", "createRunOffClaim", "createWalletChallenge", "createWalletSession", "createWithdrawal", "declineGolden", "deleteComment", "editComment", "endWalletSession", "followTrader", "getAcceptance", "getAccountActivity", "getAccountPnl", "getAccountPosition", "getAccountValue", "getBalances", "getChart", "getCopyAgents", "getCopyBudget", "getCopySettings", "getCopySummary", "getCoreExit", "getDeployment", "getGenesis", "getGolden", "getGoldenLinkSuggestions", "getGoldenMarkets", "getGoldenOffer", "getGoldenSuggestions", "getHypercoreBalance", "getHypercoreOrders", "getHypercorePortfolio", "getHypercoreSettlementCredits", "getIdentity", "getLiveMarks", "getMakerActivity", "getMakerCapital", "getMakerExposure", "getMakerPerformance", "getMakerPosition", "getMakerQuotes", "getMakerTelemetry", "getMakerVaultFundingTransaction", "getMakerWithdrawal", "getMarket", "getMarketDataConfig", "getMarketDefinitions", "getMarketDisplay", "getMarketRecurringRound", "getMarketReferenceCloses", "getMarketResults", "getMarketRoundHistory", "getMarketScoreTimeline", "getMarketStats", "getMyGenesis", "getMyReferralBonus", "getMyTradingRewards", "getOperation", "getOutcomeMetadata", "getOwnMaker", "getPartnerAccountValue", "getPartnerReport", "getPerpMarks", "getPicture", "getProfitLeaderboard", "getPublicGoldenMarkets", "getQuestion", "getQuestionRecurringRound", "getQuestionScoreTimeline", "getRfq", "getSeries", "getSocialLeaderboard", "getSocialPerson", "getSocialPosition", "getSuggestedCombo", "getTaxonomy", "getTrader", "getTraderPnl", "getUsernameAvailability", "getVaultAgents", "getVolumeLeaderboard", "getWalletApproval", "getWithdrawal", "grantComboCopyAgent", "grantVaultAgent", "likeComment", "listAccountActivity", "listAccountPositions", "listComboCopies", "listComboFeed", "listCommentReplies", "listComments", "listControlledMakers", "listCopiedFills", "listCopyTrades", "listDiscovery", "listFollowers", "listFollowingFeed", "listFollowingPositions", "listFollows", "listHypercorePositions", "listMakerActivity", "listMakerPositions", "listMakerQuoteHistory", "listMarketTrades", "listMarkets", "listMyNotifications", "listOperations", "listPartnerFills", "listPartnerWebhookEvents", "listQuotes", "listSocialActivity", "listSocialFeed", "listSocialFollowers", "listSocialFollowing", "listSocialPositions", "listTraderPositions", "listTraderTrades", "markMyNotificationsRead", "placeGolden", "reactComment", "recordAcquisition", "recordCopiedTrade", "recordGoldenTelegramClick", "refreshPicture", "removeUploadedPicture", "requestComboCopyAgent", "requestCoreCopyAgent", "revokeComboCopyAgent", "searchCatalog", "searchTraders", "setAvatar", "setCopyAllocation", "setCopySettings", "setPublicProfile", "setUsername", "setXHandleShown", "setXPictureShown", "signGoldenGift", "stream", "streamMarkets", "switchOffComboCopyAgent", "switchOffCoreCopyAgent", "unfollowTrader", "unlikeComment", "unlockGolden", "unreactComment", "uploadPicture"];
|
|
23
23
|
readonly maker: readonly ["cancelAllQuotes", "cancelQuote", "confirmQuote", "createCollateralReduction", "createQuote", "getAccountActivity", "getAccountPosition", "getChart", "getCollateralReduction", "getDeployment", "getMakerActivity", "getMakerCapital", "getMakerExposure", "getMakerPerformance", "getMakerPosition", "getMakerQuotes", "getMakerTelemetry", "getMakerTelemetryPublication", "getMakerVaultFundingTransaction", "getMakerWithdrawal", "getMarket", "getMarketDisplay", "getMarketRecurringRound", "getMarketReferenceCloses", "getMarketResults", "getMarketRoundHistory", "getOperation", "getQuestion", "getQuestionRecurringRound", "getRfq", "getSeries", "getTaxonomy", "listAccountActivity", "listAccountPositions", "listDiscovery", "listMakerAcceptances", "listMakerActivity", "listMakerPositions", "listMakerQuoteHistory", "listMarkets", "listOperations", "listRfqs", "publishMakerTelemetry", "searchCatalog", "stream", "submitMakerSelfFundedTransaction"];
|
|
24
24
|
readonly operator: readonly ["live", "ready"];
|
|
25
25
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// Generated by scripts/generate.mjs; do not edit.
|
|
2
|
-
export const sdkVersion = "
|
|
3
|
-
export const openapiSha256 = "
|
|
4
|
-
export const realtimeSha256 = "
|
|
2
|
+
export const sdkVersion = "282.0.0-no-intent-errors";
|
|
3
|
+
export const openapiSha256 = "47db60764499d2fc83e8bdfe7dbc299db969190a7d3a8661a4ebff278f08b77f";
|
|
4
|
+
export const realtimeSha256 = "f85e0ee178b1aa88dae8ec44f97acd829a1f6308ea601ded2e0809dcf9e35168";
|
|
5
5
|
export const jsonSchemaSha256 = {
|
|
6
6
|
"account.schema.json": "3120357249f55f8481d5afb7a99112f803c22c6a1cbe3adadca478bb313f8160",
|
|
7
7
|
"comments.schema.json": "5773471b4442ba9d8af0dc012d71561baaf50d0e1c2571039241780848edb4a4",
|
|
8
8
|
"common.schema.json": "e7b414609c7eefa2e649882d251290993832aa484eddce41fda472af9b7ca40b",
|
|
9
9
|
"core-exit.schema.json": "6208a8dc775e8a9f858ec802e9b013a3e2363279a7b24ff7dfecf89fe0462eb9",
|
|
10
|
-
"error.schema.json": "
|
|
10
|
+
"error.schema.json": "48b22a54961612526f4aaa81a569a2f704d3ffe095346fd2e6d6082dfeb8fa6d",
|
|
11
11
|
"hypercore.schema.json": "38685dc8ee900f9d1c7d1eeda40cc622bc74a10d7dd702163085ab1e0c1437e3",
|
|
12
12
|
"identity.schema.json": "06d5d3f175761af1f96c2367524ee5f736325c78999f471accfd9662bfa85373",
|
|
13
13
|
"maker-access.schema.json": "49698ee0235e42064aae0397db1e0f646bdc10d9dfa10121714ba06dd69fee3b",
|
|
@@ -16,7 +16,7 @@ export const jsonSchemaSha256 = {
|
|
|
16
16
|
"market-data.schema.json": "fd00eaf6524d25019db1dce6c20a3c6f0b9786608583aa6bd1cc14cd2388702f",
|
|
17
17
|
"product-metadata.schema.json": "7c8ffbde878a0aedaed16814fcfd2e80038054b140886cc8736bb7b508042631",
|
|
18
18
|
"quote.schema.json": "5c16a54c428656a4e8c1042b2057ce8290e6eebcc02b237f5dce7e4c13b7ded0",
|
|
19
|
-
"realtime.schema.json": "
|
|
19
|
+
"realtime.schema.json": "f85e0ee178b1aa88dae8ec44f97acd829a1f6308ea601ded2e0809dcf9e35168",
|
|
20
20
|
"social.schema.json": "98e5c2a3159e5833e9af5e776231875bc42133144476e771e73575cec3f36380"
|
|
21
21
|
};
|
|
22
22
|
export const operations = {
|
|
@@ -42,6 +42,7 @@ export const operations = {
|
|
|
42
42
|
"createWalletChallenge",
|
|
43
43
|
"createWalletSession",
|
|
44
44
|
"createWithdrawal",
|
|
45
|
+
"declineGolden",
|
|
45
46
|
"deleteComment",
|
|
46
47
|
"editComment",
|
|
47
48
|
"endWalletSession",
|
package/dist/realtime.d.ts
CHANGED
|
@@ -13,7 +13,8 @@ export type RealtimeDrain = components["schemas"]["DrainFrame"];
|
|
|
13
13
|
export type RealtimeMarketRefresh = components["schemas"]["MarketRefresh"];
|
|
14
14
|
export type RealtimePublication = components["schemas"]["PublicationFrame"];
|
|
15
15
|
export type RealtimeReadInvalidation = components["schemas"]["ReadInvalidatedFrame"];
|
|
16
|
-
export type
|
|
16
|
+
export type RealtimeGoldenUpdated = components["schemas"]["GoldenUpdatedFrame"];
|
|
17
|
+
export type RealtimeFrame = RealtimeReadInvalidation | RealtimePublication | RealtimeSubscriptionResponse | RealtimeSnapshot | RealtimeEvent | RealtimeReset | RealtimeDrain | RealtimeMarketRefresh | RealtimeGoldenUpdated;
|
|
17
18
|
type WebSocketConstructor = new (url: string, protocols?: string | string[]) => WebSocket;
|
|
18
19
|
/** A raw socket with the reviewed subprotocols. `TotalisStream` adds the subscribe frame, replay and reconnect. */
|
|
19
20
|
export declare function createRealtimeSocket(environment: PublicEnvironment, accessToken: string, Socket?: WebSocketConstructor): WebSocket;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@totalis/hip4-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.128.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": [
|
|
@@ -62,7 +62,8 @@
|
|
|
62
62
|
},
|
|
63
63
|
"scripts": {
|
|
64
64
|
"generate": "node scripts/generate.mjs",
|
|
65
|
-
"
|
|
65
|
+
"prepare": "node scripts/generate.mjs",
|
|
66
|
+
"check": "node scripts/generate.mjs && node scripts/changes.mjs && node scripts/compatibility.mjs && tsc --noEmit -p tsconfig.test.json",
|
|
66
67
|
"build": "npm run generate && tsc",
|
|
67
68
|
"test": "node scripts/check-test-clock.mjs && npm run build && node scripts/test-runtimes.mjs",
|
|
68
69
|
"test:node": "node scripts/check-test-clock.mjs && npm run build && node --import ./test/setup.mjs --test test/*.test.mjs",
|