@totalis/hip4-client 0.100.0 → 0.102.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 +41 -0
- package/dist/generated/account-read.d.ts +2 -0
- package/dist/generated/browse.d.ts +157 -0
- package/dist/generated/client.d.ts +9 -1
- package/dist/generated/errors.d.ts +8 -0
- package/dist/generated/errors.js +76 -0
- package/dist/generated/openapi.d.ts +961 -116
- package/dist/generated/version.d.ts +5 -4
- package/dist/generated/version.js +13 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,47 @@
|
|
|
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.102.0
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
|
|
10
|
+
- Partner on maker positions (TT-2811, contract `239.0.0-maker-opened-via`,
|
|
11
|
+
major 235, additive). A maker's position reads
|
|
12
|
+
(`listMakerPositions`, `getMakerPosition`) answer `opened_via`: the display
|
|
13
|
+
name of the partner whose builder code opened the position, or null when it
|
|
14
|
+
was opened without one. Always null on a personal read.
|
|
15
|
+
|
|
16
|
+
## 0.101.0
|
|
17
|
+
|
|
18
|
+
### Added
|
|
19
|
+
|
|
20
|
+
- Feed display (TT-2802, contract `238.0.0-feed-display`, major 234,
|
|
21
|
+
additive). Negotiated discovery and search (`./browse`) and
|
|
22
|
+
`getSuggestedCombo` take `display=true` and then also answer `display`
|
|
23
|
+
(`PageDisplay`): what `getMarketDisplay` answers for the page's markets or
|
|
24
|
+
the suggested legs, up to a page's 500, so a client names and pictures them
|
|
25
|
+
from that one read. A market the reader holds no display for is left out
|
|
26
|
+
of `display.outcomes`, for `getMarketDisplay` to answer. Without
|
|
27
|
+
`display=true` every answer is unchanged.
|
|
28
|
+
- Social reads (TT-2710, contract `237.0.0-social-reads`, major 233,
|
|
29
|
+
additive). A person is a user with a public profile, and every figure is
|
|
30
|
+
their account wallet's. `getSocialPerson` (`GET /v1/social/people/{username}`)
|
|
31
|
+
answers their profile with one all-time `volume` and `positions_value`;
|
|
32
|
+
`listSocialPositions` pages what they hold now (HyperCore positions on their
|
|
33
|
+
net side, Combo tickets); `getSocialPosition`
|
|
34
|
+
(`GET /v1/social/people/{username}/positions/{position}`) answers one
|
|
35
|
+
position, an outcome's episode or a ticket, with its state, money, trades
|
|
36
|
+
and their latest comment; `listSocialActivity` and `listSocialFeed` page
|
|
37
|
+
feed items (bursts of buys or sales, Combo moments) newest first;
|
|
38
|
+
`listFollowingFeed` and `listFollowingPositions` (`/v1/me/social/...`) read
|
|
39
|
+
the people the signed-in account follows; `getSocialLeaderboard` pages
|
|
40
|
+
every rank by volume or P&L with the reader's own, and takes a page's
|
|
41
|
+
`as_of` back so later pages read the same ranking (`409 CURSOR_EXPIRED`
|
|
42
|
+
once it is no longer kept). Every response names the
|
|
43
|
+
markets it mentions in `markets` with their phase and settle fraction.
|
|
44
|
+
Comments gain `positions`, their public author's ledger positions on the
|
|
45
|
+
market.
|
|
46
|
+
|
|
6
47
|
## 0.100.0
|
|
7
48
|
|
|
8
49
|
### Added
|
|
@@ -539,6 +539,8 @@ export type components = {
|
|
|
539
539
|
readonly owner: components["schemas"]["LowercaseNonZeroAddress"];
|
|
540
540
|
/** @description On a maker's read, the owner's username when the owner wallet is the account wallet of a participant whose public trader profile is on, the pair GET /v1/traders/{username} shows; otherwise null, as for a participant's other linked wallets, and always null on a personal read. */
|
|
541
541
|
readonly owner_username: components["schemas"]["Username"] | null;
|
|
542
|
+
/** @description On a maker's read, the display name of the partner whose builder code opened the position; null when it was opened without one, and always null on a personal read. */
|
|
543
|
+
readonly opened_via: string | null;
|
|
542
544
|
/**
|
|
543
545
|
* @description OPEN: not yet known eligible for settlement; AWAITING_SETTLEMENT: every leg resolved, or the payout with every unresolved leg counted as a win already rounds down to zero, but no settlement observed; SETTLED_UNCLAIMED: settled with profit still unclaimed; CLOSED: closed by zero-profit settlement, final claim or sell-back.
|
|
544
546
|
* @enum {string}
|
|
@@ -69,6 +69,7 @@ export type components = {
|
|
|
69
69
|
* @constant
|
|
70
70
|
*/
|
|
71
71
|
readonly combo?: true;
|
|
72
|
+
readonly display?: components["schemas"]["DisplayQuery"];
|
|
72
73
|
} & ({
|
|
73
74
|
readonly category: components["schemas"]["CategorySlug"];
|
|
74
75
|
} | {
|
|
@@ -98,6 +99,7 @@ export type components = {
|
|
|
98
99
|
readonly q: string;
|
|
99
100
|
readonly limit?: components["schemas"]["PageLimit"];
|
|
100
101
|
readonly cursor?: components["schemas"]["PageCursor"];
|
|
102
|
+
readonly display?: components["schemas"]["DisplayQuery"];
|
|
101
103
|
} & ({
|
|
102
104
|
readonly category: components["schemas"]["CategorySlug"];
|
|
103
105
|
} | {
|
|
@@ -115,6 +117,8 @@ export type components = {
|
|
|
115
117
|
readonly completeness: "COMPLETE" | "PARTIAL";
|
|
116
118
|
readonly partial_reason: ("CANDIDATE_LIMIT" | "VISIBILITY_CHANGED") | null;
|
|
117
119
|
readonly live: components["schemas"]["LiveCounts"];
|
|
120
|
+
/** @description Present only when the request sent display=true. */
|
|
121
|
+
readonly display?: components["schemas"]["PageDisplay"];
|
|
118
122
|
} & (unknown & unknown & unknown & unknown);
|
|
119
123
|
readonly Taxonomy: {
|
|
120
124
|
readonly publication: components["schemas"]["Publication"];
|
|
@@ -252,6 +256,11 @@ export type components = {
|
|
|
252
256
|
readonly PageLimit: number;
|
|
253
257
|
/** @description Opaque list cursor. Send a previous response's next_cursor back unchanged; never build or parse one. */
|
|
254
258
|
readonly PageCursor: string;
|
|
259
|
+
/**
|
|
260
|
+
* @description Also answer the page's market display in display, so a client names and pictures its cards from this one read. Send it only as true; any other value returns 400 INVALID_QUERY. It is no filter: a cursor neither binds nor needs it.
|
|
261
|
+
* @constant
|
|
262
|
+
*/
|
|
263
|
+
readonly DisplayQuery: true;
|
|
255
264
|
/** @enum {string} */
|
|
256
265
|
readonly MarketState: "ACTIVE" | "CLOSED" | "UNSUPPORTED";
|
|
257
266
|
readonly Category: ("Crypto" | "Economics" | "Entertainment" | "Esports" | "Finance" | "Politics" | "Sports" | "Tech" | "Weather") | null;
|
|
@@ -730,6 +739,154 @@ export type components = {
|
|
|
730
739
|
readonly count: components["schemas"]["Count"];
|
|
731
740
|
}[];
|
|
732
741
|
};
|
|
742
|
+
readonly OutcomeNativeQuestion: {
|
|
743
|
+
/** @description Hyperliquid question ID; null for an outcome known only from a settlement record that names its question without the ID. */
|
|
744
|
+
readonly native_question_id: components["schemas"]["RealQuestionId"] | null;
|
|
745
|
+
/** @description Native question name, for example template:sportsContestResult. */
|
|
746
|
+
readonly name: string;
|
|
747
|
+
/** @description Native question description. */
|
|
748
|
+
readonly description: string;
|
|
749
|
+
};
|
|
750
|
+
/** @description The outcome exactly as Hyperliquid listed it in the last catalog Totalis recorded it in (the current one while it is listed) or, for an outcome no kept catalog copy holds, as Hyperliquid's settlement record names it. */
|
|
751
|
+
readonly OutcomeNative: {
|
|
752
|
+
/** @description Native outcome name, for example template:sportsContestWinner or Recurring. */
|
|
753
|
+
readonly name: string;
|
|
754
|
+
/** @description Native outcome description; a template instance holds its keyword values as key:value pairs separated by a vertical bar. */
|
|
755
|
+
readonly description: string;
|
|
756
|
+
/** @description Native side names, Yes then No, as listed (template:Yes, template:{shortNameA}); null where the copy Totalis kept predates side names. */
|
|
757
|
+
readonly side_names: readonly [
|
|
758
|
+
string,
|
|
759
|
+
string
|
|
760
|
+
] | null;
|
|
761
|
+
/** @description The question the outcome belongs to, from the same catalog; null for a standalone outcome. */
|
|
762
|
+
readonly question: components["schemas"]["OutcomeNativeQuestion"] | null;
|
|
763
|
+
};
|
|
764
|
+
/** @description An imagery subject's key: its kind, a colon and its normalized name, such as team:detroit lions. */
|
|
765
|
+
readonly SubjectKey: string;
|
|
766
|
+
readonly PictureSubject: {
|
|
767
|
+
/**
|
|
768
|
+
* @description SUBJECT: a subject described once in the answer's `subjects`.
|
|
769
|
+
* @constant
|
|
770
|
+
*/
|
|
771
|
+
readonly type: "SUBJECT";
|
|
772
|
+
/** @description The subject's key in `subjects`. */
|
|
773
|
+
readonly key: components["schemas"]["SubjectKey"];
|
|
774
|
+
};
|
|
775
|
+
readonly PictureGlyph: {
|
|
776
|
+
/**
|
|
777
|
+
* @description GLYPH: a mark of the client's own, never artwork.
|
|
778
|
+
* @constant
|
|
779
|
+
*/
|
|
780
|
+
readonly type: "GLYPH";
|
|
781
|
+
/**
|
|
782
|
+
* @description DRAW: a contest's draw outcome. TOTAL: an over/under line, drawn as Over for Yes and Under for No where the side is known.
|
|
783
|
+
* @enum {string}
|
|
784
|
+
*/
|
|
785
|
+
readonly glyph: "DRAW" | "TOTAL";
|
|
786
|
+
};
|
|
787
|
+
readonly Picture: components["schemas"]["PictureSubject"] | components["schemas"]["PictureGlyph"];
|
|
788
|
+
/** @description Finished pictures for each place an outcome is drawn. null: nothing to picture there; a caller that needs a picture draws a coin from the title's initials. */
|
|
789
|
+
readonly OutcomePictures: {
|
|
790
|
+
/** @description The market as a whole, for a card or a header: its question's subject, or the TOTAL glyph for an over/under line. */
|
|
791
|
+
readonly market: components["schemas"]["Picture"] | null;
|
|
792
|
+
/** @description Holding or buying Yes, then No: the side's own subject when it has an image, else the question's subject when it has one, else whichever of them is known (drawn as its coin). A draw carries the DRAW glyph, an over/under line the TOTAL glyph. */
|
|
793
|
+
readonly pick: readonly [
|
|
794
|
+
components["schemas"]["Picture"] | null,
|
|
795
|
+
components["schemas"]["Picture"] | null
|
|
796
|
+
];
|
|
797
|
+
/** @description Holding or buying the outcome before a side is chosen, by the same rule as `pick` with the option's own subject only: a winner's or spread's sides are its teams, so with no side it shows the question's subject. */
|
|
798
|
+
readonly pick_no_side: components["schemas"]["Picture"] | null;
|
|
799
|
+
/** @description Yes's and No's own subject with no fallback: the team a side of a winner or spread backs, or the option's own subject (a team, a candidate); null where the side has none. Never a glyph. */
|
|
800
|
+
readonly own: readonly [
|
|
801
|
+
components["schemas"]["Picture"] | null,
|
|
802
|
+
components["schemas"]["Picture"] | null
|
|
803
|
+
];
|
|
804
|
+
/** @description The outcome as one option in its question's list: its own subject when it has an image, the DRAW glyph, or, for an option with no subject of its own (Other), the question's subject when it has an image and another option of the question has an image of its own; else null. Decided from the whole question, so a row reads the same alone as in its list. Its subject always has an image; show a list's picture column only while some row has a subject. */
|
|
805
|
+
readonly row: components["schemas"]["Picture"] | null;
|
|
806
|
+
/** @description Participant A's and B's subjects in the outcome's sport when its keywords name both (a game's winner, spread or total, or an option of a contest between them); null otherwise. */
|
|
807
|
+
readonly teams: readonly [
|
|
808
|
+
components["schemas"]["PictureSubject"] | null,
|
|
809
|
+
components["schemas"]["PictureSubject"] | null
|
|
810
|
+
] | null;
|
|
811
|
+
};
|
|
812
|
+
readonly OutcomeDisplay: {
|
|
813
|
+
/** @description Hyperliquid outcome ID. */
|
|
814
|
+
readonly outcome_id: components["schemas"]["UInt32String"];
|
|
815
|
+
/** @description English display title, the market's `title`. */
|
|
816
|
+
readonly title: string;
|
|
817
|
+
/** @description The outcome as Hyperliquid listed it, for a client that names markets itself. */
|
|
818
|
+
readonly native: components["schemas"]["OutcomeNative"];
|
|
819
|
+
/** @description Finished pictures for each place the outcome is drawn. */
|
|
820
|
+
readonly pictures: components["schemas"]["OutcomePictures"];
|
|
821
|
+
};
|
|
822
|
+
readonly PictureVariant: {
|
|
823
|
+
/**
|
|
824
|
+
* @description Width and height in pixels.
|
|
825
|
+
* @enum {integer}
|
|
826
|
+
*/
|
|
827
|
+
readonly size: 64 | 128 | 256;
|
|
828
|
+
/** @description Public WebP image URL. */
|
|
829
|
+
readonly url: string;
|
|
830
|
+
};
|
|
831
|
+
readonly OklchColor: {
|
|
832
|
+
/** @description Oklch lightness, 0 to 1. */
|
|
833
|
+
readonly l: number;
|
|
834
|
+
/** @description Oklch chroma. */
|
|
835
|
+
readonly c: number;
|
|
836
|
+
/** @description Hue in degrees. */
|
|
837
|
+
readonly h: number;
|
|
838
|
+
};
|
|
839
|
+
readonly SubjectImage: {
|
|
840
|
+
/**
|
|
841
|
+
* @description ICON: a logo inset on a transparent square, drawn whole. PHOTO: a photo that fills its circle.
|
|
842
|
+
* @enum {string}
|
|
843
|
+
*/
|
|
844
|
+
readonly fit: "ICON" | "PHOTO";
|
|
845
|
+
/** @description Square WebP renditions at 64, 128 and 256 pixels, in that order. Their URLs never change content. */
|
|
846
|
+
readonly variants: readonly [
|
|
847
|
+
components["schemas"]["PictureVariant"],
|
|
848
|
+
components["schemas"]["PictureVariant"],
|
|
849
|
+
components["schemas"]["PictureVariant"]
|
|
850
|
+
];
|
|
851
|
+
/** @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. */
|
|
852
|
+
readonly palette?: readonly [
|
|
853
|
+
components["schemas"]["OklchColor"],
|
|
854
|
+
...components["schemas"]["OklchColor"][]
|
|
855
|
+
];
|
|
856
|
+
};
|
|
857
|
+
readonly Subject: {
|
|
858
|
+
/** @description The subject's name, for alternative text. */
|
|
859
|
+
readonly label: string;
|
|
860
|
+
/** @description The subject's short mark, drawn on a coin when it has no image, while its image loads or when it fails. */
|
|
861
|
+
readonly monogram: string;
|
|
862
|
+
/** @description The subject's artwork; null for a known subject without any, drawn as its coin. */
|
|
863
|
+
readonly image: components["schemas"]["SubjectImage"] | null;
|
|
864
|
+
};
|
|
865
|
+
/** @description Each subject a picture of the answer names, once, by key. */
|
|
866
|
+
readonly Subjects: {
|
|
867
|
+
readonly [key: string]: components["schemas"]["Subject"];
|
|
868
|
+
};
|
|
869
|
+
/** @description The market display of the page's markets: what GET /v1/market-display answers for them, for every market the page lists (up to its 500). A market missing from outcomes, such as one from a publication stored before cards carried their display, is named and pictured by GET /v1/market-display; not_recorded and pending are always empty. */
|
|
870
|
+
readonly PageDisplay: {
|
|
871
|
+
/**
|
|
872
|
+
* @description Hyperliquid network the outcomes are listed on.
|
|
873
|
+
* @enum {string}
|
|
874
|
+
*/
|
|
875
|
+
readonly network: "HYPEREVM_TESTNET" | "HYPEREVM_MAINNET";
|
|
876
|
+
/** @description The imagery manifest publication every subject was resolved from; null while the reader holds no manifest, when every picture that would name a subject is null and subjects is empty. */
|
|
877
|
+
readonly imagery_publication: string | null;
|
|
878
|
+
/** @description The page's markets that its publication stored display for, ascending by outcome ID. */
|
|
879
|
+
readonly outcomes: readonly components["schemas"]["OutcomeDisplay"][];
|
|
880
|
+
readonly subjects: components["schemas"]["Subjects"];
|
|
881
|
+
/** @description Always empty: every listed market is recorded. */
|
|
882
|
+
readonly not_recorded: readonly [
|
|
883
|
+
];
|
|
884
|
+
/** @description Always empty: every listed market is recorded. */
|
|
885
|
+
readonly pending: readonly [
|
|
886
|
+
];
|
|
887
|
+
/** @description The entries of Hyperliquid's outcomeTemplates answer, unchanged, that these outcomes and their questions are instances of, ascending by id. */
|
|
888
|
+
readonly templates: readonly unknown[];
|
|
889
|
+
};
|
|
733
890
|
/**
|
|
734
891
|
* @description Stable HTTP error code. Each code has one HTTP status and one retry value.
|
|
735
892
|
* @enum {string}
|
|
@@ -53,6 +53,14 @@ export type paths = {
|
|
|
53
53
|
readonly "/v1/traders/{username}/positions": Pick<SharedPaths["/v1/traders/{username}/positions"], "parameters" | "get">;
|
|
54
54
|
readonly "/v1/traders/{username}/pnl": Pick<SharedPaths["/v1/traders/{username}/pnl"], "parameters" | "get">;
|
|
55
55
|
readonly "/v1/feed/combos": Pick<SharedPaths["/v1/feed/combos"], "parameters" | "get">;
|
|
56
|
+
readonly "/v1/social/people/{username}": Pick<SharedPaths["/v1/social/people/{username}"], "parameters" | "get">;
|
|
57
|
+
readonly "/v1/social/people/{username}/positions": Pick<SharedPaths["/v1/social/people/{username}/positions"], "parameters" | "get">;
|
|
58
|
+
readonly "/v1/social/people/{username}/positions/{position}": Pick<SharedPaths["/v1/social/people/{username}/positions/{position}"], "parameters" | "get">;
|
|
59
|
+
readonly "/v1/social/people/{username}/activity": Pick<SharedPaths["/v1/social/people/{username}/activity"], "parameters" | "get">;
|
|
60
|
+
readonly "/v1/social/feed": Pick<SharedPaths["/v1/social/feed"], "parameters" | "get">;
|
|
61
|
+
readonly "/v1/me/social/feed": Pick<SharedPaths["/v1/me/social/feed"], "parameters" | "get">;
|
|
62
|
+
readonly "/v1/me/social/following-positions": Pick<SharedPaths["/v1/me/social/following-positions"], "parameters" | "get">;
|
|
63
|
+
readonly "/v1/social/leaderboard": Pick<SharedPaths["/v1/social/leaderboard"], "parameters" | "get">;
|
|
56
64
|
readonly "/v1/me/follows": Pick<SharedPaths["/v1/me/follows"], "parameters" | "get">;
|
|
57
65
|
readonly "/v1/me/follows/{username}": Pick<SharedPaths["/v1/me/follows/{username}"], "parameters" | "put" | "delete">;
|
|
58
66
|
readonly "/v1/me/copy-settings": Pick<SharedPaths["/v1/me/copy-settings"], "parameters" | "get" | "put">;
|
|
@@ -125,4 +133,4 @@ export type paths = {
|
|
|
125
133
|
readonly "/v1/makers/{maker_id}/exposure": Pick<SharedPaths["/v1/makers/{maker_id}/exposure"], "parameters" | "get">;
|
|
126
134
|
readonly "/v1/makers/{maker_id}/performance": Pick<SharedPaths["/v1/makers/{maker_id}/performance"], "parameters" | "get">;
|
|
127
135
|
};
|
|
128
|
-
export type operations = Pick<SharedOperations, "abandonCoreExit" | "acceptQuote" | "activeCoreExits" | "admitOwnMaker" | "admitPartnerWallet" | "approveWallet" | "bindEmbeddedWallet" | "cancelRfq" | "confirmComboCopyAgent" | "confirmCoreCopyAgent" | "createCashout" | "createComment" | "createCoreExit" | "createDeposit" | "createGoldenRfq" | "createRfq" | "createRunOffClaim" | "createWalletChallenge" | "createWalletSession" | "createWithdrawal" | "deleteComment" | "editComment" | "endWalletSession" | "followTrader" | "getAcceptance" | "getAccountActivity" | "getAccountPnl" | "getAccountPosition" | "getAccountValue" | "getBalances" | "getCopyAgents" | "getCopyBudget" | "getCopySettings" | "getCopySummary" | "getCoreExit" | "getDeployment" | "getGolden" | "getGoldenMarkets" | "getGoldenOffer" | "getGoldenSuggestions" | "getHypercoreBalance" | "getHypercorePortfolio" | "getHypercoreSettlementCredits" | "getIdentity" | "getMakerActivity" | "getMakerCapital" | "getMakerExposure" | "getMakerPerformance" | "getMakerPosition" | "getMakerQuotes" | "getMakerTelemetry" | "getMakerVaultFundingTransaction" | "getMakerWithdrawal" | "getMarket" | "getMarketDataConfig" | "getMarketDefinitions" | "getMarketDisplay" | "getMarketHistory" | "getMarketRecurringRound" | "getMarketReferenceCloses" | "getMarketScoreTimeline" | "getMarketStats" | "getMyGenesis" | "getMyReferralBonus" | "getOperation" | "getOutcomeMetadata" | "getOwnMaker" | "getPartnerAccountValue" | "getPartnerReport" | "getPerpMarks" | "getProfitLeaderboard" | "getQuestion" | "getQuestionRecurringRound" | "getQuestionScoreTimeline" | "getRfq" | "getSeries" | "getSuggestedCombo" | "getTaxonomy" | "getTrader" | "getTraderPnl" | "getUsernameAvailability" | "getVaultAgents" | "getVolumeLeaderboard" | "getWalletApproval" | "getWithdrawal" | "grantComboCopyAgent" | "grantVaultAgent" | "likeComment" | "listAccountActivity" | "listAccountPositions" | "listComboCopies" | "listComboFeed" | "listCommentReplies" | "listComments" | "listControlledMakers" | "listCopiedFills" | "listCopyTrades" | "listDiscovery" | "listFollows" | "listMakerActivity" | "listMakerPositions" | "listMakerQuoteHistory" | "listMarkets" | "listMyNotifications" | "listOperations" | "listPartnerFills" | "listPartnerWebhookEvents" | "listQuotes" | "listTraderPositions" | "listTraderTrades" | "markMyNotificationsRead" | "placeGolden" | "reactComment" | "recordAcquisition" | "recordGoldenTelegramClick" | "refreshPicture" | "requestComboCopyAgent" | "requestCoreCopyAgent" | "revokeComboCopyAgent" | "searchCatalog" | "setAvatar" | "setCopyAllocation" | "setCopySettings" | "setPublicProfile" | "setUsername" | "setXHandleShown" | "signGoldenGift" | "stream" | "streamMarkets" | "switchOffComboCopyAgent" | "switchOffCoreCopyAgent" | "unfollowTrader" | "unlikeComment" | "unlockGolden" | "unreactComment">;
|
|
136
|
+
export type operations = Pick<SharedOperations, "abandonCoreExit" | "acceptQuote" | "activeCoreExits" | "admitOwnMaker" | "admitPartnerWallet" | "approveWallet" | "bindEmbeddedWallet" | "cancelRfq" | "confirmComboCopyAgent" | "confirmCoreCopyAgent" | "createCashout" | "createComment" | "createCoreExit" | "createDeposit" | "createGoldenRfq" | "createRfq" | "createRunOffClaim" | "createWalletChallenge" | "createWalletSession" | "createWithdrawal" | "deleteComment" | "editComment" | "endWalletSession" | "followTrader" | "getAcceptance" | "getAccountActivity" | "getAccountPnl" | "getAccountPosition" | "getAccountValue" | "getBalances" | "getCopyAgents" | "getCopyBudget" | "getCopySettings" | "getCopySummary" | "getCoreExit" | "getDeployment" | "getGolden" | "getGoldenMarkets" | "getGoldenOffer" | "getGoldenSuggestions" | "getHypercoreBalance" | "getHypercorePortfolio" | "getHypercoreSettlementCredits" | "getIdentity" | "getMakerActivity" | "getMakerCapital" | "getMakerExposure" | "getMakerPerformance" | "getMakerPosition" | "getMakerQuotes" | "getMakerTelemetry" | "getMakerVaultFundingTransaction" | "getMakerWithdrawal" | "getMarket" | "getMarketDataConfig" | "getMarketDefinitions" | "getMarketDisplay" | "getMarketHistory" | "getMarketRecurringRound" | "getMarketReferenceCloses" | "getMarketScoreTimeline" | "getMarketStats" | "getMyGenesis" | "getMyReferralBonus" | "getOperation" | "getOutcomeMetadata" | "getOwnMaker" | "getPartnerAccountValue" | "getPartnerReport" | "getPerpMarks" | "getProfitLeaderboard" | "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" | "listFollowingFeed" | "listFollowingPositions" | "listFollows" | "listMakerActivity" | "listMakerPositions" | "listMakerQuoteHistory" | "listMarkets" | "listMyNotifications" | "listOperations" | "listPartnerFills" | "listPartnerWebhookEvents" | "listQuotes" | "listSocialActivity" | "listSocialFeed" | "listSocialPositions" | "listTraderPositions" | "listTraderTrades" | "markMyNotificationsRead" | "placeGolden" | "reactComment" | "recordAcquisition" | "recordGoldenTelegramClick" | "refreshPicture" | "requestComboCopyAgent" | "requestCoreCopyAgent" | "revokeComboCopyAgent" | "searchCatalog" | "setAvatar" | "setCopyAllocation" | "setCopySettings" | "setPublicProfile" | "setUsername" | "setXHandleShown" | "signGoldenGift" | "stream" | "streamMarkets" | "switchOffComboCopyAgent" | "switchOffCoreCopyAgent" | "unfollowTrader" | "unlikeComment" | "unlockGolden" | "unreactComment">;
|
|
@@ -493,6 +493,9 @@ export declare const operationErrors: {
|
|
|
493
493
|
readonly getQuestionScoreTimeline: readonly ["INVALID_REQUEST", "NOT_FOUND", "MARKET_DATA_UNAVAILABLE", "INVALID_QUERY"];
|
|
494
494
|
readonly getRfq: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND", "INVALID_QUERY"];
|
|
495
495
|
readonly getSeries: readonly ["INVALID_REQUEST", "NOT_FOUND", "MARKET_DATA_UNAVAILABLE", "INVALID_QUERY"];
|
|
496
|
+
readonly getSocialLeaderboard: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "INVALID_QUERY", "CONTRACT_UNAVAILABLE", "IDENTITY_NOT_FOUND", "CURSOR_EXPIRED"];
|
|
497
|
+
readonly getSocialPerson: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_QUERY", "NOT_FOUND", "SOURCE_UNAVAILABLE"];
|
|
498
|
+
readonly getSocialPosition: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_QUERY", "NOT_FOUND", "SOURCE_UNAVAILABLE"];
|
|
496
499
|
readonly getSuggestedCombo: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_QUERY"];
|
|
497
500
|
readonly getTaxonomy: readonly ["INVALID_QUERY", "MARKET_DATA_UNAVAILABLE", "UNSUPPORTED_BROWSE_CONTRACT", "BROWSE_UNAVAILABLE"];
|
|
498
501
|
readonly getTrader: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_QUERY", "NOT_FOUND", "SOURCE_UNAVAILABLE"];
|
|
@@ -515,6 +518,8 @@ export declare const operationErrors: {
|
|
|
515
518
|
readonly listCopiedFills: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY", "CONTRACT_UNAVAILABLE"];
|
|
516
519
|
readonly listCopyTrades: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY", "CONTRACT_UNAVAILABLE"];
|
|
517
520
|
readonly listDiscovery: readonly ["INVALID_QUERY", "INVALID_CURSOR", "STALE_CURSOR", "MARKET_DATA_UNAVAILABLE", "UNSUPPORTED_BROWSE_CONTRACT", "BROWSE_UNAVAILABLE"];
|
|
521
|
+
readonly listFollowingFeed: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY", "SOURCE_UNAVAILABLE"];
|
|
522
|
+
readonly listFollowingPositions: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY", "SOURCE_UNAVAILABLE"];
|
|
518
523
|
readonly listFollows: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY"];
|
|
519
524
|
readonly listMakerAcceptances: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_QUERY", "INVALID_CURSOR", "NOT_FOUND"];
|
|
520
525
|
readonly listMakerActivity: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_QUERY", "ORIGIN_REQUIRED", "NOT_FOUND", "SOURCE_UNAVAILABLE", "CONTRACT_UNAVAILABLE", "CURSOR_EXPIRED", "IDENTITY_NOT_FOUND"];
|
|
@@ -530,6 +535,9 @@ export declare const operationErrors: {
|
|
|
530
535
|
readonly listPersonalApiKeys: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND"];
|
|
531
536
|
readonly listQuotes: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND", "IDENTITY_NOT_FOUND"];
|
|
532
537
|
readonly listRfqs: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_QUERY", "INVALID_CURSOR"];
|
|
538
|
+
readonly listSocialActivity: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_QUERY", "NOT_FOUND", "SOURCE_UNAVAILABLE"];
|
|
539
|
+
readonly listSocialFeed: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_QUERY", "SOURCE_UNAVAILABLE"];
|
|
540
|
+
readonly listSocialPositions: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_QUERY", "NOT_FOUND", "SOURCE_UNAVAILABLE"];
|
|
533
541
|
readonly listTraderPositions: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_QUERY", "NOT_FOUND", "SOURCE_UNAVAILABLE"];
|
|
534
542
|
readonly listTraderTrades: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_QUERY", "NOT_FOUND", "SOURCE_UNAVAILABLE"];
|
|
535
543
|
readonly live: readonly [];
|
package/dist/generated/errors.js
CHANGED
|
@@ -1401,6 +1401,36 @@ export const operationErrors = {
|
|
|
1401
1401
|
"MARKET_DATA_UNAVAILABLE",
|
|
1402
1402
|
"INVALID_QUERY"
|
|
1403
1403
|
],
|
|
1404
|
+
"getSocialLeaderboard": [
|
|
1405
|
+
"UNAUTHENTICATED",
|
|
1406
|
+
"FORBIDDEN",
|
|
1407
|
+
"AUTHORIZATION_UNAVAILABLE",
|
|
1408
|
+
"DEPENDENCY_STALE",
|
|
1409
|
+
"RATE_LIMITED",
|
|
1410
|
+
"ORIGIN_REQUIRED",
|
|
1411
|
+
"INVALID_QUERY",
|
|
1412
|
+
"CONTRACT_UNAVAILABLE",
|
|
1413
|
+
"IDENTITY_NOT_FOUND",
|
|
1414
|
+
"CURSOR_EXPIRED"
|
|
1415
|
+
],
|
|
1416
|
+
"getSocialPerson": [
|
|
1417
|
+
"UNAUTHENTICATED",
|
|
1418
|
+
"FORBIDDEN",
|
|
1419
|
+
"AUTHORIZATION_UNAVAILABLE",
|
|
1420
|
+
"RATE_LIMITED",
|
|
1421
|
+
"INVALID_QUERY",
|
|
1422
|
+
"NOT_FOUND",
|
|
1423
|
+
"SOURCE_UNAVAILABLE"
|
|
1424
|
+
],
|
|
1425
|
+
"getSocialPosition": [
|
|
1426
|
+
"UNAUTHENTICATED",
|
|
1427
|
+
"FORBIDDEN",
|
|
1428
|
+
"AUTHORIZATION_UNAVAILABLE",
|
|
1429
|
+
"RATE_LIMITED",
|
|
1430
|
+
"INVALID_QUERY",
|
|
1431
|
+
"NOT_FOUND",
|
|
1432
|
+
"SOURCE_UNAVAILABLE"
|
|
1433
|
+
],
|
|
1404
1434
|
"getSuggestedCombo": [
|
|
1405
1435
|
"UNAUTHENTICATED",
|
|
1406
1436
|
"FORBIDDEN",
|
|
@@ -1629,6 +1659,26 @@ export const operationErrors = {
|
|
|
1629
1659
|
"UNSUPPORTED_BROWSE_CONTRACT",
|
|
1630
1660
|
"BROWSE_UNAVAILABLE"
|
|
1631
1661
|
],
|
|
1662
|
+
"listFollowingFeed": [
|
|
1663
|
+
"UNAUTHENTICATED",
|
|
1664
|
+
"FORBIDDEN",
|
|
1665
|
+
"AUTHORIZATION_UNAVAILABLE",
|
|
1666
|
+
"RATE_LIMITED",
|
|
1667
|
+
"ORIGIN_REQUIRED",
|
|
1668
|
+
"IDENTITY_NOT_FOUND",
|
|
1669
|
+
"INVALID_QUERY",
|
|
1670
|
+
"SOURCE_UNAVAILABLE"
|
|
1671
|
+
],
|
|
1672
|
+
"listFollowingPositions": [
|
|
1673
|
+
"UNAUTHENTICATED",
|
|
1674
|
+
"FORBIDDEN",
|
|
1675
|
+
"AUTHORIZATION_UNAVAILABLE",
|
|
1676
|
+
"RATE_LIMITED",
|
|
1677
|
+
"ORIGIN_REQUIRED",
|
|
1678
|
+
"IDENTITY_NOT_FOUND",
|
|
1679
|
+
"INVALID_QUERY",
|
|
1680
|
+
"SOURCE_UNAVAILABLE"
|
|
1681
|
+
],
|
|
1632
1682
|
"listFollows": [
|
|
1633
1683
|
"UNAUTHENTICATED",
|
|
1634
1684
|
"FORBIDDEN",
|
|
@@ -1779,6 +1829,32 @@ export const operationErrors = {
|
|
|
1779
1829
|
"INVALID_QUERY",
|
|
1780
1830
|
"INVALID_CURSOR"
|
|
1781
1831
|
],
|
|
1832
|
+
"listSocialActivity": [
|
|
1833
|
+
"UNAUTHENTICATED",
|
|
1834
|
+
"FORBIDDEN",
|
|
1835
|
+
"AUTHORIZATION_UNAVAILABLE",
|
|
1836
|
+
"RATE_LIMITED",
|
|
1837
|
+
"INVALID_QUERY",
|
|
1838
|
+
"NOT_FOUND",
|
|
1839
|
+
"SOURCE_UNAVAILABLE"
|
|
1840
|
+
],
|
|
1841
|
+
"listSocialFeed": [
|
|
1842
|
+
"UNAUTHENTICATED",
|
|
1843
|
+
"FORBIDDEN",
|
|
1844
|
+
"AUTHORIZATION_UNAVAILABLE",
|
|
1845
|
+
"RATE_LIMITED",
|
|
1846
|
+
"INVALID_QUERY",
|
|
1847
|
+
"SOURCE_UNAVAILABLE"
|
|
1848
|
+
],
|
|
1849
|
+
"listSocialPositions": [
|
|
1850
|
+
"UNAUTHENTICATED",
|
|
1851
|
+
"FORBIDDEN",
|
|
1852
|
+
"AUTHORIZATION_UNAVAILABLE",
|
|
1853
|
+
"RATE_LIMITED",
|
|
1854
|
+
"INVALID_QUERY",
|
|
1855
|
+
"NOT_FOUND",
|
|
1856
|
+
"SOURCE_UNAVAILABLE"
|
|
1857
|
+
],
|
|
1782
1858
|
"listTraderPositions": [
|
|
1783
1859
|
"UNAUTHENTICATED",
|
|
1784
1860
|
"FORBIDDEN",
|