@totalis/hip4-client 0.128.0 → 0.129.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 +91 -0
- package/README.md +7 -1
- package/dist/book-walk.d.ts +221 -0
- package/dist/book-walk.js +336 -0
- package/dist/client.d.ts +6 -3
- package/dist/client.js +5 -2
- package/dist/generated/browse.d.ts +14 -1
- package/dist/generated/client.d.ts +4 -1
- package/dist/generated/errors.d.ts +3 -0
- package/dist/generated/errors.js +30 -0
- package/dist/generated/maker.d.ts +2 -1
- package/dist/generated/openapi.d.ts +422 -17
- package/dist/generated/realtime.d.ts +6 -6
- package/dist/generated/version.d.ts +7 -7
- package/dist/generated/version.js +9 -5
- package/dist/money.d.ts +102 -0
- package/dist/money.js +125 -0
- package/dist/outcome-fees.d.ts +56 -0
- package/dist/outcome-fees.js +70 -0
- package/dist/shown.d.ts +39 -0
- package/dist/shown.js +70 -0
- package/dist/singles.d.ts +35 -4
- package/dist/singles.js +26 -25
- package/dist/totalis.d.ts +12 -0
- package/dist/totalis.js +27 -4
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -5,13 +5,16 @@ export type { components, operations, paths } from "./generated/client.js";
|
|
|
5
5
|
export type { AccessToken, ApiClientOptions, PublicEnvironment } from "./base.js";
|
|
6
6
|
/** The typed HTTP client for the `client` audience. `createTotalis` adds the flows. */
|
|
7
7
|
export declare function createClient(environment: PublicEnvironment, options?: ApiClientOptions): import("openapi-fetch").Client<paths, `${string}/${string}`>;
|
|
8
|
-
export { bestBid, bestQuote, createTotalis, defaultWalletApproval, EntryError, entryFailure, follow, fundWindowMs, WalletApprovalError, type Acceptance, type AcceptanceResult, type Amount, type ApprovalListener, type BridgeState, type ComboCash, type CashoutBid, type Chooser, type Deployment, type DepositAccepted, type EntryCash, type EntryFailure, type EntryQuote, type KnownWalletApproval, type LandedWalletApproval, type SignedWalletApproval, type WalletApproval, type WalletApprovalRequest, type CoreExit, type LegacySignedEntry, type Leg, type MarketFilters, type MarketRow, type PreparedEntryFunding, type NotAdmitted, type RecordListener, type Operation, type Quote, type ResponseOf, type SellBackQuote, type SignedAcceptance, type SignedCashout, type SignedCoreExit, type SignedDeposit, type SignedEntry, type SignedReturnToCore, type Totalis, type TotalisOptions, type WalletCall, type Withdrawal, } from "./totalis.js";
|
|
8
|
+
export { bestBid, bestNetQuote, bestQuote, createTotalis, defaultWalletApproval, EntryError, entryFailure, follow, fundWindowMs, WalletApprovalError, type Acceptance, type AcceptanceResult, type Amount, type ApprovalListener, type BridgeState, type ComboCash, type CashoutBid, type Chooser, type Deployment, type DepositAccepted, type EntryCash, type EntryFailure, type EntryQuote, type KnownWalletApproval, type LandedWalletApproval, type SignedWalletApproval, type WalletApproval, type WalletApprovalRequest, type CoreExit, type LegacySignedEntry, type Leg, type MarketFilters, type MarketRow, type PreparedEntryFunding, type NotAdmitted, type RecordListener, type Operation, type Quote, type ResponseOf, type SellBackQuote, type SignedAcceptance, type SignedCashout, type SignedCoreExit, type SignedDeposit, type SignedEntry, type SignedReturnToCore, type Totalis, type TotalisOptions, type WalletCall, type Withdrawal, } from "./totalis.js";
|
|
9
9
|
export { bridgeAction, bridgeGasBuffer, classifyHypercoreAnswer, coreSetupFee, hyperevmUsdcBridge, hyperliquidExchange, hyperliquidInfo, hyperliquidNetwork, hypercoreNonce, hypercoreSignature, readCoreCash, sendAssetTypedData, settleHypercore, signSendAsset, submitHypercore, usdcText, type BridgedCash, type CoreAccountMode, type CoreCash, type HypercoreAnswer, type HyperliquidInfo, type HypercoreSignature, type HypercoreTransport, type HyperliquidNetwork, type SendAssetAction, type SignedSendAsset, } from "./hypercore.js";
|
|
10
|
-
export { approveAgentAction, approveAgentTypedData, approveBuilderFeeTypedData, approveHyperliquidAgent, approveTotalisBuilder, approveTotalisBuilderAction, cancelSingles, l1ActionHash, l1TypedData, outcomeAsset, outcomeCoin, placeSingle, readSingleOrder, readTotalisBuilderFee, signL1Action, singleCancelAction, singleCancelAnswers, singleCloid, singleOrderAction, singleOrderAnswer, submitSingleCancel, submitSingleOrder, totalisBuilder, type ApproveAgentAction, type ApproveBuilderFeeAction, type CancelByCloidAction, type CancelByOidAction, type ExchangeOptions, type L1Options, type OutcomeSide, type SignedL1Action, type SignedUserAction, type SingleAction, type SingleCancel, type SingleCancelAction, type SingleCancelAnswer, type SingleOrder, type SingleOrderAction, type SingleOrderAnswer, type SingleOrderStatus, type SingleTif, } from "./singles.js";
|
|
10
|
+
export { approveAgentAction, approveAgentTypedData, approveBuilderFeeTypedData, approveHyperliquidAgent, approveTotalisBuilder, approveTotalisBuilderAction, cancelSingles, l1ActionHash, l1TypedData, outcomeAsset, outcomeCoin, placeSingle, readSingleOrder, readTotalisBuilderFee, signL1Action, singleCancelAction, singleCancelAnswers, singleCloid, singleOrderAction, singleOrderAnswer, submitSingleCancel, submitSingleOrder, totalisBuilder, type ApproveAgentAction, type ApproveBuilderFeeAction, type CancelByCloidAction, type CancelByOidAction, type ExchangeOptions, type L1Options, type OutcomeSide, type SignedL1Action, type SignedUserAction, type SingleAction, type SingleCancel, type SingleCancelAction, type SingleCancelAnswer, type SingleOrder, type SingleOrderAction, type SingleOrderAnswer, type SingleOrderStatus, type SingleTif, type SingleOrderActionWithoutBuilder, } from "./singles.js";
|
|
11
11
|
export { ApiError, envelope, NetworkError, randomBytes32, rawBody, retryingFetch, sendOnce, unwrap, uuidv7, type Fetch, type Repaired, type RetryPolicy } from "./request.js";
|
|
12
12
|
export { items, pages, type Page, type PageQuery } from "./pagination.js";
|
|
13
13
|
export { toTotalisSigner, type SignerInput, type TotalisSigner } from "./signer.js";
|
|
14
14
|
export { BalanceUnknownError, ExitUnavailableError, normalizeError, type NormalizedError } from "./flow-errors.js";
|
|
15
|
-
export { comboAllowance, netCashout, netOfProfitFee, netPayout, netStake, offeredCore, spendableCash } from "./money.js";
|
|
15
|
+
export { activationTopUp, afterActivation, centAmount, comboAllowance, coreAtomsFloor, coreShortfall, coreUnits, decimalUnits, directBuyBudget, directBuyVault, fundable, maxStake, netCashout, netOfProfitFee, netPayout, netStake, offeredCore, sendableAfterSetup, spendableCash, stakeAfterSetup, sweepAmount, usdCents, usdcCent, walletDepositable, walletSweepMinimum, withdrawRoom, type ComboSources, type UsdKind, } from "./money.js";
|
|
16
|
+
export { beforeBuilderFee, closingFees, guestFees, pairPayout, parseUserFees, saleProceeds, saleRate, settledPayout, withBuilderFee, type AccountFees, type FeeRate, type MarketFeeScale, type OutcomeFees, } from "./outcome-fees.js";
|
|
17
|
+
export { actualOrderFill, bookPreview, bookTop, buyCost, executionPrice, filledCoreUnits, limitPreview, maxCost, minOrderNotional, minProceeds, orderCoreNeed, orderReceipt, orderVaultNeed, othersBook, priceUnits, sellProceeds, settledFill, wholeShares, type BookLevel, type BookPreview, type Fill, type OrderFill, type OrderPreview, type OrderRefusal, type OwnOrder, type PricedOrder, type SignedTerms, type SingleBook, } from "./book-walk.js";
|
|
18
|
+
export { boundLimit, ShownHistory, shownFloor, shownLookbackMs, type ShownValue } from "./shown.js";
|
|
16
19
|
export { createUiAdapter, type AccountResource, type QuoteView, type UiAdapter, type UiAdapterOptions } from "./ui.js";
|
|
17
20
|
export { StreamClosedError, TotalisStream, type StreamEvent, type StreamOptions, type StreamStatus, type StreamSubscription } from "./stream.js";
|
package/dist/client.js
CHANGED
|
@@ -4,13 +4,16 @@ export { publicServers, publicStreamServers } from "./base.js";
|
|
|
4
4
|
export function createClient(environment, options) {
|
|
5
5
|
return audienceClient(environment, options);
|
|
6
6
|
}
|
|
7
|
-
export { bestBid, bestQuote, createTotalis, defaultWalletApproval, EntryError, entryFailure, follow, fundWindowMs, WalletApprovalError, } from "./totalis.js";
|
|
7
|
+
export { bestBid, bestNetQuote, bestQuote, createTotalis, defaultWalletApproval, EntryError, entryFailure, follow, fundWindowMs, WalletApprovalError, } from "./totalis.js";
|
|
8
8
|
export { bridgeAction, bridgeGasBuffer, classifyHypercoreAnswer, coreSetupFee, hyperevmUsdcBridge, hyperliquidExchange, hyperliquidInfo, hyperliquidNetwork, hypercoreNonce, hypercoreSignature, readCoreCash, sendAssetTypedData, settleHypercore, signSendAsset, submitHypercore, usdcText, } from "./hypercore.js";
|
|
9
9
|
export { approveAgentAction, approveAgentTypedData, approveBuilderFeeTypedData, approveHyperliquidAgent, approveTotalisBuilder, approveTotalisBuilderAction, cancelSingles, l1ActionHash, l1TypedData, outcomeAsset, outcomeCoin, placeSingle, readSingleOrder, readTotalisBuilderFee, signL1Action, singleCancelAction, singleCancelAnswers, singleCloid, singleOrderAction, singleOrderAnswer, submitSingleCancel, submitSingleOrder, totalisBuilder, } from "./singles.js";
|
|
10
10
|
export { ApiError, envelope, NetworkError, randomBytes32, rawBody, retryingFetch, sendOnce, unwrap, uuidv7 } from "./request.js";
|
|
11
11
|
export { items, pages } from "./pagination.js";
|
|
12
12
|
export { toTotalisSigner } from "./signer.js";
|
|
13
13
|
export { BalanceUnknownError, ExitUnavailableError, normalizeError } from "./flow-errors.js";
|
|
14
|
-
export { comboAllowance, netCashout, netOfProfitFee, netPayout, netStake, offeredCore, spendableCash } from "./money.js";
|
|
14
|
+
export { activationTopUp, afterActivation, centAmount, comboAllowance, coreAtomsFloor, coreShortfall, coreUnits, decimalUnits, directBuyBudget, directBuyVault, fundable, maxStake, netCashout, netOfProfitFee, netPayout, netStake, offeredCore, sendableAfterSetup, spendableCash, stakeAfterSetup, sweepAmount, usdCents, usdcCent, walletDepositable, walletSweepMinimum, withdrawRoom, } from "./money.js";
|
|
15
|
+
export { beforeBuilderFee, closingFees, guestFees, pairPayout, parseUserFees, saleProceeds, saleRate, settledPayout, withBuilderFee, } from "./outcome-fees.js";
|
|
16
|
+
export { actualOrderFill, bookPreview, bookTop, buyCost, executionPrice, filledCoreUnits, limitPreview, maxCost, minOrderNotional, minProceeds, orderCoreNeed, orderReceipt, orderVaultNeed, othersBook, priceUnits, sellProceeds, settledFill, wholeShares, } from "./book-walk.js";
|
|
17
|
+
export { boundLimit, ShownHistory, shownFloor, shownLookbackMs } from "./shown.js";
|
|
15
18
|
export { createUiAdapter } from "./ui.js";
|
|
16
19
|
export { StreamClosedError, TotalisStream } from "./stream.js";
|
|
@@ -70,6 +70,7 @@ export type components = {
|
|
|
70
70
|
*/
|
|
71
71
|
readonly combo?: true;
|
|
72
72
|
readonly display?: components["schemas"]["DisplayQuery"];
|
|
73
|
+
readonly light?: components["schemas"]["LightQuery"];
|
|
73
74
|
} & ({
|
|
74
75
|
readonly category: components["schemas"]["CategorySlug"];
|
|
75
76
|
} | {
|
|
@@ -100,6 +101,7 @@ export type components = {
|
|
|
100
101
|
readonly limit?: components["schemas"]["PageLimit"];
|
|
101
102
|
readonly cursor?: components["schemas"]["PageCursor"];
|
|
102
103
|
readonly display?: components["schemas"]["DisplayQuery"];
|
|
104
|
+
readonly light?: components["schemas"]["LightQuery"];
|
|
103
105
|
} & ({
|
|
104
106
|
readonly category: components["schemas"]["CategorySlug"];
|
|
105
107
|
} | {
|
|
@@ -261,6 +263,11 @@ export type components = {
|
|
|
261
263
|
* @constant
|
|
262
264
|
*/
|
|
263
265
|
readonly DisplayQuery: true;
|
|
266
|
+
/**
|
|
267
|
+
* @description Only beside display=true: also answer each picture's `light_variants`, its rendition for light grounds, where imagery has one. Send it only as true; any other value, or light without display, returns 400 INVALID_QUERY. It is no filter: a cursor neither binds nor needs it.
|
|
268
|
+
* @constant
|
|
269
|
+
*/
|
|
270
|
+
readonly LightQuery: true;
|
|
264
271
|
/** @enum {string} */
|
|
265
272
|
readonly MarketState: "ACTIVE" | "CLOSED" | "UNSUPPORTED";
|
|
266
273
|
readonly Category: ("Crypto" | "Economics" | "Entertainment" | "Esports" | "Finance" | "Politics" | "Sports" | "Tech" | "Weather") | null;
|
|
@@ -844,12 +851,18 @@ export type components = {
|
|
|
844
851
|
* @enum {string}
|
|
845
852
|
*/
|
|
846
853
|
readonly fit: "ICON" | "PHOTO";
|
|
847
|
-
/** @description Square WebP renditions at 64, 128 and 256 pixels, in that order. Their URLs never change content. */
|
|
854
|
+
/** @description Square WebP renditions at 64, 128 and 256 pixels, in that order. Their URLs never change content. Drawn on dark grounds, and on light ones where `light_variants` is absent. */
|
|
848
855
|
readonly variants: readonly [
|
|
849
856
|
components["schemas"]["PictureVariant"],
|
|
850
857
|
components["schemas"]["PictureVariant"],
|
|
851
858
|
components["schemas"]["PictureVariant"]
|
|
852
859
|
];
|
|
860
|
+
/** @description Only when asked with light=true: the same sizes drawn on light grounds, for artwork that vanishes there (a white mark); absent where `variants` read on any ground. */
|
|
861
|
+
readonly light_variants?: readonly [
|
|
862
|
+
components["schemas"]["PictureVariant"],
|
|
863
|
+
components["schemas"]["PictureVariant"],
|
|
864
|
+
components["schemas"]["PictureVariant"]
|
|
865
|
+
];
|
|
853
866
|
/** @description The image's chromatic colors, most used first, for team and chart line colors; absent where imagery recorded none. A line wears its side's `own` subject's palette when that subject has an image, or, when it is a chart's only line and its side's own subject has none, `market`'s; a line whose `pick` is a glyph wears none. */
|
|
854
867
|
readonly palette?: readonly [
|
|
855
868
|
components["schemas"]["OklchColor"],
|
|
@@ -19,6 +19,8 @@ export type paths = {
|
|
|
19
19
|
readonly "/v1/hypercore/portfolio": Pick<SharedPaths["/v1/hypercore/portfolio"], "parameters" | "get">;
|
|
20
20
|
readonly "/v1/hypercore/settlement-credits": Pick<SharedPaths["/v1/hypercore/settlement-credits"], "parameters" | "get">;
|
|
21
21
|
readonly "/v1/hypercore/orders": Pick<SharedPaths["/v1/hypercore/orders"], "parameters" | "get">;
|
|
22
|
+
readonly "/v1/hypercore/orders/{cloid}": Pick<SharedPaths["/v1/hypercore/orders/{cloid}"], "parameters" | "get">;
|
|
23
|
+
readonly "/v1/hypercore/order-history": Pick<SharedPaths["/v1/hypercore/order-history"], "parameters" | "get">;
|
|
22
24
|
readonly "/v1/hypercore/positions": Pick<SharedPaths["/v1/hypercore/positions"], "parameters" | "get">;
|
|
23
25
|
readonly "/v1/me": Pick<SharedPaths["/v1/me"], "parameters" | "get">;
|
|
24
26
|
readonly "/v1/me/embedded-wallet": Pick<SharedPaths["/v1/me/embedded-wallet"], "parameters" | "post">;
|
|
@@ -131,6 +133,7 @@ export type paths = {
|
|
|
131
133
|
readonly "/v1/perp-marks": Pick<SharedPaths["/v1/perp-marks"], "parameters" | "get">;
|
|
132
134
|
readonly "/v1/charts/{series}": Pick<SharedPaths["/v1/charts/{series}"], "parameters" | "get">;
|
|
133
135
|
readonly "/v1/live-marks": Pick<SharedPaths["/v1/live-marks"], "parameters" | "get">;
|
|
136
|
+
readonly "/v1/polymarket/markets/{outcome_id}": Pick<SharedPaths["/v1/polymarket/markets/{outcome_id}"], "parameters" | "get">;
|
|
134
137
|
readonly "/v1/rfqs/{rfq_id}": Pick<SharedPaths["/v1/rfqs/{rfq_id}"], "parameters" | "get">;
|
|
135
138
|
readonly "/v1/rfqs/{rfq_id}/cancel": Pick<SharedPaths["/v1/rfqs/{rfq_id}/cancel"], "parameters" | "post">;
|
|
136
139
|
readonly "/v1/me/balances": Pick<SharedPaths["/v1/me/balances"], "parameters" | "get">;
|
|
@@ -153,4 +156,4 @@ export type paths = {
|
|
|
153
156
|
readonly "/v1/makers/{maker_id}/exposure": Pick<SharedPaths["/v1/makers/{maker_id}/exposure"], "parameters" | "get">;
|
|
154
157
|
readonly "/v1/makers/{maker_id}/performance": Pick<SharedPaths["/v1/makers/{maker_id}/performance"], "parameters" | "get">;
|
|
155
158
|
};
|
|
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">;
|
|
159
|
+
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" | "getHypercoreOrderHistory" | "getHypercoreOrderProof" | "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" | "getPolymarketMarket" | "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">;
|
|
@@ -605,6 +605,8 @@ export declare const operationErrors: {
|
|
|
605
605
|
readonly getGoldenOffer: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY", "NOT_FOUND", "QUOTE_EXPIRED", "CONTRACT_UNAVAILABLE", "FINANCIAL_ACTIONS_DISABLED", "GOLDEN_UNLOCK_REQUIRED", "GOLDEN_TICKET_EXPIRED", "INTERNAL_ERROR"];
|
|
606
606
|
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", "INTERNAL_ERROR"];
|
|
607
607
|
readonly getHypercoreBalance: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "INVALID_REQUEST", "IDENTITY_NOT_FOUND", "INTERNAL_ERROR"];
|
|
608
|
+
readonly getHypercoreOrderHistory: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "INVALID_REQUEST", "IDENTITY_NOT_FOUND", "INTERNAL_ERROR"];
|
|
609
|
+
readonly getHypercoreOrderProof: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "INVALID_QUERY", "INVALID_REQUEST", "IDENTITY_NOT_FOUND", "INTERNAL_ERROR"];
|
|
608
610
|
readonly getHypercoreOrders: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "INVALID_REQUEST", "IDENTITY_NOT_FOUND", "INTERNAL_ERROR"];
|
|
609
611
|
readonly getHypercorePortfolio: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "IDENTITY_NOT_FOUND", "INTERNAL_ERROR"];
|
|
610
612
|
readonly getHypercoreSettlementCredits: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "IDENTITY_NOT_FOUND", "INTERNAL_ERROR"];
|
|
@@ -642,6 +644,7 @@ export declare const operationErrors: {
|
|
|
642
644
|
readonly getPerpMarks: readonly ["NOT_FOUND", "MARKET_DATA_UNAVAILABLE", "INVALID_QUERY", "INTERNAL_ERROR"];
|
|
643
645
|
readonly getPersonalApiKeyCapabilities: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND", "INTERNAL_ERROR"];
|
|
644
646
|
readonly getPicture: readonly ["NOT_FOUND", "RATE_LIMITED", "SOURCE_UNAVAILABLE", "INTERNAL_ERROR"];
|
|
647
|
+
readonly getPolymarketMarket: readonly ["INVALID_REQUEST", "NOT_FOUND", "MARKET_DATA_UNAVAILABLE", "INVALID_QUERY", "INTERNAL_ERROR"];
|
|
645
648
|
readonly getProfitLeaderboard: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_QUERY", "CONTRACT_UNAVAILABLE", "IDENTITY_NOT_FOUND", "INTERNAL_ERROR"];
|
|
646
649
|
readonly getPublicGoldenMarkets: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_QUERY", "CONTRACT_UNAVAILABLE", "BROWSE_UNAVAILABLE", "INTERNAL_ERROR"];
|
|
647
650
|
readonly getQuestion: readonly ["INVALID_REQUEST", "NOT_FOUND", "MARKET_DATA_UNAVAILABLE", "INVALID_QUERY", "INTERNAL_ERROR"];
|
package/dist/generated/errors.js
CHANGED
|
@@ -1326,6 +1326,29 @@ export const operationErrors = {
|
|
|
1326
1326
|
"IDENTITY_NOT_FOUND",
|
|
1327
1327
|
"INTERNAL_ERROR"
|
|
1328
1328
|
],
|
|
1329
|
+
"getHypercoreOrderHistory": [
|
|
1330
|
+
"UNAUTHENTICATED",
|
|
1331
|
+
"FORBIDDEN",
|
|
1332
|
+
"AUTHORIZATION_UNAVAILABLE",
|
|
1333
|
+
"DEPENDENCY_STALE",
|
|
1334
|
+
"RATE_LIMITED",
|
|
1335
|
+
"ORIGIN_REQUIRED",
|
|
1336
|
+
"INVALID_REQUEST",
|
|
1337
|
+
"IDENTITY_NOT_FOUND",
|
|
1338
|
+
"INTERNAL_ERROR"
|
|
1339
|
+
],
|
|
1340
|
+
"getHypercoreOrderProof": [
|
|
1341
|
+
"UNAUTHENTICATED",
|
|
1342
|
+
"FORBIDDEN",
|
|
1343
|
+
"AUTHORIZATION_UNAVAILABLE",
|
|
1344
|
+
"DEPENDENCY_STALE",
|
|
1345
|
+
"RATE_LIMITED",
|
|
1346
|
+
"ORIGIN_REQUIRED",
|
|
1347
|
+
"INVALID_QUERY",
|
|
1348
|
+
"INVALID_REQUEST",
|
|
1349
|
+
"IDENTITY_NOT_FOUND",
|
|
1350
|
+
"INTERNAL_ERROR"
|
|
1351
|
+
],
|
|
1329
1352
|
"getHypercoreOrders": [
|
|
1330
1353
|
"UNAUTHENTICATED",
|
|
1331
1354
|
"FORBIDDEN",
|
|
@@ -1684,6 +1707,13 @@ export const operationErrors = {
|
|
|
1684
1707
|
"SOURCE_UNAVAILABLE",
|
|
1685
1708
|
"INTERNAL_ERROR"
|
|
1686
1709
|
],
|
|
1710
|
+
"getPolymarketMarket": [
|
|
1711
|
+
"INVALID_REQUEST",
|
|
1712
|
+
"NOT_FOUND",
|
|
1713
|
+
"MARKET_DATA_UNAVAILABLE",
|
|
1714
|
+
"INVALID_QUERY",
|
|
1715
|
+
"INTERNAL_ERROR"
|
|
1716
|
+
],
|
|
1687
1717
|
"getProfitLeaderboard": [
|
|
1688
1718
|
"UNAUTHENTICATED",
|
|
1689
1719
|
"FORBIDDEN",
|
|
@@ -32,6 +32,7 @@ export type paths = {
|
|
|
32
32
|
readonly "/v1/market-display": Pick<SharedPaths["/v1/market-display"], "parameters" | "get">;
|
|
33
33
|
readonly "/v1/market-results": Pick<SharedPaths["/v1/market-results"], "parameters" | "get">;
|
|
34
34
|
readonly "/v1/charts/{series}": Pick<SharedPaths["/v1/charts/{series}"], "parameters" | "get">;
|
|
35
|
+
readonly "/v1/polymarket/markets/{outcome_id}": Pick<SharedPaths["/v1/polymarket/markets/{outcome_id}"], "parameters" | "get">;
|
|
35
36
|
readonly "/v1/rfqs/{rfq_id}": Pick<SharedPaths["/v1/rfqs/{rfq_id}"], "parameters" | "get">;
|
|
36
37
|
readonly "/v1/me/operations": Pick<SharedPaths["/v1/me/operations"], "parameters" | "get">;
|
|
37
38
|
readonly "/v1/me/operations/{operation_id}": Pick<SharedPaths["/v1/me/operations/{operation_id}"], "parameters" | "get">;
|
|
@@ -46,4 +47,4 @@ export type paths = {
|
|
|
46
47
|
readonly "/v1/makers/{maker_id}/exposure": Pick<SharedPaths["/v1/makers/{maker_id}/exposure"], "parameters" | "get">;
|
|
47
48
|
readonly "/v1/makers/{maker_id}/performance": Pick<SharedPaths["/v1/makers/{maker_id}/performance"], "parameters" | "get">;
|
|
48
49
|
};
|
|
49
|
-
export type operations = Pick<SharedOperations, "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">;
|
|
50
|
+
export type operations = Pick<SharedOperations, "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" | "getPolymarketMarket" | "getQuestion" | "getQuestionRecurringRound" | "getRfq" | "getSeries" | "getTaxonomy" | "listAccountActivity" | "listAccountPositions" | "listDiscovery" | "listMakerAcceptances" | "listMakerActivity" | "listMakerPositions" | "listMakerQuoteHistory" | "listMarkets" | "listOperations" | "listRfqs" | "publishMakerTelemetry" | "searchCatalog" | "stream" | "submitMakerSelfFundedTransaction">;
|