@totalis/hip4-client 0.105.0 → 0.107.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 CHANGED
@@ -3,6 +3,45 @@
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.107.0
7
+
8
+ ### Added
9
+
10
+ - Activity lists take `order` (contract `242.0.0-activity-occurrence-order`).
11
+ `listAccountActivity` and `listMakerActivity` keep the publication order by
12
+ default (`PUBLISHED`); `OCCURRED` lists the newest occurrence first, an
13
+ activity of unknown occurrence at its recording time, so a feed can page
14
+ newest first without reading by time window. Contract
15
+ `243.0.0-activity-occurrence-groups` lists what reads as one together at
16
+ its latest occurrence: an order's fills, an outcome side's settlement
17
+ credits, a ticket's settlement and claims.
18
+
19
+ ## 0.106.0
20
+
21
+ ### Added
22
+
23
+ - Profile pictures (TT-2825, TT-2826, contract `241.0.0-profile-pictures`).
24
+ `uploadPicture` (`PUT /v1/me/picture/upload`) sends a JPEG, PNG or WebP of
25
+ at most 5 MB and 4096 pixels a side; the server re-encodes it as a 400x400
26
+ JPEG, drops its metadata and answers the `picture_url` it is served at,
27
+ `GET /v1/pictures/{sha256}.jpg`. `removeUploadedPicture` removes it, and
28
+ `setXPictureShown` (`PUT /v1/me/picture/x`) hides or shows the X picture.
29
+ `getIdentity` adds `picture_source` (`UPLOAD`, `X` or `GENERATED`),
30
+ `x_picture_url` and `x_picture_shown`; `refreshPicture` adds
31
+ `picture_source` and `x_picture_url`. The upload body and the picture are
32
+ typed as bytes (`Blob | ArrayBuffer | Uint8Array`); send the image with
33
+ `bodySerializer: rawBody` and its `Content-Type`, so it is not sent as JSON.
34
+ Pictures are cached for at most 5 minutes. New error codes: `PICTURE_TOO_LARGE`,
35
+ `PICTURE_UNREADABLE`, `PICTURE_TOO_MANY_PIXELS`, `PICTURE_UPLOADS_BLOCKED`,
36
+ `PICTURE_REMOVED`.
37
+
38
+ ### Changed
39
+
40
+ - `picture_url` on the identity, comments, follows, leaderboards, traders and
41
+ social reads is the picture the profile shows: its upload, else its X
42
+ picture unless hidden, else absent for the generated avatar. Its type is
43
+ `ProfilePictureUrl`, which also admits Totalis picture URLs.
44
+
6
45
  ## 0.105.0
7
46
 
8
47
  ### Added
