@totalis/hip4-client 0.114.0 → 0.116.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 +22 -0
- package/dist/generated/client.d.ts +4 -1
- package/dist/generated/errors.d.ts +3 -0
- package/dist/generated/errors.js +25 -0
- package/dist/generated/openapi.d.ts +188 -1
- package/dist/generated/version.d.ts +4 -4
- package/dist/generated/version.js +6 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
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.116.0
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
|
|
10
|
+
Contract `249.0.0-follower-lists`, additive:
|
|
11
|
+
|
|
12
|
+
- `listSocialFollowers` (`GET /v1/social/people/{username}/followers`) and
|
|
13
|
+
`listFollowers` (`GET /v1/me/followers`): a page of followers, newest follow
|
|
14
|
+
first. Followers with a public profile are named; the rest are only counted
|
|
15
|
+
in `private_count`.
|
|
16
|
+
- `listSocialFollowing` (`GET /v1/social/people/{username}/following`): the
|
|
17
|
+
public traders a person follows, never paged.
|
|
18
|
+
|
|
19
|
+
## 0.115.0
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
|
|
23
|
+
- `getMyReferralBonus` answers an account the bonus is not on for with
|
|
24
|
+
`{ state: "DISABLED", reason: "NOT_ENROLLED" }` instead of
|
|
25
|
+
`CONTRACT_UNAVAILABLE`. A deployment with the bonus off still answers
|
|
26
|
+
`CONTRACT_UNAVAILABLE`.
|
|
27
|
+
|
|
6
28
|
## 0.114.0
|
|
7
29
|
|
|
8
30
|
### Changed
|
|
@@ -61,11 +61,14 @@ export type paths = {
|
|
|
61
61
|
readonly "/v1/social/people/{username}/positions": Pick<SharedPaths["/v1/social/people/{username}/positions"], "parameters" | "get">;
|
|
62
62
|
readonly "/v1/social/people/{username}/positions/{position}": Pick<SharedPaths["/v1/social/people/{username}/positions/{position}"], "parameters" | "get">;
|
|
63
63
|
readonly "/v1/social/people/{username}/activity": Pick<SharedPaths["/v1/social/people/{username}/activity"], "parameters" | "get">;
|
|
64
|
+
readonly "/v1/social/people/{username}/followers": Pick<SharedPaths["/v1/social/people/{username}/followers"], "parameters" | "get">;
|
|
65
|
+
readonly "/v1/social/people/{username}/following": Pick<SharedPaths["/v1/social/people/{username}/following"], "parameters" | "get">;
|
|
64
66
|
readonly "/v1/social/feed": Pick<SharedPaths["/v1/social/feed"], "parameters" | "get">;
|
|
65
67
|
readonly "/v1/me/social/feed": Pick<SharedPaths["/v1/me/social/feed"], "parameters" | "get">;
|
|
66
68
|
readonly "/v1/me/social/following-positions": Pick<SharedPaths["/v1/me/social/following-positions"], "parameters" | "get">;
|
|
67
69
|
readonly "/v1/social/leaderboard": Pick<SharedPaths["/v1/social/leaderboard"], "parameters" | "get">;
|
|
68
70
|
readonly "/v1/me/follows": Pick<SharedPaths["/v1/me/follows"], "parameters" | "get">;
|
|
71
|
+
readonly "/v1/me/followers": Pick<SharedPaths["/v1/me/followers"], "parameters" | "get">;
|
|
69
72
|
readonly "/v1/me/follows/{username}": Pick<SharedPaths["/v1/me/follows/{username}"], "parameters" | "put" | "delete">;
|
|
70
73
|
readonly "/v1/me/copy-settings": Pick<SharedPaths["/v1/me/copy-settings"], "parameters" | "get" | "put">;
|
|
71
74
|
readonly "/v1/me/copy-trades": Pick<SharedPaths["/v1/me/copy-trades"], "parameters" | "get">;
|
|
@@ -139,4 +142,4 @@ export type paths = {
|
|
|
139
142
|
readonly "/v1/makers/{maker_id}/exposure": Pick<SharedPaths["/v1/makers/{maker_id}/exposure"], "parameters" | "get">;
|
|
140
143
|
readonly "/v1/makers/{maker_id}/performance": Pick<SharedPaths["/v1/makers/{maker_id}/performance"], "parameters" | "get">;
|
|
141
144
|
};
|
|
142
|
-
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" | "getGenesis" | "getGolden" | "getGoldenMarkets" | "getGoldenOffer" | "getGoldenSuggestions" | "getHypercoreBalance" | "getHypercorePortfolio" | "getHypercoreSettlementCredits" | "getIdentity" | "getMakerActivity" | "getMakerCapital" | "getMakerExposure" | "getMakerPerformance" | "getMakerPosition" | "getMakerQuotes" | "getMakerTelemetry" | "getMakerVaultFundingTransaction" | "getMakerWithdrawal" | "getMarket" | "getMarketDataConfig" | "getMarketDefinitions" | "getMarketDisplay" | "getMarketHistory" | "getMarketRecurringRound" | "getMarketReferenceCloses" | "getMarketRoundHistory" | "getMarketScoreTimeline" | "getMarketStats" | "getMyGenesis" | "getMyReferralBonus" | "getOperation" | "getOutcomeMetadata" | "getOwnMaker" | "getPartnerAccountValue" | "getPartnerReport" | "getPerpMarks" | "getPicture" | "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" | "removeUploadedPicture" | "requestComboCopyAgent" | "requestCoreCopyAgent" | "revokeComboCopyAgent" | "searchCatalog" | "searchTraders" | "setAvatar" | "setCopyAllocation" | "setCopySettings" | "setPublicProfile" | "setUsername" | "setXHandleShown" | "setXPictureShown" | "signGoldenGift" | "stream" | "streamMarkets" | "switchOffComboCopyAgent" | "switchOffCoreCopyAgent" | "unfollowTrader" | "unlikeComment" | "unlockGolden" | "unreactComment" | "uploadPicture">;
|
|
145
|
+
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" | "getGenesis" | "getGolden" | "getGoldenMarkets" | "getGoldenOffer" | "getGoldenSuggestions" | "getHypercoreBalance" | "getHypercorePortfolio" | "getHypercoreSettlementCredits" | "getIdentity" | "getMakerActivity" | "getMakerCapital" | "getMakerExposure" | "getMakerPerformance" | "getMakerPosition" | "getMakerQuotes" | "getMakerTelemetry" | "getMakerVaultFundingTransaction" | "getMakerWithdrawal" | "getMarket" | "getMarketDataConfig" | "getMarketDefinitions" | "getMarketDisplay" | "getMarketHistory" | "getMarketRecurringRound" | "getMarketReferenceCloses" | "getMarketRoundHistory" | "getMarketScoreTimeline" | "getMarketStats" | "getMyGenesis" | "getMyReferralBonus" | "getOperation" | "getOutcomeMetadata" | "getOwnMaker" | "getPartnerAccountValue" | "getPartnerReport" | "getPerpMarks" | "getPicture" | "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" | "listFollowers" | "listFollowingFeed" | "listFollowingPositions" | "listFollows" | "listMakerActivity" | "listMakerPositions" | "listMakerQuoteHistory" | "listMarkets" | "listMyNotifications" | "listOperations" | "listPartnerFills" | "listPartnerWebhookEvents" | "listQuotes" | "listSocialActivity" | "listSocialFeed" | "listSocialFollowers" | "listSocialFollowing" | "listSocialPositions" | "listTraderPositions" | "listTraderTrades" | "markMyNotificationsRead" | "placeGolden" | "reactComment" | "recordAcquisition" | "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">;
|
|
@@ -541,6 +541,7 @@ export declare const operationErrors: {
|
|
|
541
541
|
readonly listCopiedFills: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY", "CONTRACT_UNAVAILABLE"];
|
|
542
542
|
readonly listCopyTrades: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY", "CONTRACT_UNAVAILABLE"];
|
|
543
543
|
readonly listDiscovery: readonly ["INVALID_QUERY", "INVALID_CURSOR", "STALE_CURSOR", "MARKET_DATA_UNAVAILABLE", "UNSUPPORTED_BROWSE_CONTRACT", "BROWSE_UNAVAILABLE"];
|
|
544
|
+
readonly listFollowers: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY"];
|
|
544
545
|
readonly listFollowingFeed: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY", "SOURCE_UNAVAILABLE"];
|
|
545
546
|
readonly listFollowingPositions: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY", "SOURCE_UNAVAILABLE"];
|
|
546
547
|
readonly listFollows: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY"];
|
|
@@ -560,6 +561,8 @@ export declare const operationErrors: {
|
|
|
560
561
|
readonly listRfqs: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_QUERY", "INVALID_CURSOR"];
|
|
561
562
|
readonly listSocialActivity: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_QUERY", "NOT_FOUND", "SOURCE_UNAVAILABLE"];
|
|
562
563
|
readonly listSocialFeed: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_QUERY", "SOURCE_UNAVAILABLE"];
|
|
564
|
+
readonly listSocialFollowers: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_QUERY", "NOT_FOUND"];
|
|
565
|
+
readonly listSocialFollowing: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_QUERY", "NOT_FOUND"];
|
|
563
566
|
readonly listSocialPositions: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_QUERY", "NOT_FOUND", "SOURCE_UNAVAILABLE"];
|
|
564
567
|
readonly listTraderPositions: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_QUERY", "NOT_FOUND", "SOURCE_UNAVAILABLE"];
|
|
565
568
|
readonly listTraderTrades: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_QUERY", "NOT_FOUND", "SOURCE_UNAVAILABLE"];
|
package/dist/generated/errors.js
CHANGED
|
@@ -1700,6 +1700,15 @@ export const operationErrors = {
|
|
|
1700
1700
|
"UNSUPPORTED_BROWSE_CONTRACT",
|
|
1701
1701
|
"BROWSE_UNAVAILABLE"
|
|
1702
1702
|
],
|
|
1703
|
+
"listFollowers": [
|
|
1704
|
+
"UNAUTHENTICATED",
|
|
1705
|
+
"FORBIDDEN",
|
|
1706
|
+
"AUTHORIZATION_UNAVAILABLE",
|
|
1707
|
+
"RATE_LIMITED",
|
|
1708
|
+
"ORIGIN_REQUIRED",
|
|
1709
|
+
"IDENTITY_NOT_FOUND",
|
|
1710
|
+
"INVALID_QUERY"
|
|
1711
|
+
],
|
|
1703
1712
|
"listFollowingFeed": [
|
|
1704
1713
|
"UNAUTHENTICATED",
|
|
1705
1714
|
"FORBIDDEN",
|
|
@@ -1887,6 +1896,22 @@ export const operationErrors = {
|
|
|
1887
1896
|
"INVALID_QUERY",
|
|
1888
1897
|
"SOURCE_UNAVAILABLE"
|
|
1889
1898
|
],
|
|
1899
|
+
"listSocialFollowers": [
|
|
1900
|
+
"UNAUTHENTICATED",
|
|
1901
|
+
"FORBIDDEN",
|
|
1902
|
+
"AUTHORIZATION_UNAVAILABLE",
|
|
1903
|
+
"RATE_LIMITED",
|
|
1904
|
+
"INVALID_QUERY",
|
|
1905
|
+
"NOT_FOUND"
|
|
1906
|
+
],
|
|
1907
|
+
"listSocialFollowing": [
|
|
1908
|
+
"UNAUTHENTICATED",
|
|
1909
|
+
"FORBIDDEN",
|
|
1910
|
+
"AUTHORIZATION_UNAVAILABLE",
|
|
1911
|
+
"RATE_LIMITED",
|
|
1912
|
+
"INVALID_QUERY",
|
|
1913
|
+
"NOT_FOUND"
|
|
1914
|
+
],
|
|
1890
1915
|
"listSocialPositions": [
|
|
1891
1916
|
"UNAUTHENTICATED",
|
|
1892
1917
|
"FORBIDDEN",
|
|
@@ -1259,6 +1259,46 @@ export type paths = {
|
|
|
1259
1259
|
readonly patch?: never;
|
|
1260
1260
|
readonly trace?: never;
|
|
1261
1261
|
};
|
|
1262
|
+
readonly "/v1/social/people/{username}/followers": {
|
|
1263
|
+
readonly parameters: {
|
|
1264
|
+
readonly query?: never;
|
|
1265
|
+
readonly header?: never;
|
|
1266
|
+
readonly path?: never;
|
|
1267
|
+
readonly cookie?: never;
|
|
1268
|
+
};
|
|
1269
|
+
/**
|
|
1270
|
+
* List a person's followers
|
|
1271
|
+
* @description A page of a person's followers, newest follow first: those whose profile is public by name, and a count of those whose profile is private (FollowerPage). Anyone reads it, as GET /v1/social/people/{username}; the same caching and 404 apply. Pages are read live, so a follow or unfollow between pages can shift a follower onto the next page or repeat one.
|
|
1272
|
+
*/
|
|
1273
|
+
readonly get: operations["listSocialFollowers"];
|
|
1274
|
+
readonly put?: never;
|
|
1275
|
+
readonly post?: never;
|
|
1276
|
+
readonly delete?: never;
|
|
1277
|
+
readonly options?: never;
|
|
1278
|
+
readonly head?: never;
|
|
1279
|
+
readonly patch?: never;
|
|
1280
|
+
readonly trace?: never;
|
|
1281
|
+
};
|
|
1282
|
+
readonly "/v1/social/people/{username}/following": {
|
|
1283
|
+
readonly parameters: {
|
|
1284
|
+
readonly query?: never;
|
|
1285
|
+
readonly header?: never;
|
|
1286
|
+
readonly path?: never;
|
|
1287
|
+
readonly cookie?: never;
|
|
1288
|
+
};
|
|
1289
|
+
/**
|
|
1290
|
+
* List who a person follows
|
|
1291
|
+
* @description The people a person follows whose profile is public and whose account is ACTIVE, newest follow first, without copy settings (FollowingList). Anyone reads it, as GET /v1/social/people/{username}; the same caching and 404 apply. Your own follows, with their copy settings, are GET /v1/me/follows.
|
|
1292
|
+
*/
|
|
1293
|
+
readonly get: operations["listSocialFollowing"];
|
|
1294
|
+
readonly put?: never;
|
|
1295
|
+
readonly post?: never;
|
|
1296
|
+
readonly delete?: never;
|
|
1297
|
+
readonly options?: never;
|
|
1298
|
+
readonly head?: never;
|
|
1299
|
+
readonly patch?: never;
|
|
1300
|
+
readonly trace?: never;
|
|
1301
|
+
};
|
|
1262
1302
|
readonly "/v1/social/feed": {
|
|
1263
1303
|
readonly parameters: {
|
|
1264
1304
|
readonly query?: never;
|
|
@@ -1359,6 +1399,26 @@ export type paths = {
|
|
|
1359
1399
|
readonly patch?: never;
|
|
1360
1400
|
readonly trace?: never;
|
|
1361
1401
|
};
|
|
1402
|
+
readonly "/v1/me/followers": {
|
|
1403
|
+
readonly parameters: {
|
|
1404
|
+
readonly query?: never;
|
|
1405
|
+
readonly header?: never;
|
|
1406
|
+
readonly path?: never;
|
|
1407
|
+
readonly cookie?: never;
|
|
1408
|
+
};
|
|
1409
|
+
/**
|
|
1410
|
+
* List my followers
|
|
1411
|
+
* @description A page of the authenticated account's followers, as GET /v1/social/people/{username}/followers answers for a public person, whether or not the account's own profile is public. Private followers are only counted here too.
|
|
1412
|
+
*/
|
|
1413
|
+
readonly get: operations["listFollowers"];
|
|
1414
|
+
readonly put?: never;
|
|
1415
|
+
readonly post?: never;
|
|
1416
|
+
readonly delete?: never;
|
|
1417
|
+
readonly options?: never;
|
|
1418
|
+
readonly head?: never;
|
|
1419
|
+
readonly patch?: never;
|
|
1420
|
+
readonly trace?: never;
|
|
1421
|
+
};
|
|
1362
1422
|
readonly "/v1/me/follows/{username}": {
|
|
1363
1423
|
readonly parameters: {
|
|
1364
1424
|
readonly query?: never;
|
|
@@ -1536,7 +1596,7 @@ export type paths = {
|
|
|
1536
1596
|
};
|
|
1537
1597
|
/**
|
|
1538
1598
|
* Get my referral bonus
|
|
1539
|
-
* @description The authenticated account's referral bonus. A referral is someone the account's own invite code admitted; they qualify once their own Combo stake since signing up reaches qualifying_stake, and the account earns bonus for each, up to monthly_cap a UTC month by when each qualified. Referrals past the cap earn nothing that month and nothing carries over. A one-leg entry is a single-market buy, not a Combo, and a golden Combo is not the referral's own stake. The bonus is separate from the fee share in GET /v1/referrals/me. state is ENABLED with the bonus, or DISABLED with its reason where the bonus is not on for the account. Answers CONTRACT_UNAVAILABLE where the referral bonus is off
|
|
1599
|
+
* @description The authenticated account's referral bonus. A referral is someone the account's own invite code admitted; they qualify once their own Combo stake since signing up reaches qualifying_stake, and the account earns bonus for each, up to monthly_cap a UTC month by when each qualified. Referrals past the cap earn nothing that month and nothing carries over. A one-leg entry is a single-market buy, not a Combo, and a golden Combo is not the referral's own stake. The bonus is separate from the fee share in GET /v1/referrals/me. state is ENABLED with the bonus, or DISABLED with its reason where the bonus is not on for the account. Answers CONTRACT_UNAVAILABLE where the referral bonus is off.
|
|
1540
1600
|
*/
|
|
1541
1601
|
readonly get: operations["getMyReferralBonus"];
|
|
1542
1602
|
readonly put?: never;
|
|
@@ -5984,6 +6044,22 @@ export type components = {
|
|
|
5984
6044
|
/** @description Whether a later page may hold more; a page that read its share of rows without filling answers with what it found and a cursor past them, so it can be short. */
|
|
5985
6045
|
readonly has_more: boolean;
|
|
5986
6046
|
};
|
|
6047
|
+
/** @description A page of a person's followers. Only followers whose profile is public and whose account is ACTIVE are named; a follower whose profile is private is only counted, so following someone never reveals who you are. A public follower whose account is not ACTIVE is neither named nor in private_count, but is in total. Visibility is read on every page: a follower who turns their profile off leaves the list at once and returns when they turn it back on. Nothing says whether a follower copies the person, or when they followed. */
|
|
6048
|
+
readonly FollowerPage: {
|
|
6049
|
+
/** @description Followers with a public profile, newest follow first. */
|
|
6050
|
+
readonly items: readonly components["schemas"]["Person"][];
|
|
6051
|
+
/** @description Every current follower, public or private, the same on every page: the person's followers count. */
|
|
6052
|
+
readonly total: number;
|
|
6053
|
+
/** @description How many of total have a private profile, the same on every page. Never named. */
|
|
6054
|
+
readonly private_count: number;
|
|
6055
|
+
readonly next_cursor: components["schemas"]["NextCursor"];
|
|
6056
|
+
/** @description Whether a later page may hold more. */
|
|
6057
|
+
readonly has_more: boolean;
|
|
6058
|
+
};
|
|
6059
|
+
/** @description The people a person follows whose profile is public and whose account is ACTIVE, newest follow first. Only public profiles can be followed, and a person follows at most 100, so the list is never paged. Nothing says whether they copy anyone, or when they followed. */
|
|
6060
|
+
readonly FollowingList: {
|
|
6061
|
+
readonly items: readonly components["schemas"]["Person"][];
|
|
6062
|
+
};
|
|
5987
6063
|
/** @description A person the reader follows and their positions on the outcomes asked. */
|
|
5988
6064
|
readonly Holder: {
|
|
5989
6065
|
readonly person: components["schemas"]["Person"];
|
|
@@ -10511,6 +10587,79 @@ export interface operations {
|
|
|
10511
10587
|
readonly 503: components["responses"]["Unavailable"];
|
|
10512
10588
|
};
|
|
10513
10589
|
};
|
|
10590
|
+
readonly listSocialFollowers: {
|
|
10591
|
+
readonly parameters: {
|
|
10592
|
+
readonly query?: {
|
|
10593
|
+
/**
|
|
10594
|
+
* @description Omit for the first page; then send the previous response's next_cursor unchanged.
|
|
10595
|
+
* @example eyJ2IjoxLCJzIjoiMTIzNDUifQ
|
|
10596
|
+
*/
|
|
10597
|
+
readonly cursor?: components["parameters"]["Cursor"];
|
|
10598
|
+
/**
|
|
10599
|
+
* @description Maximum items per page, 1 to 200, default 50. A page may hold fewer, even none, while has_more is true.
|
|
10600
|
+
* @example 50
|
|
10601
|
+
*/
|
|
10602
|
+
readonly limit?: components["parameters"]["Limit"];
|
|
10603
|
+
};
|
|
10604
|
+
readonly header?: never;
|
|
10605
|
+
readonly path: {
|
|
10606
|
+
/** @description The person's username. */
|
|
10607
|
+
readonly username: components["schemas"]["Username"];
|
|
10608
|
+
};
|
|
10609
|
+
readonly cookie?: never;
|
|
10610
|
+
};
|
|
10611
|
+
readonly requestBody?: never;
|
|
10612
|
+
readonly responses: {
|
|
10613
|
+
/** @description A page of followers */
|
|
10614
|
+
readonly 200: {
|
|
10615
|
+
headers: {
|
|
10616
|
+
/** @description public, max-age=30 for a signed-out read, which the edge may share; no-store for one with a credential. */
|
|
10617
|
+
readonly "Cache-Control"?: "public, max-age=30" | "no-store";
|
|
10618
|
+
readonly [name: string]: unknown;
|
|
10619
|
+
};
|
|
10620
|
+
content: {
|
|
10621
|
+
readonly "application/json": components["schemas"]["FollowerPage"];
|
|
10622
|
+
};
|
|
10623
|
+
};
|
|
10624
|
+
readonly 400: components["responses"]["Error"];
|
|
10625
|
+
readonly 401: components["responses"]["Error"];
|
|
10626
|
+
readonly 403: components["responses"]["Error"];
|
|
10627
|
+
readonly 404: components["responses"]["Error"];
|
|
10628
|
+
readonly 429: components["responses"]["RateLimited"];
|
|
10629
|
+
readonly 503: components["responses"]["Unavailable"];
|
|
10630
|
+
};
|
|
10631
|
+
};
|
|
10632
|
+
readonly listSocialFollowing: {
|
|
10633
|
+
readonly parameters: {
|
|
10634
|
+
readonly query?: never;
|
|
10635
|
+
readonly header?: never;
|
|
10636
|
+
readonly path: {
|
|
10637
|
+
/** @description The person's username. */
|
|
10638
|
+
readonly username: components["schemas"]["Username"];
|
|
10639
|
+
};
|
|
10640
|
+
readonly cookie?: never;
|
|
10641
|
+
};
|
|
10642
|
+
readonly requestBody?: never;
|
|
10643
|
+
readonly responses: {
|
|
10644
|
+
/** @description Who they follow */
|
|
10645
|
+
readonly 200: {
|
|
10646
|
+
headers: {
|
|
10647
|
+
/** @description public, max-age=30 for a signed-out read, which the edge may share; no-store for one with a credential. */
|
|
10648
|
+
readonly "Cache-Control"?: "public, max-age=30" | "no-store";
|
|
10649
|
+
readonly [name: string]: unknown;
|
|
10650
|
+
};
|
|
10651
|
+
content: {
|
|
10652
|
+
readonly "application/json": components["schemas"]["FollowingList"];
|
|
10653
|
+
};
|
|
10654
|
+
};
|
|
10655
|
+
readonly 400: components["responses"]["Error"];
|
|
10656
|
+
readonly 401: components["responses"]["Error"];
|
|
10657
|
+
readonly 403: components["responses"]["Error"];
|
|
10658
|
+
readonly 404: components["responses"]["Error"];
|
|
10659
|
+
readonly 429: components["responses"]["RateLimited"];
|
|
10660
|
+
readonly 503: components["responses"]["Unavailable"];
|
|
10661
|
+
};
|
|
10662
|
+
};
|
|
10514
10663
|
readonly listSocialFeed: {
|
|
10515
10664
|
readonly parameters: {
|
|
10516
10665
|
readonly query?: {
|
|
@@ -10691,6 +10840,44 @@ export interface operations {
|
|
|
10691
10840
|
readonly 503: components["responses"]["Unavailable"];
|
|
10692
10841
|
};
|
|
10693
10842
|
};
|
|
10843
|
+
readonly listFollowers: {
|
|
10844
|
+
readonly parameters: {
|
|
10845
|
+
readonly query?: {
|
|
10846
|
+
/**
|
|
10847
|
+
* @description Omit for the first page; then send the previous response's next_cursor unchanged.
|
|
10848
|
+
* @example eyJ2IjoxLCJzIjoiMTIzNDUifQ
|
|
10849
|
+
*/
|
|
10850
|
+
readonly cursor?: components["parameters"]["Cursor"];
|
|
10851
|
+
/**
|
|
10852
|
+
* @description Maximum items per page, 1 to 200, default 50. A page may hold fewer, even none, while has_more is true.
|
|
10853
|
+
* @example 50
|
|
10854
|
+
*/
|
|
10855
|
+
readonly limit?: components["parameters"]["Limit"];
|
|
10856
|
+
};
|
|
10857
|
+
readonly header?: never;
|
|
10858
|
+
readonly path?: never;
|
|
10859
|
+
readonly cookie?: never;
|
|
10860
|
+
};
|
|
10861
|
+
readonly requestBody?: never;
|
|
10862
|
+
readonly responses: {
|
|
10863
|
+
/** @description A page of my followers */
|
|
10864
|
+
readonly 200: {
|
|
10865
|
+
headers: {
|
|
10866
|
+
readonly "Cache-Control"?: "no-store";
|
|
10867
|
+
readonly [name: string]: unknown;
|
|
10868
|
+
};
|
|
10869
|
+
content: {
|
|
10870
|
+
readonly "application/json": components["schemas"]["FollowerPage"];
|
|
10871
|
+
};
|
|
10872
|
+
};
|
|
10873
|
+
readonly 400: components["responses"]["Error"];
|
|
10874
|
+
readonly 401: components["responses"]["Error"];
|
|
10875
|
+
readonly 403: components["responses"]["Error"];
|
|
10876
|
+
readonly 404: components["responses"]["Error"];
|
|
10877
|
+
readonly 429: components["responses"]["RateLimited"];
|
|
10878
|
+
readonly 503: components["responses"]["Unavailable"];
|
|
10879
|
+
};
|
|
10880
|
+
};
|
|
10694
10881
|
readonly followTrader: {
|
|
10695
10882
|
readonly parameters: {
|
|
10696
10883
|
readonly query?: never;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const sdkVersion = "
|
|
2
|
-
export declare const openapiSha256 = "
|
|
1
|
+
export declare const sdkVersion = "249.0.0-follower-lists";
|
|
2
|
+
export declare const openapiSha256 = "1e2a61b357d15df32b4712130bf0f2edb5de0c0b15b4104c6d442adedba61138";
|
|
3
3
|
export declare const realtimeSha256 = "cf0bafff0b355ea9fb642d4a3402dcc2a4e5fc7569a2b448184beb4043d154ef";
|
|
4
4
|
export declare const jsonSchemaSha256: {
|
|
5
5
|
readonly "account.schema.json": "e6cd5a75429d074f23bd7f6ffd370fa59d0e3f7dbd6aef6433e5ba0d21b5baeb";
|
|
@@ -16,10 +16,10 @@ export declare const jsonSchemaSha256: {
|
|
|
16
16
|
readonly "product-metadata.schema.json": "7c8ffbde878a0aedaed16814fcfd2e80038054b140886cc8736bb7b508042631";
|
|
17
17
|
readonly "quote.schema.json": "52ee1f4708c8b1504e4cd2f2f9279e14c8ec8aeacac1f491441ae0e15ac3c71a";
|
|
18
18
|
readonly "realtime.schema.json": "cf0bafff0b355ea9fb642d4a3402dcc2a4e5fc7569a2b448184beb4043d154ef";
|
|
19
|
-
readonly "social.schema.json": "
|
|
19
|
+
readonly "social.schema.json": "d1d6bb03269ac5a527c134bfd884f41b5baac0a48cc12f98980d08691020e1a4";
|
|
20
20
|
};
|
|
21
21
|
export declare const operations: {
|
|
22
|
-
readonly client: readonly ["abandonCoreExit", "acceptQuote", "activeCoreExits", "admitOwnMaker", "admitPartnerWallet", "approveWallet", "bindEmbeddedWallet", "cancelRfq", "confirmComboCopyAgent", "confirmCoreCopyAgent", "createCashout", "createComment", "createCoreExit", "createDeposit", "createGoldenRfq", "createRfq", "createRunOffClaim", "createWalletChallenge", "createWalletSession", "createWithdrawal", "deleteComment", "editComment", "endWalletSession", "followTrader", "getAcceptance", "getAccountActivity", "getAccountPnl", "getAccountPosition", "getAccountValue", "getBalances", "getCopyAgents", "getCopyBudget", "getCopySettings", "getCopySummary", "getCoreExit", "getDeployment", "getGenesis", "getGolden", "getGoldenMarkets", "getGoldenOffer", "getGoldenSuggestions", "getHypercoreBalance", "getHypercorePortfolio", "getHypercoreSettlementCredits", "getIdentity", "getMakerActivity", "getMakerCapital", "getMakerExposure", "getMakerPerformance", "getMakerPosition", "getMakerQuotes", "getMakerTelemetry", "getMakerVaultFundingTransaction", "getMakerWithdrawal", "getMarket", "getMarketDataConfig", "getMarketDefinitions", "getMarketDisplay", "getMarketHistory", "getMarketRecurringRound", "getMarketReferenceCloses", "getMarketRoundHistory", "getMarketScoreTimeline", "getMarketStats", "getMyGenesis", "getMyReferralBonus", "getOperation", "getOutcomeMetadata", "getOwnMaker", "getPartnerAccountValue", "getPartnerReport", "getPerpMarks", "getPicture", "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", "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", "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", "getGenesis", "getGolden", "getGoldenMarkets", "getGoldenOffer", "getGoldenSuggestions", "getHypercoreBalance", "getHypercorePortfolio", "getHypercoreSettlementCredits", "getIdentity", "getMakerActivity", "getMakerCapital", "getMakerExposure", "getMakerPerformance", "getMakerPosition", "getMakerQuotes", "getMakerTelemetry", "getMakerVaultFundingTransaction", "getMakerWithdrawal", "getMarket", "getMarketDataConfig", "getMarketDefinitions", "getMarketDisplay", "getMarketHistory", "getMarketRecurringRound", "getMarketReferenceCloses", "getMarketRoundHistory", "getMarketScoreTimeline", "getMarketStats", "getMyGenesis", "getMyReferralBonus", "getOperation", "getOutcomeMetadata", "getOwnMaker", "getPartnerAccountValue", "getPartnerReport", "getPerpMarks", "getPicture", "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", "listFollowers", "listFollowingFeed", "listFollowingPositions", "listFollows", "listMakerActivity", "listMakerPositions", "listMakerQuoteHistory", "listMarkets", "listMyNotifications", "listOperations", "listPartnerFills", "listPartnerWebhookEvents", "listQuotes", "listSocialActivity", "listSocialFeed", "listSocialFollowers", "listSocialFollowing", "listSocialPositions", "listTraderPositions", "listTraderTrades", "markMyNotificationsRead", "placeGolden", "reactComment", "recordAcquisition", "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 ["cancelQuote", "confirmQuote", "createCollateralReduction", "createQuote", "getAccountActivity", "getAccountPosition", "getCollateralReduction", "getDeployment", "getMakerActivity", "getMakerCapital", "getMakerExposure", "getMakerPerformance", "getMakerPosition", "getMakerQuotes", "getMakerTelemetry", "getMakerTelemetryPublication", "getMakerVaultFundingTransaction", "getMakerWithdrawal", "getMarket", "getMarketDisplay", "getMarketHistory", "getMarketRecurringRound", "getMarketReferenceCloses", "getMarketRoundHistory", "getOperation", "getQuestion", "getQuestionRecurringRound", "getRfq", "getSeries", "getTaxonomy", "listAccountActivity", "listAccountPositions", "listDiscovery", "listMakerAcceptances", "listMakerActivity", "listMakerPositions", "listMakerQuoteHistory", "listMarkets", "listOperations", "listRfqs", "publishMakerTelemetry", "releaseQuoteLease", "renewQuoteLease", "searchCatalog", "stream", "submitMakerSelfFundedTransaction"];
|
|
24
24
|
readonly operator: readonly ["live", "ready"];
|
|
25
25
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Generated by scripts/generate.mjs; do not edit.
|
|
2
|
-
export const sdkVersion = "
|
|
3
|
-
export const openapiSha256 = "
|
|
2
|
+
export const sdkVersion = "249.0.0-follower-lists";
|
|
3
|
+
export const openapiSha256 = "1e2a61b357d15df32b4712130bf0f2edb5de0c0b15b4104c6d442adedba61138";
|
|
4
4
|
export const realtimeSha256 = "cf0bafff0b355ea9fb642d4a3402dcc2a4e5fc7569a2b448184beb4043d154ef";
|
|
5
5
|
export const jsonSchemaSha256 = {
|
|
6
6
|
"account.schema.json": "e6cd5a75429d074f23bd7f6ffd370fa59d0e3f7dbd6aef6433e5ba0d21b5baeb",
|
|
@@ -17,7 +17,7 @@ export const jsonSchemaSha256 = {
|
|
|
17
17
|
"product-metadata.schema.json": "7c8ffbde878a0aedaed16814fcfd2e80038054b140886cc8736bb7b508042631",
|
|
18
18
|
"quote.schema.json": "52ee1f4708c8b1504e4cd2f2f9279e14c8ec8aeacac1f491441ae0e15ac3c71a",
|
|
19
19
|
"realtime.schema.json": "cf0bafff0b355ea9fb642d4a3402dcc2a4e5fc7569a2b448184beb4043d154ef",
|
|
20
|
-
"social.schema.json": "
|
|
20
|
+
"social.schema.json": "d1d6bb03269ac5a527c134bfd884f41b5baac0a48cc12f98980d08691020e1a4"
|
|
21
21
|
};
|
|
22
22
|
export const operations = {
|
|
23
23
|
"client": [
|
|
@@ -125,6 +125,7 @@ export const operations = {
|
|
|
125
125
|
"listCopiedFills",
|
|
126
126
|
"listCopyTrades",
|
|
127
127
|
"listDiscovery",
|
|
128
|
+
"listFollowers",
|
|
128
129
|
"listFollowingFeed",
|
|
129
130
|
"listFollowingPositions",
|
|
130
131
|
"listFollows",
|
|
@@ -139,6 +140,8 @@ export const operations = {
|
|
|
139
140
|
"listQuotes",
|
|
140
141
|
"listSocialActivity",
|
|
141
142
|
"listSocialFeed",
|
|
143
|
+
"listSocialFollowers",
|
|
144
|
+
"listSocialFollowing",
|
|
142
145
|
"listSocialPositions",
|
|
143
146
|
"listTraderPositions",
|
|
144
147
|
"listTraderTrades",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@totalis/hip4-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.116.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": [
|