@totalis/hip4-client 0.104.0 → 0.106.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 +42 -0
- package/README.md +38 -0
- package/dist/client.d.ts +2 -1
- package/dist/client.js +2 -1
- package/dist/generated/account-read.d.ts +1 -1
- package/dist/generated/api-keys.d.ts +1 -1
- package/dist/generated/browse.d.ts +1 -1
- package/dist/generated/client.d.ts +4 -1
- package/dist/generated/errors.d.ts +25 -1
- package/dist/generated/errors.js +64 -0
- package/dist/generated/openapi.d.ts +245 -23
- package/dist/generated/version.d.ts +7 -7
- package/dist/generated/version.js +11 -7
- package/dist/request.d.ts +6 -0
- package/dist/request.js +8 -0
- package/dist/singles.d.ts +233 -0
- package/dist/singles.js +372 -0
- package/package.json +1 -1
|
@@ -686,7 +686,7 @@ export type paths = {
|
|
|
686
686
|
readonly put?: never;
|
|
687
687
|
/**
|
|
688
688
|
* Refresh X picture
|
|
689
|
-
* @description Reads the profile picture and handle of the X account linked to the authenticated account's Privy login from Privy now, stores them and returns them
|
|
689
|
+
* @description Reads the profile picture and handle of the X account linked to the authenticated account's Privy login from Privy now, stores them and returns them with the picture the profile shows (picture_url, as GET /v1/me serves it): GET /v1/me, comments and the leaderboard then serve the picture unless an uploaded picture or PUT /v1/me/picture/x hides it, and GET /v1/me and the public trader profile the handle. Call it right after the user links or unlinks X. Send no body. Call it after POST /v1/me/embedded-wallet; before that it is 404 IDENTITY_NOT_FOUND. Reading again stores Privy's answer again, so a retry is safe; send no Idempotency-Key. If Privy does not answer it is 503 DEPENDENCY_STALE and the stored picture stays; a server without a Privy app secret answers 503 CONTRACT_UNAVAILABLE. An account that signs in with an external wallet has no Privy login, so it gets the stored picture back. Limited to 10 calls a minute per account.
|
|
690
690
|
*/
|
|
691
691
|
readonly post: operations["refreshPicture"];
|
|
692
692
|
readonly delete?: never;
|
|
@@ -695,6 +695,70 @@ export type paths = {
|
|
|
695
695
|
readonly patch?: never;
|
|
696
696
|
readonly trace?: never;
|
|
697
697
|
};
|
|
698
|
+
readonly "/v1/me/picture/x": {
|
|
699
|
+
readonly parameters: {
|
|
700
|
+
readonly query?: never;
|
|
701
|
+
readonly header?: never;
|
|
702
|
+
readonly path?: never;
|
|
703
|
+
readonly cookie?: never;
|
|
704
|
+
};
|
|
705
|
+
readonly get?: never;
|
|
706
|
+
/**
|
|
707
|
+
* Show or hide the X picture
|
|
708
|
+
* @description Shows (shown: true) or hides the X picture of the authenticated account in place of its generated avatar, on GET /v1/me and wherever the account appears: comments, follows, leaderboards, social reads and the public trader profile. It starts shown: linking X is the consent, and this switch takes it back. It is a preference, kept whether or not X is linked, and it neither unlinks X nor stops the server reading the picture, so showing it again is immediate. An uploaded picture (PUT /v1/me/picture/upload) shows over either. GET /v1/me returns the state as x_picture_shown. Asking for the current state again returns 204. Idempotency-Keys order these requests: other input under the account's newest key, or under an older key, is 409 IDEMPOTENCY_KEY_REUSED, so a delayed retry never undoes a newer request; the same request again under its key succeeds, so a retry is safe. A key stamped more than 5 minutes ahead of server time is 400 INVALID_REQUEST. Call it after POST /v1/me/embedded-wallet; before that it is 404 IDENTITY_NOT_FOUND. Shares PUT /v1/me/avatar's 30 calls a minute per account. Hiding it reaches signed-out readers within the 30 seconds the edge may cache public reads. Servers before contract 241 answer 404.
|
|
709
|
+
*/
|
|
710
|
+
readonly put: operations["setXPictureShown"];
|
|
711
|
+
readonly post?: never;
|
|
712
|
+
readonly delete?: never;
|
|
713
|
+
readonly options?: never;
|
|
714
|
+
readonly head?: never;
|
|
715
|
+
readonly patch?: never;
|
|
716
|
+
readonly trace?: never;
|
|
717
|
+
};
|
|
718
|
+
readonly "/v1/me/picture/upload": {
|
|
719
|
+
readonly parameters: {
|
|
720
|
+
readonly query?: never;
|
|
721
|
+
readonly header?: never;
|
|
722
|
+
readonly path?: never;
|
|
723
|
+
readonly cookie?: never;
|
|
724
|
+
};
|
|
725
|
+
readonly get?: never;
|
|
726
|
+
/**
|
|
727
|
+
* Upload a profile picture
|
|
728
|
+
* @description Uploads a profile picture for the authenticated account: the body is the image itself, a JPEG, PNG or WebP of at most 5 MB (422 PICTURE_TOO_LARGE) and at most 4096 pixels a side (422 PICTURE_TOO_MANY_PIXELS), labelled by its Content-Type. The server decodes it (422 PICTURE_UNREADABLE when it cannot), crops its centre square, scales it to 400x400, shows transparency on white and re-encodes it as a JPEG, so no byte or metadata of the original, such as its location, is kept or served. The answer is the URL it is served at, GET /v1/pictures/{picture}, named by the SHA-256 of those bytes. From then on the profile shows it in place of the X picture and the generated avatar, on GET /v1/me (picture_source UPLOAD) and wherever the account appears; DELETE /v1/me/picture/upload removes it. An account an operator stopped uploading is 403 PICTURE_UPLOADS_BLOCKED, and a picture an operator removed is 409 PICTURE_REMOVED. Idempotency-Keys order these requests: other input under the account's newest key, or under an older key, is 409 IDEMPOTENCY_KEY_REUSED, so a delayed retry never undoes a newer request; the same request again under its key succeeds, so a retry is safe. A key stamped more than 5 minutes ahead of server time is 400 INVALID_REQUEST. Call it after POST /v1/me/embedded-wallet; before that it is 404 IDENTITY_NOT_FOUND. Shares DELETE /v1/me/picture/upload's 10 calls a minute per account. A server not configured to serve pictures answers 503 CONTRACT_UNAVAILABLE. Servers before contract 241 answer 404.
|
|
729
|
+
*/
|
|
730
|
+
readonly put: operations["uploadPicture"];
|
|
731
|
+
readonly post?: never;
|
|
732
|
+
/**
|
|
733
|
+
* Remove the uploaded profile picture
|
|
734
|
+
* @description Removes the authenticated account's uploaded picture: the profile shows its X picture again unless PUT /v1/me/picture/x hid it, else the generated avatar. The picture's URL stops being served unless another account uploaded the same picture, within the 5 minutes browsers and the edge may cache it. Removing when there is none returns 204. Idempotency-Keys order these requests: other input under the account's newest key, or under an older key, is 409 IDEMPOTENCY_KEY_REUSED, so a delayed retry never undoes a newer request; the same request again under its key succeeds, so a retry is safe. A key stamped more than 5 minutes ahead of server time is 400 INVALID_REQUEST. Call it after POST /v1/me/embedded-wallet; before that it is 404 IDENTITY_NOT_FOUND. Shares PUT /v1/me/picture/upload's 10 calls a minute per account. Servers before contract 241 answer 404.
|
|
735
|
+
*/
|
|
736
|
+
readonly delete: operations["removeUploadedPicture"];
|
|
737
|
+
readonly options?: never;
|
|
738
|
+
readonly head?: never;
|
|
739
|
+
readonly patch?: never;
|
|
740
|
+
readonly trace?: never;
|
|
741
|
+
};
|
|
742
|
+
readonly "/v1/pictures/{picture}": {
|
|
743
|
+
readonly parameters: {
|
|
744
|
+
readonly query?: never;
|
|
745
|
+
readonly header?: never;
|
|
746
|
+
readonly path?: never;
|
|
747
|
+
readonly cookie?: never;
|
|
748
|
+
};
|
|
749
|
+
/**
|
|
750
|
+
* Get an uploaded profile picture
|
|
751
|
+
* @description Serves a profile picture an account uploaded, as a 400x400 JPEG named by the SHA-256 of its bytes, to anyone: picture_url points here. Cache-Control is public, max-age=300, and the edge keeps it no longer, so one an operator removed, or its account replaced or removed, answers 404 NOT_FOUND everywhere within 5 minutes. Credentials are ignored. Limited per source address.
|
|
752
|
+
*/
|
|
753
|
+
readonly get: operations["getPicture"];
|
|
754
|
+
readonly put?: never;
|
|
755
|
+
readonly post?: never;
|
|
756
|
+
readonly delete?: never;
|
|
757
|
+
readonly options?: never;
|
|
758
|
+
readonly head?: never;
|
|
759
|
+
readonly patch?: never;
|
|
760
|
+
readonly trace?: never;
|
|
761
|
+
};
|
|
698
762
|
readonly "/v1/deployment": {
|
|
699
763
|
readonly parameters: {
|
|
700
764
|
readonly query?: never;
|
|
@@ -744,7 +808,7 @@ export type paths = {
|
|
|
744
808
|
};
|
|
745
809
|
/**
|
|
746
810
|
* Get the golden ticket
|
|
747
|
-
* @description The account's golden ticket (TT-2624): one free Combo for an account created from an invite code
|
|
811
|
+
* @description The account's golden ticket (TT-2624): one free Combo for an account created from an invite code's golden link while the code still had free Combos to unlock, null for any other account or where golden Combos are off. A ticket is LOCKED until this account unlocks it (POST /v1/me/golden/unlock); a LOCKED ticket is returned like any other, never null. A ticket not yet unlocked here first takes an unlock this account already made whose answer was lost, so another device or a reload sees it; reading never reads X or takes anything, and answers DEPENDENCY_STALE, not LOCKED, when that cannot be checked.
|
|
748
812
|
*/
|
|
749
813
|
readonly get: operations["getGolden"];
|
|
750
814
|
readonly put?: never;
|
|
@@ -3354,8 +3418,8 @@ export type components = {
|
|
|
3354
3418
|
readonly username: components["schemas"]["Username"];
|
|
3355
3419
|
/** @description The seed clients draw the trader's generated avatar from, as for GET /v1/traders/{username}. */
|
|
3356
3420
|
readonly avatar_seed: components["schemas"]["AvatarSeed"];
|
|
3357
|
-
/** @description The trader's X picture, shown in place of the generated avatar; absent
|
|
3358
|
-
readonly picture_url?: components["schemas"]["
|
|
3421
|
+
/** @description The picture the trader's profile shows: their uploaded picture, else their X picture unless they hid it with PUT /v1/me/picture/x, shown in place of the generated avatar; absent for the generated avatar. */
|
|
3422
|
+
readonly picture_url?: components["schemas"]["ProfilePictureUrl"];
|
|
3359
3423
|
/** @description The trader's Genesis Account badge; absent when they have not earned it. Servers before contract 227 omit it. */
|
|
3360
3424
|
readonly genesis?: components["schemas"]["$defs-Timestamp"];
|
|
3361
3425
|
/** @description HyperEVM block time of the ticket's opening. */
|
|
@@ -3848,7 +3912,7 @@ export type components = {
|
|
|
3848
3912
|
* @description Stable HTTP error code. Each code has one HTTP status and one retry value.
|
|
3849
3913
|
* @enum {string}
|
|
3850
3914
|
*/
|
|
3851
|
-
readonly ErrorCode: "INVALID_REQUEST" | "INVALID_QUERY" | "INVALID_CURSOR" | "INVALID_IDEMPOTENCY_KEY" | "ORIGIN_REQUIRED" | "SUBPROTOCOL_REQUIRED" | "UNSUPPORTED_BROWSE_CONTRACT" | "UNAUTHENTICATED" | "FORBIDDEN" | "ORIGIN_NOT_ALLOWED" | "ACCESS_REQUIRED" | "SIGN_IN_REQUIRED" | "NOT_FOUND" | "IDENTITY_NOT_FOUND" | "QUOTE_NOT_FOUND" | "INVITE_CODE_NOT_FOUND" | "IDEMPOTENCY_KEY_REUSED" | "STATE_CONFLICT" | "INVITE_CODE_EXHAUSTED" | "STALE_CURSOR" | "CURSOR_EXPIRED" | "CURSOR_RESET" | "RECURRING_DEFINITION_CONFLICT" | "EMBEDDED_WALLET_CONFLICT" | "SECRET_UNAVAILABLE" | "ROTATION_IN_PROGRESS" | "TELEMETRY_CONFLICT" | "RFQ_NOT_CANCELLABLE" | "RFQ_NOT_OPEN" | "RFQ_GENERATION_STALE" | "RFQ_GENERATION_IN_FLIGHT" | "QUOTE_EXPIRED" | "QUOTE_CANCELLED" | "QUOTE_REPLACED" | "QUOTE_SIGNER_CHANGED" | "QUOTE_CAPACITY_EXCEEDED" | "CORE_ACCOUNT_NOT_READY" | "CORE_ACCOUNT_ACTIVATION_REQUIRED" | "CORE_EXIT_ABANDONED" | "CORE_MOVE_IN_FLIGHT" | "ACCEPTANCE_IN_FLIGHT" | "USERNAME_TAKEN" | "USERNAME_ALREADY_SET" | "USERNAME_REQUIRED" | "GOLDEN_TICKET_NONE" | "GOLDEN_TICKET_USED" | "GOLDEN_TICKET_EXPIRED" | "GOLDEN_PLACEMENT_IN_FLIGHT" | "GOLDEN_PROMO_BUSY" | "GOLDEN_CASHOUT_REFUSED" | "GOLDEN_OFFER_BELOW_FLOOR" | "GOLDEN_GIFT_TERMS_EXPIRED" | "GOLDEN_UNLOCK_REQUIRED" | "GOLDEN_GIVEN_OUT" | "GOLDEN_CODE_DISABLED" | "X_REQUIRED" | "X_ALREADY_CLAIMED" | "GOLDEN_NOT_ELIGIBLE" | "INVALID_SIGNATURE" | "WALLET_CONTRACT_UNSUPPORTED" | "WRONG_AUTHORITY" | "KEY_LIMIT_REACHED" | "USERNAME_NOT_ALLOWED" | "FOLLOW_SELF" | "FOLLOW_LIMIT_REACHED" | "GOLDEN_LEG_COUNT" | "GOLDEN_LEG_NOT_ELIGIBLE" | "GOLDEN_QUOTE_NOT_HOUSE" | "RATE_LIMITED" | "CONNECTION_LIMIT" | "RFQ_INTENT_LIMIT" | "QUOTE_EXPOSURE_LIMIT" | "DEPENDENCY_STALE" | "AUTHORIZATION_UNAVAILABLE" | "SOURCE_UNAVAILABLE" | "CONTRACT_UNAVAILABLE" | "MARKET_DATA_UNAVAILABLE" | "BROWSE_UNAVAILABLE" | "FINANCIAL_ACTIONS_DISABLED" | "CORE_EXIT_UNAVAILABLE" | "COLLATERAL_REDUCTION_UNAVAILABLE" | "SPONSORSHIP_UNAVAILABLE" | "CONTRACT_SIGNATURE_OVERLOADED" | "QUOTE_EXPOSURE_STALE" | "COMBO_AUTOMATIC_DISABLED" | "GAS_PRICE_ABOVE_CEILING" | "EXECUTION_BACKLOG_FULL" | "EMBEDDED_WALLET_UNAVAILABLE" | "GOLDEN_PROMO_FUNDS_LOW" | "X_VERIFICATION_UNAVAILABLE" | "CONNECTION_DRAIN";
|
|
3915
|
+
readonly ErrorCode: "INVALID_REQUEST" | "INVALID_QUERY" | "INVALID_CURSOR" | "INVALID_IDEMPOTENCY_KEY" | "ORIGIN_REQUIRED" | "SUBPROTOCOL_REQUIRED" | "UNSUPPORTED_BROWSE_CONTRACT" | "UNAUTHENTICATED" | "FORBIDDEN" | "ORIGIN_NOT_ALLOWED" | "ACCESS_REQUIRED" | "PICTURE_UPLOADS_BLOCKED" | "SIGN_IN_REQUIRED" | "NOT_FOUND" | "IDENTITY_NOT_FOUND" | "QUOTE_NOT_FOUND" | "INVITE_CODE_NOT_FOUND" | "IDEMPOTENCY_KEY_REUSED" | "STATE_CONFLICT" | "INVITE_CODE_EXHAUSTED" | "STALE_CURSOR" | "CURSOR_EXPIRED" | "CURSOR_RESET" | "RECURRING_DEFINITION_CONFLICT" | "EMBEDDED_WALLET_CONFLICT" | "SECRET_UNAVAILABLE" | "ROTATION_IN_PROGRESS" | "TELEMETRY_CONFLICT" | "RFQ_NOT_CANCELLABLE" | "RFQ_NOT_OPEN" | "RFQ_GENERATION_STALE" | "RFQ_GENERATION_IN_FLIGHT" | "QUOTE_EXPIRED" | "QUOTE_CANCELLED" | "QUOTE_REPLACED" | "QUOTE_SIGNER_CHANGED" | "QUOTE_CAPACITY_EXCEEDED" | "CORE_ACCOUNT_NOT_READY" | "CORE_ACCOUNT_ACTIVATION_REQUIRED" | "CORE_EXIT_ABANDONED" | "CORE_MOVE_IN_FLIGHT" | "ACCEPTANCE_IN_FLIGHT" | "USERNAME_TAKEN" | "USERNAME_ALREADY_SET" | "PICTURE_REMOVED" | "USERNAME_REQUIRED" | "GOLDEN_TICKET_NONE" | "GOLDEN_TICKET_USED" | "GOLDEN_TICKET_EXPIRED" | "GOLDEN_PLACEMENT_IN_FLIGHT" | "GOLDEN_PROMO_BUSY" | "GOLDEN_CASHOUT_REFUSED" | "GOLDEN_OFFER_BELOW_FLOOR" | "GOLDEN_GIFT_TERMS_EXPIRED" | "GOLDEN_UNLOCK_REQUIRED" | "GOLDEN_GIVEN_OUT" | "GOLDEN_CODE_DISABLED" | "X_REQUIRED" | "X_ALREADY_CLAIMED" | "GOLDEN_NOT_ELIGIBLE" | "INVALID_SIGNATURE" | "WALLET_CONTRACT_UNSUPPORTED" | "WRONG_AUTHORITY" | "KEY_LIMIT_REACHED" | "USERNAME_NOT_ALLOWED" | "PICTURE_TOO_LARGE" | "PICTURE_UNREADABLE" | "PICTURE_TOO_MANY_PIXELS" | "FOLLOW_SELF" | "FOLLOW_LIMIT_REACHED" | "GOLDEN_LEG_COUNT" | "GOLDEN_LEG_NOT_ELIGIBLE" | "GOLDEN_QUOTE_NOT_HOUSE" | "RATE_LIMITED" | "CONNECTION_LIMIT" | "RFQ_INTENT_LIMIT" | "QUOTE_EXPOSURE_LIMIT" | "DEPENDENCY_STALE" | "AUTHORIZATION_UNAVAILABLE" | "SOURCE_UNAVAILABLE" | "CONTRACT_UNAVAILABLE" | "MARKET_DATA_UNAVAILABLE" | "BROWSE_UNAVAILABLE" | "FINANCIAL_ACTIONS_DISABLED" | "CORE_EXIT_UNAVAILABLE" | "COLLATERAL_REDUCTION_UNAVAILABLE" | "SPONSORSHIP_UNAVAILABLE" | "CONTRACT_SIGNATURE_OVERLOADED" | "QUOTE_EXPOSURE_STALE" | "COMBO_AUTOMATIC_DISABLED" | "GAS_PRICE_ABOVE_CEILING" | "EXECUTION_BACKLOG_FULL" | "EMBEDDED_WALLET_UNAVAILABLE" | "GOLDEN_PROMO_FUNDS_LOW" | "X_VERIFICATION_UNAVAILABLE" | "CONNECTION_DRAIN";
|
|
3852
3916
|
readonly FieldViolation: {
|
|
3853
3917
|
/**
|
|
3854
3918
|
* @description REQUIRED: the input is missing. INVALID: it is present but malformed or out of range. UNEXPECTED: the input is not accepted here.
|
|
@@ -4521,6 +4585,8 @@ export type components = {
|
|
|
4521
4585
|
readonly Uuid: string;
|
|
4522
4586
|
/** @description A random (version 4) UUID, lowercase. */
|
|
4523
4587
|
readonly AvatarSeed: string;
|
|
4588
|
+
/** @description A profile picture: an X picture (XPictureUrl), or one the account uploaded, served by this API at /v1/pictures/{sha256}.jpg as a 400x400 JPEG named by the SHA-256 of its bytes. Clients may cache it for 5 minutes, so a removed picture disappears within 5 minutes. */
|
|
4589
|
+
readonly ProfilePictureUrl: string;
|
|
4524
4590
|
/** @description An X profile picture on pbs.twimg.com or abs.twimg.com, at the size X gave Privy, usually the 48-pixel file ending in _normal; X also serves _bigger (73 px) and _400x400 under the same name. */
|
|
4525
4591
|
readonly XPictureUrl: string;
|
|
4526
4592
|
/** @description An X handle without the @, in the case X gave Privy: 1 to 15 letters, digits or underscores. Clients link it as https://x.com/{handle}. */
|
|
@@ -4537,8 +4603,17 @@ export type components = {
|
|
|
4537
4603
|
readonly username?: components["schemas"]["Username"] | null;
|
|
4538
4604
|
/** @description Random seed assigned when the account is created; the account can change it with PUT /v1/me/avatar. Clients draw the account's generated avatar from it, so the avatar is the same on every device. Servers before contract 134 omit it. */
|
|
4539
4605
|
readonly avatar_seed?: components["schemas"]["AvatarSeed"];
|
|
4540
|
-
/** @description The
|
|
4541
|
-
readonly picture_url?: components["schemas"]["
|
|
4606
|
+
/** @description The picture the account's profile shows in place of the generated avatar, the same on every device and wherever the account appears (picture_source): the picture it uploaded with PUT /v1/me/picture/upload, else x_picture_url unless x_picture_shown is false. Absent when the profile shows the generated avatar. Servers before contract 186 omit it, and before contract 241 it is always x_picture_url. */
|
|
4607
|
+
readonly picture_url?: components["schemas"]["ProfilePictureUrl"];
|
|
4608
|
+
/**
|
|
4609
|
+
* @description Where picture_url comes from: UPLOAD for the account's uploaded picture, X for its X picture, GENERATED when picture_url is absent and clients draw the avatar from avatar_seed. Servers before contract 241 omit it.
|
|
4610
|
+
* @enum {unknown}
|
|
4611
|
+
*/
|
|
4612
|
+
readonly picture_source?: "UPLOAD" | "X" | "GENERATED";
|
|
4613
|
+
/** @description The profile picture of the X account linked to the account's Privy login, whether or not the profile shows it. The server reads it from Privy on the first GET /v1/me after each sign-in and on POST /v1/me/picture, and serves what it last read: if Privy does not answer, the earlier picture stays until a later GET /v1/me reads it. Absent when the server has no picture: none is linked, it is not on X's profile picture hosts, it has not been read yet, or the server has no Privy app secret. Servers before contract 241 omit it. */
|
|
4614
|
+
readonly x_picture_url?: components["schemas"]["XPictureUrl"];
|
|
4615
|
+
/** @description Whether the profile shows x_picture_url when it has no uploaded picture: true until the account hides it with PUT /v1/me/picture/x, whether or not X is linked. Servers before contract 241 omit it. */
|
|
4616
|
+
readonly x_picture_shown?: boolean;
|
|
4542
4617
|
/** @description The account's wallet: its Privy embedded wallet, or the one wallet of an account that signs in with an external wallet. It is the account's owner, which signs API-key issuance, and its signer, which signs its financial actions. */
|
|
4543
4618
|
readonly wallet: components["schemas"]["LowercaseNonZeroAddress"];
|
|
4544
4619
|
/**
|
|
@@ -4900,11 +4975,26 @@ export type components = {
|
|
|
4900
4975
|
readonly avatar_seed: components["schemas"]["AvatarSeed"];
|
|
4901
4976
|
};
|
|
4902
4977
|
readonly PictureRefresh: {
|
|
4903
|
-
/** @description The
|
|
4904
|
-
readonly picture_url?: components["schemas"]["
|
|
4978
|
+
/** @description The picture the profile shows after this read, as GET /v1/me's picture_url: absent for the generated avatar. Before contract 241 it is always the linked X account's picture. */
|
|
4979
|
+
readonly picture_url?: components["schemas"]["ProfilePictureUrl"];
|
|
4980
|
+
/**
|
|
4981
|
+
* @description Where picture_url comes from, as GET /v1/me's picture_source. Servers before contract 241 omit it.
|
|
4982
|
+
* @enum {unknown}
|
|
4983
|
+
*/
|
|
4984
|
+
readonly picture_source?: "UPLOAD" | "X" | "GENERATED";
|
|
4985
|
+
/** @description The linked X account's picture; absent when none is linked or it is not on X's profile picture hosts. Servers before contract 241 omit it. */
|
|
4986
|
+
readonly x_picture_url?: components["schemas"]["XPictureUrl"];
|
|
4905
4987
|
/** @description The linked X account's handle; absent when none is linked or X does not allow it. Servers before contract 210 omit it. */
|
|
4906
4988
|
readonly x_username?: components["schemas"]["XUsername"];
|
|
4907
4989
|
};
|
|
4990
|
+
readonly XPictureShownRequest: {
|
|
4991
|
+
/** @description true to show the X picture in place of the generated avatar, false to show the generated avatar. An uploaded picture shows over either. */
|
|
4992
|
+
readonly shown: boolean;
|
|
4993
|
+
};
|
|
4994
|
+
readonly PictureUploadResponse: {
|
|
4995
|
+
/** @description Where the uploaded picture is served; the profile shows it from now on. */
|
|
4996
|
+
readonly picture_url: components["schemas"]["ProfilePictureUrl"];
|
|
4997
|
+
};
|
|
4908
4998
|
/** @description The canonical contract deployment clients sign against. Totalis structs are signed under the TotalisParlay v1 domain with chainId chain_id and verifyingContract vault_address. */
|
|
4909
4999
|
readonly Deployment: {
|
|
4910
5000
|
/** @description EVM chain ID of the deployment and the EIP-712 domain chainId, as a decimal string: 999 on HyperEVM mainnet, 998 on testnet. */
|
|
@@ -5512,8 +5602,8 @@ export type components = {
|
|
|
5512
5602
|
readonly username: components["schemas"]["Username"];
|
|
5513
5603
|
/** @description The seed clients draw the person's generated avatar from. */
|
|
5514
5604
|
readonly avatar_seed: components["schemas"]["AvatarSeed"];
|
|
5515
|
-
/** @description
|
|
5516
|
-
readonly picture_url?: components["schemas"]["
|
|
5605
|
+
/** @description The picture their profile shows: their uploaded picture, else their X picture unless they hid it with PUT /v1/me/picture/x; absent for the generated avatar. */
|
|
5606
|
+
readonly picture_url?: components["schemas"]["ProfilePictureUrl"];
|
|
5517
5607
|
/** @description Their Genesis Account badge; absent when not earned. */
|
|
5518
5608
|
readonly genesis?: components["schemas"]["$defs-Timestamp"];
|
|
5519
5609
|
/** @description Their X handle; absent when there is none or they hid it. */
|
|
@@ -5611,8 +5701,8 @@ export type components = {
|
|
|
5611
5701
|
readonly username: components["schemas"]["Username"];
|
|
5612
5702
|
/** @description The seed clients draw the person's generated avatar from, as for GET /v1/me. */
|
|
5613
5703
|
readonly avatar_seed: components["schemas"]["AvatarSeed"];
|
|
5614
|
-
/** @description
|
|
5615
|
-
readonly picture_url?: components["schemas"]["
|
|
5704
|
+
/** @description The picture their profile shows: their uploaded picture, else their X picture unless they hid it with PUT /v1/me/picture/x; absent for the generated avatar. */
|
|
5705
|
+
readonly picture_url?: components["schemas"]["ProfilePictureUrl"];
|
|
5616
5706
|
/** @description Their Genesis Account badge; absent when not earned. */
|
|
5617
5707
|
readonly genesis?: components["schemas"]["$defs-Timestamp"];
|
|
5618
5708
|
};
|
|
@@ -5896,8 +5986,8 @@ export type components = {
|
|
|
5896
5986
|
readonly author: {
|
|
5897
5987
|
readonly username: components["schemas"]["Username"];
|
|
5898
5988
|
readonly avatar_seed: components["schemas"]["AvatarSeed"];
|
|
5899
|
-
/** @description The author's
|
|
5900
|
-
readonly picture_url?: components["schemas"]["
|
|
5989
|
+
/** @description The picture the author's profile shows, as GET /v1/me serves it to them; absent for the generated avatar. Servers before contract 186 omit it, and before contract 241 it is always their X picture. */
|
|
5990
|
+
readonly picture_url?: components["schemas"]["ProfilePictureUrl"];
|
|
5901
5991
|
/** @description The author's Genesis Account badge, read now; absent when they have not earned it or have their public profile off. Servers before contract 227 omit it. */
|
|
5902
5992
|
readonly genesis?: components["schemas"]["$defs-Timestamp"];
|
|
5903
5993
|
} | null;
|
|
@@ -9115,6 +9205,138 @@ export interface operations {
|
|
|
9115
9205
|
readonly 503: components["responses"]["Unavailable"];
|
|
9116
9206
|
};
|
|
9117
9207
|
};
|
|
9208
|
+
readonly setXPictureShown: {
|
|
9209
|
+
readonly parameters: {
|
|
9210
|
+
readonly query?: never;
|
|
9211
|
+
readonly header: {
|
|
9212
|
+
/**
|
|
9213
|
+
* @description Lowercase UUIDv7 naming this command, unique per caller and route. A retry with the same key and body returns the original result; the same key with a different body returns `409 IDEMPOTENCY_KEY_REUSED`.
|
|
9214
|
+
* @example 0198a6f6-82a5-7abc-9f2a-4f0fb437493e
|
|
9215
|
+
*/
|
|
9216
|
+
readonly "Idempotency-Key": components["parameters"]["IdempotencyKey"];
|
|
9217
|
+
};
|
|
9218
|
+
readonly path?: never;
|
|
9219
|
+
readonly cookie?: never;
|
|
9220
|
+
};
|
|
9221
|
+
readonly requestBody: {
|
|
9222
|
+
readonly content: {
|
|
9223
|
+
readonly "application/json": components["schemas"]["XPictureShownRequest"];
|
|
9224
|
+
};
|
|
9225
|
+
};
|
|
9226
|
+
readonly responses: {
|
|
9227
|
+
/** @description The X picture is in the requested state */
|
|
9228
|
+
readonly 204: {
|
|
9229
|
+
headers: {
|
|
9230
|
+
readonly [name: string]: unknown;
|
|
9231
|
+
};
|
|
9232
|
+
content?: never;
|
|
9233
|
+
};
|
|
9234
|
+
readonly 400: components["responses"]["Error"];
|
|
9235
|
+
readonly 401: components["responses"]["Error"];
|
|
9236
|
+
readonly 403: components["responses"]["Error"];
|
|
9237
|
+
readonly 404: components["responses"]["Error"];
|
|
9238
|
+
readonly 409: components["responses"]["Error"];
|
|
9239
|
+
readonly 429: components["responses"]["RateLimited"];
|
|
9240
|
+
readonly 503: components["responses"]["Unavailable"];
|
|
9241
|
+
};
|
|
9242
|
+
};
|
|
9243
|
+
readonly uploadPicture: {
|
|
9244
|
+
readonly parameters: {
|
|
9245
|
+
readonly query?: never;
|
|
9246
|
+
readonly header: {
|
|
9247
|
+
/**
|
|
9248
|
+
* @description Lowercase UUIDv7 naming this command, unique per caller and route. A retry with the same key and body returns the original result; the same key with a different body returns `409 IDEMPOTENCY_KEY_REUSED`.
|
|
9249
|
+
* @example 0198a6f6-82a5-7abc-9f2a-4f0fb437493e
|
|
9250
|
+
*/
|
|
9251
|
+
readonly "Idempotency-Key": components["parameters"]["IdempotencyKey"];
|
|
9252
|
+
};
|
|
9253
|
+
readonly path?: never;
|
|
9254
|
+
readonly cookie?: never;
|
|
9255
|
+
};
|
|
9256
|
+
readonly requestBody: {
|
|
9257
|
+
readonly content: {
|
|
9258
|
+
readonly "image/jpeg": Blob | ArrayBuffer | Uint8Array;
|
|
9259
|
+
readonly "image/png": Blob | ArrayBuffer | Uint8Array;
|
|
9260
|
+
readonly "image/webp": Blob | ArrayBuffer | Uint8Array;
|
|
9261
|
+
};
|
|
9262
|
+
};
|
|
9263
|
+
readonly responses: {
|
|
9264
|
+
/** @description The picture is stored and the profile shows it */
|
|
9265
|
+
readonly 200: {
|
|
9266
|
+
headers: {
|
|
9267
|
+
readonly [name: string]: unknown;
|
|
9268
|
+
};
|
|
9269
|
+
content: {
|
|
9270
|
+
readonly "application/json": components["schemas"]["PictureUploadResponse"];
|
|
9271
|
+
};
|
|
9272
|
+
};
|
|
9273
|
+
readonly 400: components["responses"]["Error"];
|
|
9274
|
+
readonly 401: components["responses"]["Error"];
|
|
9275
|
+
readonly 403: components["responses"]["Error"];
|
|
9276
|
+
readonly 404: components["responses"]["Error"];
|
|
9277
|
+
readonly 409: components["responses"]["Error"];
|
|
9278
|
+
readonly 422: components["responses"]["Error"];
|
|
9279
|
+
readonly 429: components["responses"]["RateLimited"];
|
|
9280
|
+
readonly 503: components["responses"]["Unavailable"];
|
|
9281
|
+
};
|
|
9282
|
+
};
|
|
9283
|
+
readonly removeUploadedPicture: {
|
|
9284
|
+
readonly parameters: {
|
|
9285
|
+
readonly query?: never;
|
|
9286
|
+
readonly header: {
|
|
9287
|
+
/**
|
|
9288
|
+
* @description Lowercase UUIDv7 naming this command, unique per caller and route. A retry with the same key and body returns the original result; the same key with a different body returns `409 IDEMPOTENCY_KEY_REUSED`.
|
|
9289
|
+
* @example 0198a6f6-82a5-7abc-9f2a-4f0fb437493e
|
|
9290
|
+
*/
|
|
9291
|
+
readonly "Idempotency-Key": components["parameters"]["IdempotencyKey"];
|
|
9292
|
+
};
|
|
9293
|
+
readonly path?: never;
|
|
9294
|
+
readonly cookie?: never;
|
|
9295
|
+
};
|
|
9296
|
+
readonly requestBody?: never;
|
|
9297
|
+
readonly responses: {
|
|
9298
|
+
/** @description The profile shows no uploaded picture */
|
|
9299
|
+
readonly 204: {
|
|
9300
|
+
headers: {
|
|
9301
|
+
readonly [name: string]: unknown;
|
|
9302
|
+
};
|
|
9303
|
+
content?: never;
|
|
9304
|
+
};
|
|
9305
|
+
readonly 400: components["responses"]["Error"];
|
|
9306
|
+
readonly 401: components["responses"]["Error"];
|
|
9307
|
+
readonly 403: components["responses"]["Error"];
|
|
9308
|
+
readonly 404: components["responses"]["Error"];
|
|
9309
|
+
readonly 409: components["responses"]["Error"];
|
|
9310
|
+
readonly 429: components["responses"]["RateLimited"];
|
|
9311
|
+
readonly 503: components["responses"]["Unavailable"];
|
|
9312
|
+
};
|
|
9313
|
+
};
|
|
9314
|
+
readonly getPicture: {
|
|
9315
|
+
readonly parameters: {
|
|
9316
|
+
readonly query?: never;
|
|
9317
|
+
readonly header?: never;
|
|
9318
|
+
readonly path: {
|
|
9319
|
+
/** @description The picture's name: the lowercase hex SHA-256 of its bytes and .jpg. */
|
|
9320
|
+
readonly picture: string;
|
|
9321
|
+
};
|
|
9322
|
+
readonly cookie?: never;
|
|
9323
|
+
};
|
|
9324
|
+
readonly requestBody?: never;
|
|
9325
|
+
readonly responses: {
|
|
9326
|
+
/** @description The picture */
|
|
9327
|
+
readonly 200: {
|
|
9328
|
+
headers: {
|
|
9329
|
+
readonly [name: string]: unknown;
|
|
9330
|
+
};
|
|
9331
|
+
content: {
|
|
9332
|
+
readonly "image/jpeg": Blob | ArrayBuffer | Uint8Array;
|
|
9333
|
+
};
|
|
9334
|
+
};
|
|
9335
|
+
readonly 404: components["responses"]["Error"];
|
|
9336
|
+
readonly 429: components["responses"]["RateLimited"];
|
|
9337
|
+
readonly 503: components["responses"]["Unavailable"];
|
|
9338
|
+
};
|
|
9339
|
+
};
|
|
9118
9340
|
readonly getDeployment: {
|
|
9119
9341
|
readonly parameters: {
|
|
9120
9342
|
readonly query?: never;
|
|
@@ -9561,8 +9783,8 @@ export interface operations {
|
|
|
9561
9783
|
readonly public_profile?: boolean;
|
|
9562
9784
|
/** @description The seed clients draw the trader's generated avatar from, as for GET /v1/me. Servers before contract 151 omit it. */
|
|
9563
9785
|
readonly avatar_seed?: components["schemas"]["AvatarSeed"];
|
|
9564
|
-
/** @description The profile picture
|
|
9565
|
-
readonly picture_url?: components["schemas"]["
|
|
9786
|
+
/** @description The picture the trader's profile shows: their uploaded picture, else their X picture unless they hid it with PUT /v1/me/picture/x, which clients show in place of the generated avatar. The same picture GET /v1/me serves the trader, as of when the ranking was read. Absent for the generated avatar. Servers before contract 167 omit it. */
|
|
9787
|
+
readonly picture_url?: components["schemas"]["ProfilePictureUrl"];
|
|
9566
9788
|
/** @description The Genesis Account badge, as of when the ranking was read: absent when the trader has not earned it or has their public profile off. Servers before contract 227 omit it. */
|
|
9567
9789
|
readonly genesis?: components["schemas"]["$defs-Timestamp"];
|
|
9568
9790
|
/** @description USDC in units of 10^-8, always above zero. */
|
|
@@ -9617,8 +9839,8 @@ export interface operations {
|
|
|
9617
9839
|
readonly public_profile?: boolean;
|
|
9618
9840
|
/** @description The seed clients draw the trader's generated avatar from, as for GET /v1/me. */
|
|
9619
9841
|
readonly avatar_seed: components["schemas"]["AvatarSeed"];
|
|
9620
|
-
/** @description The profile picture
|
|
9621
|
-
readonly picture_url?: components["schemas"]["
|
|
9842
|
+
/** @description The picture the trader's profile shows: their uploaded picture, else their X picture unless they hid it with PUT /v1/me/picture/x, which clients show in place of the generated avatar. The same picture GET /v1/me serves the trader, as of when the ranking was read. Absent for the generated avatar. Servers before contract 167 omit it. */
|
|
9843
|
+
readonly picture_url?: components["schemas"]["ProfilePictureUrl"];
|
|
9622
9844
|
/** @description The Genesis Account badge, as of when the ranking was read: absent when the trader has not earned it or has their public profile off. Servers before contract 227 omit it. */
|
|
9623
9845
|
readonly genesis?: components["schemas"]["$defs-Timestamp"];
|
|
9624
9846
|
/** @description USDC in atomic units (10^-6), always above zero. */
|
|
@@ -9732,8 +9954,8 @@ export interface operations {
|
|
|
9732
9954
|
readonly username: components["schemas"]["Username"];
|
|
9733
9955
|
/** @description The seed clients draw the trader's generated avatar from, as for GET /v1/me. */
|
|
9734
9956
|
readonly avatar_seed: components["schemas"]["AvatarSeed"];
|
|
9735
|
-
/** @description The trader's X picture, shown in place of the generated avatar; absent
|
|
9736
|
-
readonly picture_url?: components["schemas"]["
|
|
9957
|
+
/** @description The picture the trader's profile shows: their uploaded picture, else their X picture unless they hid it with PUT /v1/me/picture/x, shown in place of the generated avatar; absent for the generated avatar, as for GET /v1/me. */
|
|
9958
|
+
readonly picture_url?: components["schemas"]["ProfilePictureUrl"];
|
|
9737
9959
|
/** @description The handle of the X account linked to the trader's Privy login, as for GET /v1/me. Absent when there is none or the trader hid it with PUT /v1/me/public-profile/x; a signed-out answer the edge cached may show it for up to 30 seconds after it changes. Servers before contract 210 omit it. */
|
|
9738
9960
|
readonly x_username?: components["schemas"]["XUsername"];
|
|
9739
9961
|
/** @description The trader's Genesis Account badge; absent when they have not earned it. Servers before contract 227 omit it. */
|
|
@@ -10287,8 +10509,8 @@ export interface operations {
|
|
|
10287
10509
|
readonly username: components["schemas"]["Username"];
|
|
10288
10510
|
/** @description The seed clients draw the trader's generated avatar from, as for GET /v1/me. */
|
|
10289
10511
|
readonly avatar_seed: components["schemas"]["AvatarSeed"];
|
|
10290
|
-
/** @description The trader's X picture; absent
|
|
10291
|
-
readonly picture_url?: components["schemas"]["
|
|
10512
|
+
/** @description The picture the trader's profile shows: their uploaded picture, else their X picture unless they hid it with PUT /v1/me/picture/x; absent for the generated avatar. */
|
|
10513
|
+
readonly picture_url?: components["schemas"]["ProfilePictureUrl"];
|
|
10292
10514
|
/** @description When the account followed the trader. */
|
|
10293
10515
|
readonly followed_at: components["schemas"]["$defs-Timestamp"];
|
|
10294
10516
|
} & components["schemas"]["FollowSettingsFields"])[];
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export declare const sdkVersion = "
|
|
2
|
-
export declare const openapiSha256 = "
|
|
1
|
+
export declare const sdkVersion = "241.0.0-profile-pictures";
|
|
2
|
+
export declare const openapiSha256 = "1fcbf229544bef70130045e9cd4529044812516e7e68cd151f3431323a5f8e9b";
|
|
3
3
|
export declare const realtimeSha256 = "bea4893352a7110f2659560f3338d9fb5eb441269652a989a7aa9d42a5394554";
|
|
4
4
|
export declare const jsonSchemaSha256: {
|
|
5
5
|
readonly "account.schema.json": "e6cd5a75429d074f23bd7f6ffd370fa59d0e3f7dbd6aef6433e5ba0d21b5baeb";
|
|
6
|
-
readonly "comments.schema.json": "
|
|
6
|
+
readonly "comments.schema.json": "5773471b4442ba9d8af0dc012d71561baaf50d0e1c2571039241780848edb4a4";
|
|
7
7
|
readonly "common.schema.json": "04f51deb3cbea448e59195e26ede3212598d58a7940fe67eb2123fd9161c5edb";
|
|
8
8
|
readonly "core-exit.schema.json": "c7f617e815225cdcac95c236f8b73fbe288ee5713ff444c3be90eb915fc3a401";
|
|
9
|
-
readonly "error.schema.json": "
|
|
9
|
+
readonly "error.schema.json": "f444f3ff2a13553f1eea5eaab0088760862691c0d02c60641065cf46022a743f";
|
|
10
10
|
readonly "hypercore.schema.json": "5b89b2bbff7ec8cc1b8717375d12ce9cd5ab6aa5af03c4fdc6cc753ef9583a2c";
|
|
11
|
-
readonly "identity.schema.json": "
|
|
11
|
+
readonly "identity.schema.json": "896d975e5f4076cb34ae33f2dcfc41559fd3df1ed39e3d72ac9e342ca1f957fa";
|
|
12
12
|
readonly "maker-access.schema.json": "49698ee0235e42064aae0397db1e0f646bdc10d9dfa10121714ba06dd69fee3b";
|
|
13
13
|
readonly "maker-action.schema.json": "dc41e52c868848e85cdeb918992cb710d34616d2803a63f6d9a658e016744a50";
|
|
14
14
|
readonly "maker-telemetry.schema.json": "85b111ce0f4935299d1116071b43de12e775bef4e0c283c12f19046d34374a9c";
|
|
@@ -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": "bea4893352a7110f2659560f3338d9fb5eb441269652a989a7aa9d42a5394554";
|
|
19
|
-
readonly "social.schema.json": "
|
|
19
|
+
readonly "social.schema.json": "de0ddadf418a41d2c2cbe714afb5c83947cd34e05b8082f0ba016e18e0b3cd51";
|
|
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", "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"];
|
|
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", "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", "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", "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", "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,15 +1,15 @@
|
|
|
1
1
|
// Generated by scripts/generate.mjs; do not edit.
|
|
2
|
-
export const sdkVersion = "
|
|
3
|
-
export const openapiSha256 = "
|
|
2
|
+
export const sdkVersion = "241.0.0-profile-pictures";
|
|
3
|
+
export const openapiSha256 = "1fcbf229544bef70130045e9cd4529044812516e7e68cd151f3431323a5f8e9b";
|
|
4
4
|
export const realtimeSha256 = "bea4893352a7110f2659560f3338d9fb5eb441269652a989a7aa9d42a5394554";
|
|
5
5
|
export const jsonSchemaSha256 = {
|
|
6
6
|
"account.schema.json": "e6cd5a75429d074f23bd7f6ffd370fa59d0e3f7dbd6aef6433e5ba0d21b5baeb",
|
|
7
|
-
"comments.schema.json": "
|
|
7
|
+
"comments.schema.json": "5773471b4442ba9d8af0dc012d71561baaf50d0e1c2571039241780848edb4a4",
|
|
8
8
|
"common.schema.json": "04f51deb3cbea448e59195e26ede3212598d58a7940fe67eb2123fd9161c5edb",
|
|
9
9
|
"core-exit.schema.json": "c7f617e815225cdcac95c236f8b73fbe288ee5713ff444c3be90eb915fc3a401",
|
|
10
|
-
"error.schema.json": "
|
|
10
|
+
"error.schema.json": "f444f3ff2a13553f1eea5eaab0088760862691c0d02c60641065cf46022a743f",
|
|
11
11
|
"hypercore.schema.json": "5b89b2bbff7ec8cc1b8717375d12ce9cd5ab6aa5af03c4fdc6cc753ef9583a2c",
|
|
12
|
-
"identity.schema.json": "
|
|
12
|
+
"identity.schema.json": "896d975e5f4076cb34ae33f2dcfc41559fd3df1ed39e3d72ac9e342ca1f957fa",
|
|
13
13
|
"maker-access.schema.json": "49698ee0235e42064aae0397db1e0f646bdc10d9dfa10121714ba06dd69fee3b",
|
|
14
14
|
"maker-action.schema.json": "dc41e52c868848e85cdeb918992cb710d34616d2803a63f6d9a658e016744a50",
|
|
15
15
|
"maker-telemetry.schema.json": "85b111ce0f4935299d1116071b43de12e775bef4e0c283c12f19046d34374a9c",
|
|
@@ -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": "bea4893352a7110f2659560f3338d9fb5eb441269652a989a7aa9d42a5394554",
|
|
20
|
-
"social.schema.json": "
|
|
20
|
+
"social.schema.json": "de0ddadf418a41d2c2cbe714afb5c83947cd34e05b8082f0ba016e18e0b3cd51"
|
|
21
21
|
};
|
|
22
22
|
export const operations = {
|
|
23
23
|
"client": [
|
|
@@ -91,6 +91,7 @@ export const operations = {
|
|
|
91
91
|
"getPartnerAccountValue",
|
|
92
92
|
"getPartnerReport",
|
|
93
93
|
"getPerpMarks",
|
|
94
|
+
"getPicture",
|
|
94
95
|
"getProfitLeaderboard",
|
|
95
96
|
"getQuestion",
|
|
96
97
|
"getQuestionRecurringRound",
|
|
@@ -145,6 +146,7 @@ export const operations = {
|
|
|
145
146
|
"recordAcquisition",
|
|
146
147
|
"recordGoldenTelegramClick",
|
|
147
148
|
"refreshPicture",
|
|
149
|
+
"removeUploadedPicture",
|
|
148
150
|
"requestComboCopyAgent",
|
|
149
151
|
"requestCoreCopyAgent",
|
|
150
152
|
"revokeComboCopyAgent",
|
|
@@ -155,6 +157,7 @@ export const operations = {
|
|
|
155
157
|
"setPublicProfile",
|
|
156
158
|
"setUsername",
|
|
157
159
|
"setXHandleShown",
|
|
160
|
+
"setXPictureShown",
|
|
158
161
|
"signGoldenGift",
|
|
159
162
|
"stream",
|
|
160
163
|
"streamMarkets",
|
|
@@ -163,7 +166,8 @@ export const operations = {
|
|
|
163
166
|
"unfollowTrader",
|
|
164
167
|
"unlikeComment",
|
|
165
168
|
"unlockGolden",
|
|
166
|
-
"unreactComment"
|
|
169
|
+
"unreactComment",
|
|
170
|
+
"uploadPicture"
|
|
167
171
|
],
|
|
168
172
|
"maker": [
|
|
169
173
|
"cancelQuote",
|
package/dist/request.d.ts
CHANGED
|
@@ -112,4 +112,10 @@ export declare function unwrap<Data>(result: {
|
|
|
112
112
|
error?: unknown;
|
|
113
113
|
response: Response;
|
|
114
114
|
}): Repaired<Data>;
|
|
115
|
+
/**
|
|
116
|
+
* A bodySerializer that sends a request body as it is: pass it with the bytes
|
|
117
|
+
* of a binary body, such as PUT /v1/me/picture/upload's image, so they are not
|
|
118
|
+
* serialized as JSON.
|
|
119
|
+
*/
|
|
120
|
+
export declare function rawBody<Body extends Blob | ArrayBuffer | Uint8Array>(body: Body): Body;
|
|
115
121
|
export {};
|
package/dist/request.js
CHANGED
|
@@ -183,3 +183,11 @@ export function unwrap(result) {
|
|
|
183
183
|
throw ApiError.from(result.response, result.error);
|
|
184
184
|
return result.data;
|
|
185
185
|
}
|
|
186
|
+
/**
|
|
187
|
+
* A bodySerializer that sends a request body as it is: pass it with the bytes
|
|
188
|
+
* of a binary body, such as PUT /v1/me/picture/upload's image, so they are not
|
|
189
|
+
* serialized as JSON.
|
|
190
|
+
*/
|
|
191
|
+
export function rawBody(body) {
|
|
192
|
+
return body;
|
|
193
|
+
}
|