package/dist/client.d.ts CHANGED
@@ -8,7 +8,7 @@ export declare function createClient(environment: PublicEnvironment, options?: A
8
8
  export { bestBid, bestQuote, createTotalis, defaultWalletApproval, EntryError, entryFailure, follow, WalletApprovalError, type Acceptance, type AcceptanceResult, type Amount, type ApprovalListener, type BridgeState, type ComboCash, type CashoutBid, type Chooser, type Deployment, type DepositAccepted, type EntryCash, type EntryFailure, type EntryFunding, type EntryQuote, type KnownWalletApproval, type LandedWalletApproval, type SignedWalletApproval, type WalletApproval, type WalletApprovalRequest, type CoreExit, type LegacySignedEntry, type Leg, type PreparedEntryFunding, type NotAdmitted, type RecordListener, type Operation, type Quote, type ResponseOf, type SellBackQuote, type SignedAcceptance, type SignedCashout, type SignedCoreExit, type SignedDeposit, type SignedEntry, type SignedReturnToCore, type Totalis, type TotalisOptions, type WalletCall, type Withdrawal, } from "./totalis.js";
9
9
  export { bridgeAction, bridgeGasBuffer, classifyHypercoreAnswer, coreSetupFee, hyperevmUsdcBridge, hyperliquidExchange, hyperliquidInfo, hyperliquidNetwork, hypercoreNonce, hypercoreSignature, readCoreCash, sendAssetTypedData, settleHypercore, signSendAsset, submitHypercore, usdcText, type BridgedCash, type CoreAccountMode, type CoreCash, type HypercoreAnswer, type HyperliquidInfo, type HypercoreSignature, type HypercoreTransport, type HyperliquidNetwork, type SendAssetAction, type SignedSendAsset, } from "./hypercore.js";
10
10
  export { approveAgentAction, approveAgentTypedData, approveBuilderFeeTypedData, approveHyperliquidAgent, approveTotalisBuilder, approveTotalisBuilderAction, cancelSingles, l1ActionHash, l1TypedData, outcomeAsset, outcomeCoin, placeSingle, readSingleOrder, readTotalisBuilderFee, signL1Action, singleCancelAction, singleCancelAnswers, singleCloid, singleOrderAction, singleOrderAnswer, submitSingleCancel, submitSingleOrder, totalisBuilder, type ApproveAgentAction, type ApproveBuilderFeeAction, type CancelByCloidAction, type CancelByOidAction, type ExchangeOptions, type L1Options, type OutcomeSide, type SignedL1Action, type SignedUserAction, type SingleAction, type SingleCancel, type SingleCancelAction, type SingleCancelAnswer, type SingleOrder, type SingleOrderAction, type SingleOrderAnswer, type SingleOrderStatus, type SingleTif, } from "./singles.js";
11
- export { ApiError, envelope, NetworkError, randomBytes32, retryingFetch, sendOnce, unwrap, uuidv7, type Fetch, type Repaired, type RetryPolicy } from "./request.js";
11
+ export { ApiError, envelope, NetworkError, randomBytes32, rawBody, retryingFetch, sendOnce, unwrap, uuidv7, type Fetch, type Repaired, type RetryPolicy } from "./request.js";
12
12
  export { items, pages, type Page, type PageQuery } from "./pagination.js";
13
13
  export { toTotalisSigner, type SignerInput, type TotalisSigner } from "./signer.js";
14
14
  export { BalanceUnknownError, ExitUnavailableError, normalizeError, type NormalizedError } from "./flow-errors.js";
package/dist/client.js CHANGED
@@ -7,7 +7,7 @@ export function createClient(environment, options) {
7
7
  export { bestBid, bestQuote, createTotalis, defaultWalletApproval, EntryError, entryFailure, follow, WalletApprovalError, } from "./totalis.js";
8
8
  export { bridgeAction, bridgeGasBuffer, classifyHypercoreAnswer, coreSetupFee, hyperevmUsdcBridge, hyperliquidExchange, hyperliquidInfo, hyperliquidNetwork, hypercoreNonce, hypercoreSignature, readCoreCash, sendAssetTypedData, settleHypercore, signSendAsset, submitHypercore, usdcText, } from "./hypercore.js";
9
9
  export { approveAgentAction, approveAgentTypedData, approveBuilderFeeTypedData, approveHyperliquidAgent, approveTotalisBuilder, approveTotalisBuilderAction, cancelSingles, l1ActionHash, l1TypedData, outcomeAsset, outcomeCoin, placeSingle, readSingleOrder, readTotalisBuilderFee, signL1Action, singleCancelAction, singleCancelAnswers, singleCloid, singleOrderAction, singleOrderAnswer, submitSingleCancel, submitSingleOrder, totalisBuilder, } from "./singles.js";
10
- export { ApiError, envelope, NetworkError, randomBytes32, retryingFetch, sendOnce, unwrap, uuidv7 } from "./request.js";
10
+ export { ApiError, envelope, NetworkError, randomBytes32, rawBody, retryingFetch, sendOnce, unwrap, uuidv7 } from "./request.js";
11
11
  export { items, pages } from "./pagination.js";
12
12
  export { toTotalisSigner } from "./signer.js";
13
13
  export { BalanceUnknownError, ExitUnavailableError, normalizeError } from "./flow-errors.js";
@@ -758,7 +758,7 @@ export type components = {
758
758
  * @description Stable HTTP error code. Each code has one HTTP status and one retry value.
759
759
  * @enum {string}
760
760
  */
761
- 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";
761
+ 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";
762
762
  readonly FieldViolation: {
763
763
  /**
764
764
  * @description REQUIRED: the input is missing. INVALID: it is present but malformed or out of range. UNEXPECTED: the input is not accepted here.
@@ -1117,6 +1117,11 @@ export type components = {
1117
1117
  * @example DEPOSIT
1118
1118
  */
1119
1119
  readonly ActivityKindQueryOptional: components["schemas"]["ActivityKind"];
1120
+ /**
1121
+ * @description PUBLISHED (default): newest published first, so a backfilled activity appears on a fresh first page. OCCURRED: newest occurrence first, an activity of unknown occurrence at its recording time, then by activity ID. What reads as one lists together at its latest occurrence (an order's fills, one outcome side's settlement credits, one ticket's settlement and claims), one group after another within a moment.
1122
+ * @example OCCURRED
1123
+ */
1124
+ readonly ActivityOrderQueryOptional: "PUBLISHED" | "OCCURRED";
1120
1125
  /**
1121
1126
  * @description Return only activities with this status. A status-filtered page is a display view, never a balance or P&L basis.
1122
1127
  * @example COMMITTED
@@ -1412,6 +1417,11 @@ export interface operations {
1412
1417
  * @example HYPEREVM
1413
1418
  */
1414
1419
  readonly venue?: components["parameters"]["ActivityVenueQueryOptional"];
1420
+ /**
1421
+ * @description PUBLISHED (default): newest published first, so a backfilled activity appears on a fresh first page. OCCURRED: newest occurrence first, an activity of unknown occurrence at its recording time, then by activity ID. What reads as one lists together at its latest occurrence (an order's fills, one outcome side's settlement credits, one ticket's settlement and claims), one group after another within a moment.
1422
+ * @example OCCURRED
1423
+ */
1424
+ readonly order?: components["parameters"]["ActivityOrderQueryOptional"];
1415
1425
  };
1416
1426
  readonly header?: {
1417
1427
  /** @description Required for browser sessions; API keys do not require an Origin. */
@@ -1561,6 +1571,11 @@ export interface operations {
1561
1571
  * @example HYPEREVM
1562
1572
  */
1563
1573
  readonly venue?: components["parameters"]["ActivityVenueQueryOptional"];
1574
+ /**
1575
+ * @description PUBLISHED (default): newest published first, so a backfilled activity appears on a fresh first page. OCCURRED: newest occurrence first, an activity of unknown occurrence at its recording time, then by activity ID. What reads as one lists together at its latest occurrence (an order's fills, one outcome side's settlement credits, one ticket's settlement and claims), one group after another within a moment.
1576
+ * @example OCCURRED
1577
+ */
1578
+ readonly order?: components["parameters"]["ActivityOrderQueryOptional"];
1564
1579
  };
1565
1580
  readonly header?: {
1566
1581
  /** @description Required for browser sessions; API keys do not require an Origin. */
@@ -375,7 +375,7 @@ export type components = {
375
375
  * @description Stable HTTP error code. Each code has one HTTP status and one retry value.
376
376
  * @enum {string}
377
377
  */
378
- readonly ErrorCode: "INVALID_REQUEST" | "INVALID_QUERY" | "INVALID_CURSOR" | "INVALID_IDEMPOTENCY_KEY" | "ORIGIN_REQUIRED" | "SUBPROTOCOL_REQUIRED" | "UNSUPPORTED_BROWSE_CONTRACT" | "UNAUTHENTICATED" | "FORBIDDEN" | "ORIGIN_NOT_ALLOWED" | "ACCESS_REQUIRED" | "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";
378
+ readonly ErrorCode: "INVALID_REQUEST" | "INVALID_QUERY" | "INVALID_CURSOR" | "INVALID_IDEMPOTENCY_KEY" | "ORIGIN_REQUIRED" | "SUBPROTOCOL_REQUIRED" | "UNSUPPORTED_BROWSE_CONTRACT" | "UNAUTHENTICATED" | "FORBIDDEN" | "ORIGIN_NOT_ALLOWED" | "ACCESS_REQUIRED" | "PICTURE_UPLOADS_BLOCKED" | "SIGN_IN_REQUIRED" | "NOT_FOUND" | "IDENTITY_NOT_FOUND" | "QUOTE_NOT_FOUND" | "INVITE_CODE_NOT_FOUND" | "IDEMPOTENCY_KEY_REUSED" | "STATE_CONFLICT" | "INVITE_CODE_EXHAUSTED" | "STALE_CURSOR" | "CURSOR_EXPIRED" | "CURSOR_RESET" | "RECURRING_DEFINITION_CONFLICT" | "EMBEDDED_WALLET_CONFLICT" | "SECRET_UNAVAILABLE" | "ROTATION_IN_PROGRESS" | "TELEMETRY_CONFLICT" | "RFQ_NOT_CANCELLABLE" | "RFQ_NOT_OPEN" | "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";
379
379
  readonly FieldViolation: {
380
380
  /**
381
381
  * @description REQUIRED: the input is missing. INVALID: it is present but malformed or out of range. UNEXPECTED: the input is not accepted here.
@@ -891,7 +891,7 @@ export type components = {
891
891
  * @description Stable HTTP error code. Each code has one HTTP status and one retry value.
892
892
  * @enum {string}
893
893
  */
894
- 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";
894
+ 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";
895
895
  readonly FieldViolation: {
896
896
  /**
897
897
  * @description REQUIRED: the input is missing. INVALID: it is present but malformed or out of range. UNEXPECTED: the input is not accepted here.
@@ -33,6 +33,9 @@ export type paths = {
33
33
  readonly "/v1/me/username/availability": Pick<SharedPaths["/v1/me/username/availability"], "parameters" | "get">;
34
34
  readonly "/v1/me/avatar": Pick<SharedPaths["/v1/me/avatar"], "parameters" | "put">;
35
35
  readonly "/v1/me/picture": Pick<SharedPaths["/v1/me/picture"], "parameters" | "post">;
36
+ readonly "/v1/me/picture/x": Pick<SharedPaths["/v1/me/picture/x"], "parameters" | "put">;
37
+ readonly "/v1/me/picture/upload": Pick<SharedPaths["/v1/me/picture/upload"], "parameters" | "put" | "delete">;
38
+ readonly "/v1/pictures/{picture}": Pick<SharedPaths["/v1/pictures/{picture}"], "parameters" | "get">;
36
39
  readonly "/v1/deployment": Pick<SharedPaths["/v1/deployment"], "parameters" | "get">;
37
40
  readonly "/v1/suggested-combo": Pick<SharedPaths["/v1/suggested-combo"], "parameters" | "get">;
38
41
  readonly "/v1/me/golden": Pick<SharedPaths["/v1/me/golden"], "parameters" | "get">;
@@ -133,4 +136,4 @@ export type paths = {
133
136
  readonly "/v1/makers/{maker_id}/exposure": Pick<SharedPaths["/v1/makers/{maker_id}/exposure"], "parameters" | "get">;
134
137
  readonly "/v1/makers/{maker_id}/performance": Pick<SharedPaths["/v1/makers/{maker_id}/performance"], "parameters" | "get">;
135
138
  };
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">;
139
+ 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" | "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">;
@@ -45,6 +45,10 @@ export declare const errorRegistry: {
45
45
  readonly status: 403;
46
46
  readonly retry: "NEVER";
47
47
  };
48
+ readonly PICTURE_UPLOADS_BLOCKED: {
49
+ readonly status: 403;
50
+ readonly retry: "NEVER";
51
+ };
48
52
  readonly SIGN_IN_REQUIRED: {
49
53
  readonly status: 403;
50
54
  readonly retry: "NEVER";
@@ -174,6 +178,10 @@ export declare const errorRegistry: {
174
178
  readonly status: 409;
175
179
  readonly retry: "NEVER";
176
180
  };
181
+ readonly PICTURE_REMOVED: {
182
+ readonly status: 409;
183
+ readonly retry: "NEVER";
184
+ };
177
185
  readonly USERNAME_REQUIRED: {
178
186
  readonly status: 409;
179
187
  readonly retry: "NEVER";
@@ -254,6 +262,18 @@ export declare const errorRegistry: {
254
262
  readonly status: 422;
255
263
  readonly retry: "NEVER";
256
264
  };
265
+ readonly PICTURE_TOO_LARGE: {
266
+ readonly status: 422;
267
+ readonly retry: "NEVER";
268
+ };
269
+ readonly PICTURE_UNREADABLE: {
270
+ readonly status: 422;
271
+ readonly retry: "NEVER";
272
+ };
273
+ readonly PICTURE_TOO_MANY_PIXELS: {
274
+ readonly status: 422;
275
+ readonly retry: "NEVER";
276
+ };
257
277
  readonly FOLLOW_SELF: {
258
278
  readonly status: 422;
259
279
  readonly retry: "NEVER";
@@ -400,7 +420,7 @@ export declare const errorRegistry: {
400
420
  };
401
421
  /** NEVER: stop. BACKOFF: resend the same request with the same Idempotency-Key after Retry-After. REFRESH: re-read state, then send a new request with a new key. */
402
422
  export type Retry = "NEVER" | "BACKOFF" | "REFRESH";
403
- export type ErrorCode = "INVALID_REQUEST" | "INVALID_QUERY" | "INVALID_CURSOR" | "INVALID_IDEMPOTENCY_KEY" | "ORIGIN_REQUIRED" | "SUBPROTOCOL_REQUIRED" | "UNSUPPORTED_BROWSE_CONTRACT" | "UNAUTHENTICATED" | "FORBIDDEN" | "ORIGIN_NOT_ALLOWED" | "ACCESS_REQUIRED" | "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";
423
+ export type ErrorCode = "INVALID_REQUEST" | "INVALID_QUERY" | "INVALID_CURSOR" | "INVALID_IDEMPOTENCY_KEY" | "ORIGIN_REQUIRED" | "SUBPROTOCOL_REQUIRED" | "UNSUPPORTED_BROWSE_CONTRACT" | "UNAUTHENTICATED" | "FORBIDDEN" | "ORIGIN_NOT_ALLOWED" | "ACCESS_REQUIRED" | "PICTURE_UPLOADS_BLOCKED" | "SIGN_IN_REQUIRED" | "NOT_FOUND" | "IDENTITY_NOT_FOUND" | "QUOTE_NOT_FOUND" | "INVITE_CODE_NOT_FOUND" | "IDEMPOTENCY_KEY_REUSED" | "STATE_CONFLICT" | "INVITE_CODE_EXHAUSTED" | "STALE_CURSOR" | "CURSOR_EXPIRED" | "CURSOR_RESET" | "RECURRING_DEFINITION_CONFLICT" | "EMBEDDED_WALLET_CONFLICT" | "SECRET_UNAVAILABLE" | "ROTATION_IN_PROGRESS" | "TELEMETRY_CONFLICT" | "RFQ_NOT_CANCELLABLE" | "RFQ_NOT_OPEN" | "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";
404
424
  export type CloseReason = "SUBPROTOCOL_REQUIRED" | "CURSOR_RESET" | "DEPENDENCY_STALE" | "SOURCE_UNAVAILABLE" | "CONNECTION_DRAIN" | "INVALID_SUBSCRIPTION" | "SUBSCRIPTION_DENIED" | "AUTHORIZATION_REVOKED" | "STREAM_REPLACED" | "SLOW_CONSUMER" | "RESNAPSHOT_REQUIRED" | "SNAPSHOT_TOO_LARGE";
405
425
  /** The codes each live operation can return. */
406
426
  export declare const operationErrors: {
@@ -487,6 +507,7 @@ export declare const operationErrors: {
487
507
  readonly getPartnerReport: readonly ["INVALID_QUERY", "UNAUTHENTICATED", "FORBIDDEN", "RATE_LIMITED", "AUTHORIZATION_UNAVAILABLE", "SOURCE_UNAVAILABLE"];
488
508
  readonly getPerpMarks: readonly ["NOT_FOUND", "MARKET_DATA_UNAVAILABLE", "INVALID_QUERY"];
489
509
  readonly getPersonalApiKeyCapabilities: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND"];
510
+ readonly getPicture: readonly ["NOT_FOUND", "RATE_LIMITED", "SOURCE_UNAVAILABLE"];
490
511
  readonly getProfitLeaderboard: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_QUERY", "CONTRACT_UNAVAILABLE", "IDENTITY_NOT_FOUND"];
491
512
  readonly getQuestion: readonly ["INVALID_REQUEST", "NOT_FOUND", "MARKET_DATA_UNAVAILABLE", "INVALID_QUERY"];
492
513
  readonly getQuestionRecurringRound: readonly ["INVALID_REQUEST", "NOT_FOUND", "MARKET_DATA_UNAVAILABLE", "RECURRING_DEFINITION_CONFLICT", "INVALID_QUERY"];
@@ -550,6 +571,7 @@ export declare const operationErrors: {
550
571
  readonly recordGoldenTelegramClick: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_REQUEST", "CONTRACT_UNAVAILABLE", "GOLDEN_TICKET_NONE"];
551
572
  readonly refreshPicture: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "IDENTITY_NOT_FOUND", "ORIGIN_REQUIRED", "CONTRACT_UNAVAILABLE"];
552
573
  readonly releaseQuoteLease: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND"];
574
+ readonly removeUploadedPicture: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_REQUEST", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED", "IDENTITY_NOT_FOUND", "ORIGIN_REQUIRED"];
553
575
  readonly renewQuoteLease: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND"];
554
576
  readonly requestComboCopyAgent: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "CONTRACT_UNAVAILABLE", "DEPENDENCY_STALE", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED", "STATE_CONFLICT"];
555
577
  readonly requestCoreCopyAgent: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "CONTRACT_UNAVAILABLE", "DEPENDENCY_STALE", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED", "STATE_CONFLICT"];
@@ -567,6 +589,7 @@ export declare const operationErrors: {
567
589
  readonly setPublicProfile: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_REQUEST", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED", "IDENTITY_NOT_FOUND", "USERNAME_REQUIRED", "ORIGIN_REQUIRED"];
568
590
  readonly setUsername: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED", "IDENTITY_NOT_FOUND", "USERNAME_NOT_ALLOWED", "USERNAME_TAKEN", "ORIGIN_REQUIRED"];
569
591
  readonly setXHandleShown: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_REQUEST", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED", "IDENTITY_NOT_FOUND", "ORIGIN_REQUIRED"];
592
+ readonly setXPictureShown: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_REQUEST", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED", "IDENTITY_NOT_FOUND", "ORIGIN_REQUIRED"];
570
593
  readonly signGoldenGift: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_REQUEST", "NOT_FOUND", "CONTRACT_UNAVAILABLE", "STATE_CONFLICT", "GOLDEN_GIFT_TERMS_EXPIRED", "WRONG_AUTHORITY"];
571
594
  readonly stream: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "SUBPROTOCOL_REQUIRED", "CONNECTION_LIMIT", "CONNECTION_DRAIN", "INVALID_REQUEST", "NOT_FOUND", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND"];
572
595
  readonly streamMarkets: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "SUBPROTOCOL_REQUIRED", "CONNECTION_LIMIT", "CONNECTION_DRAIN", "ORIGIN_NOT_ALLOWED", "INVALID_QUERY"];
@@ -577,5 +600,6 @@ export declare const operationErrors: {
577
600
  readonly unlikeComment: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "NOT_FOUND", "INVALID_IDEMPOTENCY_KEY"];
578
601
  readonly unlockGolden: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_REQUEST", "CONTRACT_UNAVAILABLE", "GOLDEN_TICKET_NONE", "GOLDEN_TICKET_USED", "GOLDEN_TICKET_EXPIRED", "GOLDEN_PLACEMENT_IN_FLIGHT", "X_REQUIRED", "X_ALREADY_CLAIMED", "GOLDEN_GIVEN_OUT", "GOLDEN_CODE_DISABLED", "X_VERIFICATION_UNAVAILABLE", "GOLDEN_NOT_ELIGIBLE"];
579
602
  readonly unreactComment: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "NOT_FOUND", "INVALID_IDEMPOTENCY_KEY"];
603
+ readonly uploadPicture: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_REQUEST", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED", "IDENTITY_NOT_FOUND", "ORIGIN_REQUIRED", "PICTURE_TOO_LARGE", "PICTURE_UNREADABLE", "PICTURE_TOO_MANY_PIXELS", "PICTURE_UPLOADS_BLOCKED", "PICTURE_REMOVED", "CONTRACT_UNAVAILABLE"];
580
604
  };
581
605
  export type OperationErrorCode<Id extends keyof typeof operationErrors> = (typeof operationErrors)[Id][number];
@@ -46,6 +46,10 @@ export const errorRegistry = {
46
46
  "status": 403,
47
47
  "retry": "NEVER"
48
48
  },
49
+ "PICTURE_UPLOADS_BLOCKED": {
50
+ "status": 403,
51
+ "retry": "NEVER"
52
+ },
49
53
  "SIGN_IN_REQUIRED": {
50
54
  "status": 403,
51
55
  "retry": "NEVER"
@@ -175,6 +179,10 @@ export const errorRegistry = {
175
179
  "status": 409,
176
180
  "retry": "NEVER"
177
181
  },
182
+ "PICTURE_REMOVED": {
183
+ "status": 409,
184
+ "retry": "NEVER"
185
+ },
178
186
  "USERNAME_REQUIRED": {
179
187
  "status": 409,
180
188
  "retry": "NEVER"
@@ -255,6 +263,18 @@ export const errorRegistry = {
255
263
  "status": 422,
256
264
  "retry": "NEVER"
257
265
  },
266
+ "PICTURE_TOO_LARGE": {
267
+ "status": 422,
268
+ "retry": "NEVER"
269
+ },
270
+ "PICTURE_UNREADABLE": {
271
+ "status": 422,
272
+ "retry": "NEVER"
273
+ },
274
+ "PICTURE_TOO_MANY_PIXELS": {
275
+ "status": 422,
276
+ "retry": "NEVER"
277
+ },
258
278
  "FOLLOW_SELF": {
259
279
  "status": 422,
260
280
  "retry": "NEVER"
@@ -1356,6 +1376,11 @@ export const operationErrors = {
1356
1376
  "INVALID_REQUEST",
1357
1377
  "NOT_FOUND"
1358
1378
  ],
1379
+ "getPicture": [
1380
+ "NOT_FOUND",
1381
+ "RATE_LIMITED",
1382
+ "SOURCE_UNAVAILABLE"
1383
+ ],
1359
1384
  "getProfitLeaderboard": [
1360
1385
  "UNAUTHENTICATED",
1361
1386
  "FORBIDDEN",
@@ -1988,6 +2013,17 @@ export const operationErrors = {
1988
2013
  "INVALID_REQUEST",
1989
2014
  "NOT_FOUND"
1990
2015
  ],
2016
+ "removeUploadedPicture": [
2017
+ "UNAUTHENTICATED",
2018
+ "FORBIDDEN",
2019
+ "AUTHORIZATION_UNAVAILABLE",
2020
+ "RATE_LIMITED",
2021
+ "INVALID_REQUEST",
2022
+ "INVALID_IDEMPOTENCY_KEY",
2023
+ "IDEMPOTENCY_KEY_REUSED",
2024
+ "IDENTITY_NOT_FOUND",
2025
+ "ORIGIN_REQUIRED"
2026
+ ],
1991
2027
  "renewQuoteLease": [
1992
2028
  "UNAUTHENTICATED",
1993
2029
  "FORBIDDEN",
@@ -2186,6 +2222,17 @@ export const operationErrors = {
2186
2222
  "IDENTITY_NOT_FOUND",
2187
2223
  "ORIGIN_REQUIRED"
2188
2224
  ],
2225
+ "setXPictureShown": [
2226
+ "UNAUTHENTICATED",
2227
+ "FORBIDDEN",
2228
+ "AUTHORIZATION_UNAVAILABLE",
2229
+ "RATE_LIMITED",
2230
+ "INVALID_REQUEST",
2231
+ "INVALID_IDEMPOTENCY_KEY",
2232
+ "IDEMPOTENCY_KEY_REUSED",
2233
+ "IDENTITY_NOT_FOUND",
2234
+ "ORIGIN_REQUIRED"
2235
+ ],
2189
2236
  "signGoldenGift": [
2190
2237
  "UNAUTHENTICATED",
2191
2238
  "FORBIDDEN",
@@ -2317,5 +2364,22 @@ export const operationErrors = {
2317
2364
  "IDENTITY_NOT_FOUND",
2318
2365
  "NOT_FOUND",
2319
2366
  "INVALID_IDEMPOTENCY_KEY"
2367
+ ],
2368
+ "uploadPicture": [
2369
+ "UNAUTHENTICATED",
2370
+ "FORBIDDEN",
2371
+ "AUTHORIZATION_UNAVAILABLE",
2372
+ "RATE_LIMITED",
2373
+ "INVALID_REQUEST",
2374
+ "INVALID_IDEMPOTENCY_KEY",
2375
+ "IDEMPOTENCY_KEY_REUSED",
2376
+ "IDENTITY_NOT_FOUND",
2377
+ "ORIGIN_REQUIRED",
2378
+ "PICTURE_TOO_LARGE",
2379
+ "PICTURE_UNREADABLE",
2380
+ "PICTURE_TOO_MANY_PIXELS",
2381
+ "PICTURE_UPLOADS_BLOCKED",
2382
+ "PICTURE_REMOVED",
2383
+ "CONTRACT_UNAVAILABLE"
2320
2384
  ]
2321
2385
  };
@@ -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; GET /v1/me, comments and the leaderboard then serve the picture, 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.
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 that still had free Combos to unlock when the account joined, 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.
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 when there is none. */
3358
- readonly picture_url?: components["schemas"]["XPictureUrl"];
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 profile picture of the X account linked to the account's Privy login, which clients show in place of the generated avatar, the same on every device. 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 186 omit it. */
4541
- readonly picture_url?: components["schemas"]["XPictureUrl"];
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 linked X account's picture; absent when none is linked or it is not on X's profile picture hosts. */
4904
- readonly picture_url?: components["schemas"]["XPictureUrl"];
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 Their X picture; absent when there is none. */
5516
- readonly picture_url?: components["schemas"]["XPictureUrl"];
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 Their X picture; absent when there is none. */
5615
- readonly picture_url?: components["schemas"]["XPictureUrl"];
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 X picture, as GET /v1/me serves it to them; absent when the server has none. Servers before contract 186 omit it. */
5900
- readonly picture_url?: components["schemas"]["XPictureUrl"];
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;
@@ -7597,6 +7687,11 @@ export type components = {
7597
7687
  * @example HYPEREVM
7598
7688
  */
7599
7689
  readonly ActivityVenueQueryOptional: "HYPEREVM" | "HYPERCORE" | "VENUE";
7690
+ /**
7691
+ * @description PUBLISHED (default): newest published first, so a backfilled activity appears on a fresh first page. OCCURRED: newest occurrence first, an activity of unknown occurrence at its recording time, then by activity ID. What reads as one lists together at its latest occurrence (an order's fills, one outcome side's settlement credits, one ticket's settlement and claims), one group after another within a moment.
7692
+ * @example OCCURRED
7693
+ */
7694
+ readonly ActivityOrderQueryOptional: "PUBLISHED" | "OCCURRED";
7600
7695
  /**
7601
7696
  * @description Activity ID from a list item's activity_id (64 lowercase hex characters).
7602
7697
  * @example 9d4c2b1a0f8e7d6c5b4a39281706f5e4d3c2b1a0f9e8d7c6b5a4938271605f4e
@@ -8136,6 +8231,11 @@ export interface operations {
8136
8231
  * @example HYPEREVM
8137
8232
  */
8138
8233
  readonly venue?: components["parameters"]["ActivityVenueQueryOptional"];
8234
+ /**
8235
+ * @description PUBLISHED (default): newest published first, so a backfilled activity appears on a fresh first page. OCCURRED: newest occurrence first, an activity of unknown occurrence at its recording time, then by activity ID. What reads as one lists together at its latest occurrence (an order's fills, one outcome side's settlement credits, one ticket's settlement and claims), one group after another within a moment.
8236
+ * @example OCCURRED
8237
+ */
8238
+ readonly order?: components["parameters"]["ActivityOrderQueryOptional"];
8139
8239
  };
8140
8240
  readonly header?: {
8141
8241
  /**
@@ -8253,6 +8353,11 @@ export interface operations {
8253
8353
  * @example HYPEREVM
8254
8354
  */
8255
8355
  readonly venue?: components["parameters"]["ActivityVenueQueryOptional"];
8356
+ /**
8357
+ * @description PUBLISHED (default): newest published first, so a backfilled activity appears on a fresh first page. OCCURRED: newest occurrence first, an activity of unknown occurrence at its recording time, then by activity ID. What reads as one lists together at its latest occurrence (an order's fills, one outcome side's settlement credits, one ticket's settlement and claims), one group after another within a moment.
8358
+ * @example OCCURRED
8359
+ */
8360
+ readonly order?: components["parameters"]["ActivityOrderQueryOptional"];
8256
8361
  };
8257
8362
  readonly header?: {
8258
8363
  /**
@@ -9115,6 +9220,138 @@ export interface operations {
9115
9220
  readonly 503: components["responses"]["Unavailable"];
9116
9221
  };
9117
9222
  };
9223
+ readonly setXPictureShown: {
9224
+ readonly parameters: {
9225
+ readonly query?: never;
9226
+ readonly header: {
9227
+ /**
9228
+ * @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`.
9229
+ * @example 0198a6f6-82a5-7abc-9f2a-4f0fb437493e
9230
+ */
9231
+ readonly "Idempotency-Key": components["parameters"]["IdempotencyKey"];
9232
+ };
9233
+ readonly path?: never;
9234
+ readonly cookie?: never;
9235
+ };
9236
+ readonly requestBody: {
9237
+ readonly content: {
9238
+ readonly "application/json": components["schemas"]["XPictureShownRequest"];
9239
+ };
9240
+ };
9241
+ readonly responses: {
9242
+ /** @description The X picture is in the requested state */
9243
+ readonly 204: {
9244
+ headers: {
9245
+ readonly [name: string]: unknown;
9246
+ };
9247
+ content?: never;
9248
+ };
9249
+ readonly 400: components["responses"]["Error"];
9250
+ readonly 401: components["responses"]["Error"];
9251
+ readonly 403: components["responses"]["Error"];
9252
+ readonly 404: components["responses"]["Error"];
9253
+ readonly 409: components["responses"]["Error"];
9254
+ readonly 429: components["responses"]["RateLimited"];
9255
+ readonly 503: components["responses"]["Unavailable"];
9256
+ };
9257
+ };
9258
+ readonly uploadPicture: {
9259
+ readonly parameters: {
9260
+ readonly query?: never;
9261
+ readonly header: {
9262
+ /**
9263
+ * @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`.
9264
+ * @example 0198a6f6-82a5-7abc-9f2a-4f0fb437493e
9265
+ */
9266
+ readonly "Idempotency-Key": components["parameters"]["IdempotencyKey"];
9267
+ };
9268
+ readonly path?: never;
9269
+ readonly cookie?: never;
9270
+ };
9271
+ readonly requestBody: {
9272
+ readonly content: {
9273
+ readonly "image/jpeg": Blob | ArrayBuffer | Uint8Array;
9274
+ readonly "image/png": Blob | ArrayBuffer | Uint8Array;
9275
+ readonly "image/webp": Blob | ArrayBuffer | Uint8Array;
9276
+ };
9277
+ };
9278
+ readonly responses: {
9279
+ /** @description The picture is stored and the profile shows it */
9280
+ readonly 200: {
9281
+ headers: {
9282
+ readonly [name: string]: unknown;
9283
+ };
9284
+ content: {
9285
+ readonly "application/json": components["schemas"]["PictureUploadResponse"];
9286
+ };
9287
+ };
9288
+ readonly 400: components["responses"]["Error"];
9289
+ readonly 401: components["responses"]["Error"];
9290
+ readonly 403: components["responses"]["Error"];
9291
+ readonly 404: components["responses"]["Error"];
9292
+ readonly 409: components["responses"]["Error"];
9293
+ readonly 422: components["responses"]["Error"];
9294
+ readonly 429: components["responses"]["RateLimited"];
9295
+ readonly 503: components["responses"]["Unavailable"];
9296
+ };
9297
+ };
9298
+ readonly removeUploadedPicture: {
9299
+ readonly parameters: {
9300
+ readonly query?: never;
9301
+ readonly header: {
9302
+ /**
9303
+ * @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`.
9304
+ * @example 0198a6f6-82a5-7abc-9f2a-4f0fb437493e
9305
+ */
9306
+ readonly "Idempotency-Key": components["parameters"]["IdempotencyKey"];
9307
+ };
9308
+ readonly path?: never;
9309
+ readonly cookie?: never;
9310
+ };
9311
+ readonly requestBody?: never;
9312
+ readonly responses: {
9313
+ /** @description The profile shows no uploaded picture */
9314
+ readonly 204: {
9315
+ headers: {
9316
+ readonly [name: string]: unknown;
9317
+ };
9318
+ content?: never;
9319
+ };
9320
+ readonly 400: components["responses"]["Error"];
9321
+ readonly 401: components["responses"]["Error"];
9322
+ readonly 403: components["responses"]["Error"];
9323
+ readonly 404: components["responses"]["Error"];
9324
+ readonly 409: components["responses"]["Error"];
9325
+ readonly 429: components["responses"]["RateLimited"];
9326
+ readonly 503: components["responses"]["Unavailable"];
9327
+ };
9328
+ };
9329
+ readonly getPicture: {
9330
+ readonly parameters: {
9331
+ readonly query?: never;
9332
+ readonly header?: never;
9333
+ readonly path: {
9334
+ /** @description The picture's name: the lowercase hex SHA-256 of its bytes and .jpg. */
9335
+ readonly picture: string;
9336
+ };
9337
+ readonly cookie?: never;
9338
+ };
9339
+ readonly requestBody?: never;
9340
+ readonly responses: {
9341
+ /** @description The picture */
9342
+ readonly 200: {
9343
+ headers: {
9344
+ readonly [name: string]: unknown;
9345
+ };
9346
+ content: {
9347
+ readonly "image/jpeg": Blob | ArrayBuffer | Uint8Array;
9348
+ };
9349
+ };
9350
+ readonly 404: components["responses"]["Error"];
9351
+ readonly 429: components["responses"]["RateLimited"];
9352
+ readonly 503: components["responses"]["Unavailable"];
9353
+ };
9354
+ };
9118
9355
  readonly getDeployment: {
9119
9356
  readonly parameters: {
9120
9357
  readonly query?: never;
@@ -9561,8 +9798,8 @@ export interface operations {
9561
9798
  readonly public_profile?: boolean;
9562
9799
  /** @description The seed clients draw the trader's generated avatar from, as for GET /v1/me. Servers before contract 151 omit it. */
9563
9800
  readonly avatar_seed?: components["schemas"]["AvatarSeed"];
9564
- /** @description The profile picture of the X account linked to the trader's Privy login, 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 when the server has no picture for the trader. Servers before contract 167 omit it. */
9565
- readonly picture_url?: components["schemas"]["XPictureUrl"];
9801
+ /** @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. */
9802
+ readonly picture_url?: components["schemas"]["ProfilePictureUrl"];
9566
9803
  /** @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
9804
  readonly genesis?: components["schemas"]["$defs-Timestamp"];
9568
9805
  /** @description USDC in units of 10^-8, always above zero. */
@@ -9617,8 +9854,8 @@ export interface operations {
9617
9854
  readonly public_profile?: boolean;
9618
9855
  /** @description The seed clients draw the trader's generated avatar from, as for GET /v1/me. */
9619
9856
  readonly avatar_seed: components["schemas"]["AvatarSeed"];
9620
- /** @description The profile picture of the X account linked to the trader's Privy login, 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 when the server has no picture for the trader. Servers before contract 167 omit it. */
9621
- readonly picture_url?: components["schemas"]["XPictureUrl"];
9857
+ /** @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. */
9858
+ readonly picture_url?: components["schemas"]["ProfilePictureUrl"];
9622
9859
  /** @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
9860
  readonly genesis?: components["schemas"]["$defs-Timestamp"];
9624
9861
  /** @description USDC in atomic units (10^-6), always above zero. */
@@ -9732,8 +9969,8 @@ export interface operations {
9732
9969
  readonly username: components["schemas"]["Username"];
9733
9970
  /** @description The seed clients draw the trader's generated avatar from, as for GET /v1/me. */
9734
9971
  readonly avatar_seed: components["schemas"]["AvatarSeed"];
9735
- /** @description The trader's X picture, shown in place of the generated avatar; absent when there is none, as for GET /v1/me. */
9736
- readonly picture_url?: components["schemas"]["XPictureUrl"];
9972
+ /** @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. */
9973
+ readonly picture_url?: components["schemas"]["ProfilePictureUrl"];
9737
9974
  /** @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
9975
  readonly x_username?: components["schemas"]["XUsername"];
9739
9976
  /** @description The trader's Genesis Account badge; absent when they have not earned it. Servers before contract 227 omit it. */
@@ -10287,8 +10524,8 @@ export interface operations {
10287
10524
  readonly username: components["schemas"]["Username"];
10288
10525
  /** @description The seed clients draw the trader's generated avatar from, as for GET /v1/me. */
10289
10526
  readonly avatar_seed: components["schemas"]["AvatarSeed"];
10290
- /** @description The trader's X picture; absent when there is none. */
10291
- readonly picture_url?: components["schemas"]["XPictureUrl"];
10527
+ /** @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. */
10528
+ readonly picture_url?: components["schemas"]["ProfilePictureUrl"];
10292
10529
  /** @description When the account followed the trader. */
10293
10530
  readonly followed_at: components["schemas"]["$defs-Timestamp"];
10294
10531
  } & components["schemas"]["FollowSettingsFields"])[];
@@ -1,14 +1,14 @@
1
- export declare const sdkVersion = "240.0.0-wallet-transfer-parties";
2
- export declare const openapiSha256 = "f0b5dd6f997303eb57793b850c6c4df046ec9e562bfff500d6ccc88020602fa1";
1
+ export declare const sdkVersion = "243.0.0-activity-occurrence-groups";
2
+ export declare const openapiSha256 = "3a41749829233215987169e2dc84d40cae9343a5d77b6ea9fce62fe559e5a8cb";
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": "6c59e0d7f45ec944fa4362a6999656cd6a3967bd7a60057665a0d68977addb67";
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": "0e362e916f59125775cf3201681827d394b53a004a53e21fb84746e794982c7f";
9
+ readonly "error.schema.json": "f444f3ff2a13553f1eea5eaab0088760862691c0d02c60641065cf46022a743f";
10
10
  readonly "hypercore.schema.json": "5b89b2bbff7ec8cc1b8717375d12ce9cd5ab6aa5af03c4fdc6cc753ef9583a2c";
11
- readonly "identity.schema.json": "a97ec2f4319a16619d3a3ab613989fb1dba8107713e0fb8f1f9ad5aea25a67e3";
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": "ffa1af6c12c974b1c786ca420670861a6e9389b3b9c052e3644bb9905033a919";
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 = "240.0.0-wallet-transfer-parties";
3
- export const openapiSha256 = "f0b5dd6f997303eb57793b850c6c4df046ec9e562bfff500d6ccc88020602fa1";
2
+ export const sdkVersion = "243.0.0-activity-occurrence-groups";
3
+ export const openapiSha256 = "3a41749829233215987169e2dc84d40cae9343a5d77b6ea9fce62fe559e5a8cb";
4
4
  export const realtimeSha256 = "bea4893352a7110f2659560f3338d9fb5eb441269652a989a7aa9d42a5394554";
5
5
  export const jsonSchemaSha256 = {
6
6
  "account.schema.json": "e6cd5a75429d074f23bd7f6ffd370fa59d0e3f7dbd6aef6433e5ba0d21b5baeb",
7
- "comments.schema.json": "6c59e0d7f45ec944fa4362a6999656cd6a3967bd7a60057665a0d68977addb67",
7
+ "comments.schema.json": "5773471b4442ba9d8af0dc012d71561baaf50d0e1c2571039241780848edb4a4",
8
8
  "common.schema.json": "04f51deb3cbea448e59195e26ede3212598d58a7940fe67eb2123fd9161c5edb",
9
9
  "core-exit.schema.json": "c7f617e815225cdcac95c236f8b73fbe288ee5713ff444c3be90eb915fc3a401",
10
- "error.schema.json": "0e362e916f59125775cf3201681827d394b53a004a53e21fb84746e794982c7f",
10
+ "error.schema.json": "f444f3ff2a13553f1eea5eaab0088760862691c0d02c60641065cf46022a743f",
11
11
  "hypercore.schema.json": "5b89b2bbff7ec8cc1b8717375d12ce9cd5ab6aa5af03c4fdc6cc753ef9583a2c",
12
- "identity.schema.json": "a97ec2f4319a16619d3a3ab613989fb1dba8107713e0fb8f1f9ad5aea25a67e3",
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": "ffa1af6c12c974b1c786ca420670861a6e9389b3b9c052e3644bb9905033a919"
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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@totalis/hip4-client",
3
- "version": "0.105.0",
3
+ "version": "0.107.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": [
@@ -64,8 +64,8 @@
64
64
  "generate": "node scripts/generate.mjs",
65
65
  "check": "node scripts/generate.mjs --check && node scripts/compatibility.mjs && tsc --noEmit -p tsconfig.test.json",
66
66
  "build": "npm run generate && tsc",
67
- "test": "npm run build && node --test test/*.test.mjs && node --import ./test/runtimes/react-native.mjs --test test/*.test.mjs",
68
- "test:react-native": "npm run build && node --import ./test/runtimes/react-native.mjs --test test/*.test.mjs",
67
+ "test": "node scripts/check-test-clock.mjs && npm run build && node --import ./test/setup.mjs --test test/*.test.mjs && node --import ./test/setup.mjs --import ./test/runtimes/react-native.mjs --test test/*.test.mjs",
68
+ "test:react-native": "npm run build && node --import ./test/setup.mjs --import ./test/runtimes/react-native.mjs --test test/*.test.mjs",
69
69
  "test:staging-read": "npm run build && node test/staging-read-smoke.mjs",
70
70
  "test:production-read": "npm run build && node test/staging-read-smoke.mjs production",
71
71
  "test:staging-smoke": "npm run build && node test/staging-smoke.mjs",