@structbuild/sdk 0.5.6-staging.3 → 0.5.6-staging.4

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.
@@ -2005,7 +2005,7 @@ export interface paths {
2005
2005
  put?: never;
2006
2006
  /**
2007
2007
  * Sign builder HMAC headers for an outbound relayer-v2 / CLOB request
2008
- * @description Returns the `POLY_API_KEY`, `POLY_SIGNATURE`, `POLY_TIMESTAMP`, `POLY_PASSPHRASE` headers the SDK must attach to a request it's about to make to `relayer-v2.polymarket.com` or `clob.polymarket.com`. Lets the SDK call Polymarket directly while builder credentials stay server-side. Match the request body verbatim — HMAC signs `timestamp + method + path + body`, so any divergence between what's signed and what's sent breaks signature recovery upstream.
2008
+ * @description Returns builder HMAC values the SDK attaches as `POLY_BUILDER_*` headers to a request it's about to make to `relayer-v2.polymarket.com` or builder-scoped CLOB endpoints. Lets the SDK call Polymarket directly while builder credentials stay server-side. Match the request body verbatim — HMAC signs `timestamp + method + path + body`, so any divergence between what's signed and sent breaks signature recovery upstream.
2009
2009
  */
2010
2010
  post: operations["builder_sign"];
2011
2011
  delete?: never;
@@ -2331,7 +2331,7 @@ export interface paths {
2331
2331
  };
2332
2332
  /**
2333
2333
  * Detect which Polymarket wallet type an EOA actually uses
2334
- * @description An EOA can have either a Safe (current default, gasless onboarding via SafeProxyFactory) or a legacy Polymarket Proxy (Magic-Link / email wallets). This probes both CREATE2-derived addresses on-chain and returns whichever is deployed. Falls back to Safe when neither is — that's what the next deployment call will create.
2334
+ * @description Detects the wallet address Polymarket should treat as the funder. Existing Safe/proxy users stay on their deployed legacy wallet. New users fall back to the deterministic deposit wallet.
2335
2335
  */
2336
2336
  get: operations["detect_wallet_type"];
2337
2337
  put?: never;
@@ -2397,6 +2397,7 @@ export interface components {
2397
2397
  */
2398
2398
  ApprovalsInfo: {
2399
2399
  safe: string;
2400
+ address: string;
2400
2401
  summary: components["schemas"]["ApprovalsSummary"];
2401
2402
  approvals: components["schemas"]["Approval"][];
2402
2403
  };
@@ -4090,14 +4091,23 @@ export interface components {
4090
4091
  OnboardStatus: {
4091
4092
  eoa: string;
4092
4093
  safe: string;
4094
+ deposit_wallet: string;
4095
+ wallet: string;
4096
+ wallet_type: string;
4097
+ /** Format: int32 */
4098
+ signature_type: number;
4093
4099
  safe_deployed: boolean;
4100
+ deposit_wallet_deployed: boolean;
4094
4101
  approvals_set: boolean;
4095
4102
  /**
4096
4103
  * @description Whether CLOB API credentials have been minted. Always `false` from
4097
4104
  * this endpoint — credential state is held client-side.
4098
4105
  */
4099
4106
  clob_credentials_minted: boolean;
4100
- /** @description Outstanding setup steps. Possible values: `deploy_safe`, `set_approvals`. */
4107
+ /**
4108
+ * @description Outstanding setup steps. Possible values: `deploy_deposit_wallet`,
4109
+ * `deploy_safe`, `set_approvals`.
4110
+ */
4101
4111
  pending_actions: string[];
4102
4112
  };
4103
4113
  /**
@@ -4402,82 +4412,6 @@ export interface components {
4402
4412
  PnlTimeframe: "1d" | "7d" | "30d" | "lifetime";
4403
4413
  /** @enum {string} */
4404
4414
  PnlV3AnalyticsTimeframe: "1d" | "24h" | "7d" | "30d" | "lifetime";
4405
- PnlV3CandleEntry: {
4406
- /**
4407
- * Format: int64
4408
- * @description Timestamp in epoch seconds at the start of the candle bucket.
4409
- */
4410
- t: number;
4411
- /**
4412
- * Format: double
4413
- * @description Total PnL open value for the candle.
4414
- */
4415
- open: number;
4416
- /**
4417
- * Format: double
4418
- * @description Total PnL high value for the candle.
4419
- */
4420
- high: number;
4421
- /**
4422
- * Format: double
4423
- * @description Total PnL low value for the candle.
4424
- */
4425
- low: number;
4426
- /**
4427
- * Format: double
4428
- * @description Total PnL close/latest value for the candle.
4429
- */
4430
- close: number;
4431
- /** Format: int64 */
4432
- open_block: number;
4433
- /** Format: int64 */
4434
- close_block: number;
4435
- /**
4436
- * Format: double
4437
- * @description Latest realized PnL at candle close.
4438
- */
4439
- realized_pnl: number;
4440
- /**
4441
- * Format: double
4442
- * @description Latest unrealized/open-position value at candle close.
4443
- */
4444
- unrealized_pnl: number;
4445
- /**
4446
- * Format: double
4447
- * @description Latest USDC balance at candle close.
4448
- */
4449
- usdc_balance: number;
4450
- /**
4451
- * Format: double
4452
- * @description Latest pUSD balance at candle close.
4453
- */
4454
- pusd_balance: number;
4455
- /**
4456
- * Format: double
4457
- * @description Portfolio value open value for the candle.
4458
- */
4459
- portfolio_open: number;
4460
- /**
4461
- * Format: double
4462
- * @description Portfolio value high value for the candle.
4463
- */
4464
- portfolio_high: number;
4465
- /**
4466
- * Format: double
4467
- * @description Portfolio value low value for the candle.
4468
- */
4469
- portfolio_low: number;
4470
- /**
4471
- * Format: double
4472
- * @description Portfolio value close/latest value for the candle.
4473
- */
4474
- portfolio_close: number;
4475
- /**
4476
- * Format: int32
4477
- * @description Latest open position count at candle close.
4478
- */
4479
- num_open_positions: number;
4480
- };
4481
4415
  PnlV3CandlestickBar: {
4482
4416
  /**
4483
4417
  * Format: double
@@ -5304,7 +5238,8 @@ export interface components {
5304
5238
  clob_credentials: components["schemas"]["ClobCredentials"];
5305
5239
  /**
5306
5240
  * Format: int32
5307
- * @description Polymarket signature type the wallet uses. `0` = EOA, `2` = Safe.
5241
+ * @description Polymarket signature type the wallet uses. `0` = EOA, `2` = Safe,
5242
+ * `3` = deposit wallet / POLY_1271.
5308
5243
  */
5309
5244
  signature_type: number;
5310
5245
  };
@@ -6238,6 +6173,12 @@ export interface components {
6238
6173
  }) | (components["schemas"]["OrderFilledTrade"] & {
6239
6174
  /** @enum {string} */
6240
6175
  trade_type: "OrdersMatched";
6176
+ }) | (components["schemas"]["OrderFilledTrade"] & {
6177
+ /** @enum {string} */
6178
+ trade_type: "MakerRebate";
6179
+ }) | (components["schemas"]["OrderFilledTrade"] & {
6180
+ /** @enum {string} */
6181
+ trade_type: "Reward";
6241
6182
  }) | (components["schemas"]["RedemptionTrade"] & {
6242
6183
  /** @enum {string} */
6243
6184
  trade_type: "Redemption";
@@ -6302,7 +6243,7 @@ export interface components {
6302
6243
  /** @enum {string} */
6303
6244
  TradeSide: "0" | "1";
6304
6245
  /** @enum {string} */
6305
- TradeType: "0" | "1" | "2" | "3" | "4" | "5" | "6";
6246
+ TradeType: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "22" | "23";
6306
6247
  /**
6307
6248
  * @description Trader profile info embedded in API responses
6308
6249
  *
@@ -6678,19 +6619,24 @@ export interface components {
6678
6619
  WalletDetection: {
6679
6620
  eoa: string;
6680
6621
  safe: string;
6622
+ deposit_wallet: string;
6681
6623
  proxy: string;
6682
6624
  safe_deployed: boolean;
6625
+ deposit_wallet_deployed: boolean;
6683
6626
  proxy_deployed: boolean;
6684
6627
  /**
6685
6628
  * @description Whichever of `safe` / `proxy` is actually deployed. Falls back to
6686
- * `safe` when neither is.
6629
+ * `deposit_wallet` when no legacy wallet is deployed.
6687
6630
  */
6688
6631
  funder: string;
6689
6632
  /**
6690
6633
  * Format: int32
6691
- * @description Polymarket signature type: `2` = POLY_GNOSIS_SAFE, `1` = POLY_PROXY.
6634
+ * @description Polymarket signature type: `3` = POLY_1271, `2` = POLY_GNOSIS_SAFE,
6635
+ * `1` = POLY_PROXY.
6692
6636
  */
6693
6637
  signature_type: number;
6638
+ /** @description Stable wallet classification for clients that need branching logic. */
6639
+ wallet_type: string;
6694
6640
  };
6695
6641
  /**
6696
6642
  * @description Crypto asset symbols accepted by `asset_price_tick` and `asset_price_window_update` filters.
@@ -8619,7 +8565,7 @@ export interface operations {
8619
8565
  outcome?: string;
8620
8566
  /** @description Outcome index: 0 (Yes), 1 (No) */
8621
8567
  outcome_index?: components["schemas"]["OutcomeIndex"];
8622
- /** @description Comma-separated trade types: OrderFilled, Redemption, Merge, Split, Cancelled, PositionsConverted, OrdersMatched */
8568
+ /** @description Comma-separated trade types: OrderFilled, Redemption, Merge, Split, Cancelled, PositionsConverted, OrdersMatched, MakerRebate, Reward */
8623
8569
  trade_types?: string;
8624
8570
  /** @description Min USD amount */
8625
8571
  min_usd_amount?: number;
@@ -9962,7 +9908,7 @@ export interface operations {
9962
9908
  count_back?: number;
9963
9909
  /** @description Opaque cursor from a previous response to fetch older candles. */
9964
9910
  pagination_key?: string;
9965
- /** @description Fill missing buckets with flat synthetic candles at the last close value. Default: true. */
9911
+ /** @description Fill missing buckets with flat synthetic candles at the last close value, including forward-fill to the requested `to` timestamp or now. Default: true. */
9966
9912
  fill_gaps?: boolean;
9967
9913
  };
9968
9914
  header?: never;
@@ -10130,7 +10076,7 @@ export interface operations {
10130
10076
  outcome?: string;
10131
10077
  /** @description Outcome index: 0 (Yes), 1 (No) */
10132
10078
  outcome_index?: components["schemas"]["OutcomeIndex"];
10133
- /** @description Comma-separated trade types: OrderFilled, Redemption, Merge, Split, Cancelled, PositionsConverted, OrdersMatched */
10079
+ /** @description Comma-separated trade types: OrderFilled, Redemption, Merge, Split, Cancelled, PositionsConverted, OrdersMatched, MakerRebate, Reward */
10134
10080
  trade_types?: string;
10135
10081
  /** @description Min USD amount */
10136
10082
  min_usd_amount?: number;
@@ -2485,6 +2485,51 @@ export interface components {
2485
2485
  exchange: "CTFExchange" | "NegRiskExchange" | "ConditionalTokens" | "NegRiskAdapter" | "Unknown";
2486
2486
  /** @enum {string} */
2487
2487
  trade_type: "OrderFilled" | "OrdersMatched";
2488
+ } | {
2489
+ id: string;
2490
+ hash: string;
2491
+ /** Format: int64 */
2492
+ block: number;
2493
+ /** Format: int64 */
2494
+ confirmed_at: number;
2495
+ /** Format: int64 */
2496
+ log_index: number;
2497
+ /** Format: int64 */
2498
+ block_index: number;
2499
+ order_hash?: string;
2500
+ trader: {
2501
+ address: string;
2502
+ name: string | null;
2503
+ pseudonym: string | null;
2504
+ profile_image: string | null;
2505
+ x_username: string | null;
2506
+ verified_badge: boolean;
2507
+ };
2508
+ taker?: string;
2509
+ /** @enum {string} */
2510
+ side?: "Buy" | "Sell";
2511
+ condition_id?: string | null;
2512
+ position_id?: string;
2513
+ outcome?: string;
2514
+ outcome_index?: number | null;
2515
+ question?: string;
2516
+ image_url?: string;
2517
+ slug?: string;
2518
+ event_slug?: string;
2519
+ usd_amount: number;
2520
+ shares_amount?: number;
2521
+ price?: number;
2522
+ probability?: number;
2523
+ fee?: number;
2524
+ fee_shares?: number;
2525
+ fee_pct?: number;
2526
+ /**
2527
+ * @description Exchange contract that processed the event
2528
+ * @enum {string}
2529
+ */
2530
+ exchange: "CTFExchange" | "NegRiskExchange" | "ConditionalTokens" | "NegRiskAdapter" | "Unknown";
2531
+ /** @enum {string} */
2532
+ trade_type: "MakerRebate" | "Reward";
2488
2533
  } | {
2489
2534
  id: string;
2490
2535
  hash: string;
@@ -3009,7 +3054,7 @@ export interface components {
3009
3054
  /** @description Only fire when event probability is ≤ this value. Events without probability data do not match. */
3010
3055
  max_probability?: number;
3011
3056
  /** @description Only fire for these trade types. Empty = all supported trade-event variants. */
3012
- trade_types?: ("OrderFilled" | "Redemption" | "Merge" | "Split" | "Cancelled" | "PositionsConverted" | "OrdersMatched" | "Initialization" | "Proposal" | "Dispute" | "Settled" | "Resolution" | "ConditionResolution" | "Reset" | "Flag" | "Unflag" | "Pause" | "Unpause" | "ManualResolution" | "NegRiskOutcomeReported" | "RegisterToken" | "Approval")[];
3057
+ trade_types?: ("OrderFilled" | "Redemption" | "Merge" | "Split" | "Cancelled" | "PositionsConverted" | "OrdersMatched" | "MakerRebate" | "Reward" | "Initialization" | "Proposal" | "Dispute" | "Settled" | "Resolution" | "ConditionResolution" | "Reset" | "Flag" | "Unflag" | "Pause" | "Unpause" | "ManualResolution" | "NegRiskOutcomeReported" | "RegisterToken" | "Approval")[];
3013
3058
  /** @description When `true`, suppress webhooks for short-term "updown" markets. Requires explicit `trade_types` that exclude `PositionsConverted`. Default: `false`. */
3014
3059
  exclude_shortterm_markets?: boolean;
3015
3060
  };
@@ -1887,6 +1887,51 @@ export interface components {
1887
1887
  exchange: "CTFExchange" | "NegRiskExchange" | "ConditionalTokens" | "NegRiskAdapter" | "Unknown";
1888
1888
  /** @enum {string} */
1889
1889
  trade_type: "OrderFilled" | "OrdersMatched";
1890
+ } | {
1891
+ id: string;
1892
+ hash: string;
1893
+ /** Format: int64 */
1894
+ block: number;
1895
+ /** Format: int64 */
1896
+ confirmed_at: number;
1897
+ /** Format: int64 */
1898
+ log_index: number;
1899
+ /** Format: int64 */
1900
+ block_index: number;
1901
+ order_hash?: string;
1902
+ trader: {
1903
+ address: string;
1904
+ name: string | null;
1905
+ pseudonym: string | null;
1906
+ profile_image: string | null;
1907
+ x_username: string | null;
1908
+ verified_badge: boolean;
1909
+ };
1910
+ taker?: string;
1911
+ /** @enum {string} */
1912
+ side?: "Buy" | "Sell";
1913
+ condition_id?: string | null;
1914
+ position_id?: string;
1915
+ outcome?: string;
1916
+ outcome_index?: number | null;
1917
+ question?: string;
1918
+ image_url?: string;
1919
+ slug?: string;
1920
+ event_slug?: string;
1921
+ usd_amount: number;
1922
+ shares_amount?: number;
1923
+ price?: number;
1924
+ probability?: number;
1925
+ fee?: number;
1926
+ fee_shares?: number;
1927
+ fee_pct?: number;
1928
+ /**
1929
+ * @description Exchange contract that processed the event
1930
+ * @enum {string}
1931
+ */
1932
+ exchange: "CTFExchange" | "NegRiskExchange" | "ConditionalTokens" | "NegRiskAdapter" | "Unknown";
1933
+ /** @enum {string} */
1934
+ trade_type: "MakerRebate" | "Reward";
1890
1935
  } | {
1891
1936
  id: string;
1892
1937
  hash: string;
@@ -2402,7 +2447,7 @@ export interface components {
2402
2447
  /** @description Only fire when event probability is ≤ this value. Events without probability data do not match. */
2403
2448
  max_probability?: number;
2404
2449
  /** @description Only fire for these trade types. Empty = all supported trade-event variants. */
2405
- trade_types?: ("OrderFilled" | "Redemption" | "Merge" | "Split" | "Cancelled" | "PositionsConverted" | "OrdersMatched" | "Initialization" | "Proposal" | "Dispute" | "Settled" | "Resolution" | "ConditionResolution" | "Reset" | "Flag" | "Unflag" | "Pause" | "Unpause" | "ManualResolution" | "NegRiskOutcomeReported" | "RegisterToken" | "Approval")[];
2450
+ trade_types?: ("OrderFilled" | "Redemption" | "Merge" | "Split" | "Cancelled" | "PositionsConverted" | "OrdersMatched" | "MakerRebate" | "Reward" | "Initialization" | "Proposal" | "Dispute" | "Settled" | "Resolution" | "ConditionResolution" | "Reset" | "Flag" | "Unflag" | "Pause" | "Unpause" | "ManualResolution" | "NegRiskOutcomeReported" | "RegisterToken" | "Approval")[];
2406
2451
  /** @description When `true`, suppress webhooks for short-term "updown" markets. Requires explicit `trade_types` that exclude `PositionsConverted`. Default: `false`. */
2407
2452
  exclude_shortterm_markets?: boolean;
2408
2453
  };
@@ -1959,7 +1959,7 @@ export interface components {
1959
1959
  /** @description Trader wallet addresses (lowercase 0x-prefixed) */
1960
1960
  traders?: string[];
1961
1961
  /** @description Only receive events of these types. Empty array = all types. */
1962
- trade_types?: ("OrderFilled" | "OrdersMatched" | "Redemption" | "Merge" | "Split" | "Cancelled" | "PositionsConverted" | "Initialization" | "Proposal" | "Dispute" | "Settled" | "Resolution" | "ConditionResolution" | "Reset" | "Flag" | "Unflag" | "Pause" | "Unpause" | "ManualResolution" | "NegRiskOutcomeReported" | "RegisterToken" | "Approval")[];
1962
+ trade_types?: ("OrderFilled" | "OrdersMatched" | "Redemption" | "Merge" | "Split" | "Cancelled" | "PositionsConverted" | "MakerRebate" | "Reward" | "Initialization" | "Proposal" | "Dispute" | "Settled" | "Resolution" | "ConditionResolution" | "Reset" | "Flag" | "Unflag" | "Pause" | "Unpause" | "ManualResolution" | "NegRiskOutcomeReported" | "RegisterToken" | "Approval")[];
1963
1963
  /**
1964
1964
  * @description Trade status filter: "confirmed" (default) = on-chain only, "pending" = mempool only, "all" = both
1965
1965
  * @enum {string}
@@ -2037,6 +2037,39 @@ export interface components {
2037
2037
  /** @description Absent for pending trades */
2038
2038
  fee_pct?: number;
2039
2039
  exchange: number;
2040
+ } | {
2041
+ /** @enum {string} */
2042
+ trade_type: "MakerRebate" | "Reward";
2043
+ id: string;
2044
+ hash: string;
2045
+ block?: number;
2046
+ confirmed_at?: number;
2047
+ received_at?: number;
2048
+ log_index?: number;
2049
+ block_index?: number;
2050
+ trader: {
2051
+ address?: string;
2052
+ name?: string | null;
2053
+ pseudonym?: string | null;
2054
+ profile_image?: string | null;
2055
+ x_username?: string | null;
2056
+ verified_badge?: boolean;
2057
+ };
2058
+ /** @description Payout distributor address */
2059
+ taker?: string;
2060
+ usd_amount?: number;
2061
+ /** @description Always 0 for payout credits */
2062
+ shares_amount?: number;
2063
+ /** @description Always 0 for payout credits */
2064
+ price?: number;
2065
+ /** @description Always 0 for payout credits */
2066
+ fee?: number;
2067
+ /** @description Always 0 for payout credits */
2068
+ fee_shares?: number;
2069
+ /** @description Always 0 for payout credits */
2070
+ fee_pct?: number;
2071
+ /** @description Unknown/non-exchange credit source */
2072
+ exchange: number;
2040
2073
  } | {
2041
2074
  /** @enum {string} */
2042
2075
  trade_type: "Redemption";
@@ -3024,11 +3057,49 @@ export interface components {
3024
3057
  fee_pct?: number;
3025
3058
  exchange: number;
3026
3059
  };
3060
+ /**
3061
+ * MakerRebate / Reward
3062
+ * @description pUSD credit paid directly to the trader wallet.
3063
+ */
3064
+ TradeRedemptionEvent: {
3065
+ /** @enum {string} */
3066
+ trade_type: "MakerRebate" | "Reward";
3067
+ id: string;
3068
+ hash: string;
3069
+ block?: number;
3070
+ confirmed_at?: number;
3071
+ received_at?: number;
3072
+ log_index?: number;
3073
+ block_index?: number;
3074
+ trader: {
3075
+ address?: string;
3076
+ name?: string | null;
3077
+ pseudonym?: string | null;
3078
+ profile_image?: string | null;
3079
+ x_username?: string | null;
3080
+ verified_badge?: boolean;
3081
+ };
3082
+ /** @description Payout distributor address */
3083
+ taker?: string;
3084
+ usd_amount?: number;
3085
+ /** @description Always 0 for payout credits */
3086
+ shares_amount?: number;
3087
+ /** @description Always 0 for payout credits */
3088
+ price?: number;
3089
+ /** @description Always 0 for payout credits */
3090
+ fee?: number;
3091
+ /** @description Always 0 for payout credits */
3092
+ fee_shares?: number;
3093
+ /** @description Always 0 for payout credits */
3094
+ fee_pct?: number;
3095
+ /** @description Unknown/non-exchange credit source */
3096
+ exchange: number;
3097
+ };
3027
3098
  /**
3028
3099
  * Redemption
3029
3100
  * @description Positions redeemed after market resolution.
3030
3101
  */
3031
- TradeRedemptionEvent: {
3102
+ TradeMergeEvent: {
3032
3103
  /** @enum {string} */
3033
3104
  trade_type: "Redemption";
3034
3105
  id: string;
@@ -3066,7 +3137,7 @@ export interface components {
3066
3137
  * Merge
3067
3138
  * @description Outcome tokens burned to receive collateral.
3068
3139
  */
3069
- TradeMergeEvent: {
3140
+ TradeSplitEvent: {
3070
3141
  /** @enum {string} */
3071
3142
  trade_type: "Merge";
3072
3143
  id: string;
@@ -3101,7 +3172,7 @@ export interface components {
3101
3172
  * Split
3102
3173
  * @description Collateral deposited to receive outcome tokens.
3103
3174
  */
3104
- TradeSplitEvent: {
3175
+ TradePositionsConvertedEvent: {
3105
3176
  /** @enum {string} */
3106
3177
  trade_type: "Split";
3107
3178
  id: string;
@@ -3136,7 +3207,7 @@ export interface components {
3136
3207
  * PositionsConverted
3137
3208
  * @description NegRisk NO tokens converted to YES tokens + collateral.
3138
3209
  */
3139
- TradePositionsConvertedEvent: {
3210
+ TradeCancelledEvent: {
3140
3211
  /** @enum {string} */
3141
3212
  trade_type: "PositionsConverted";
3142
3213
  id: string;
@@ -3163,7 +3234,7 @@ export interface components {
3163
3234
  * Cancelled
3164
3235
  * @description Order cancelled on-chain.
3165
3236
  */
3166
- TradeCancelledEvent: {
3237
+ TradeOracleLifecycleEvent: {
3167
3238
  /** @enum {string} */
3168
3239
  trade_type: "Cancelled";
3169
3240
  id: string;
@@ -3184,7 +3255,7 @@ export interface components {
3184
3255
  * Oracle Lifecycle Event
3185
3256
  * @description Market lifecycle events: Initialization, Proposal, Dispute, Settled, Resolution, ConditionResolution, Reset, Flag, Unflag, Pause, Unpause, ManualResolution, NegRiskOutcomeReported.
3186
3257
  */
3187
- TradeOracleLifecycleEvent: {
3258
+ TradeRegisterTokenEvent: {
3188
3259
  /** @enum {string} */
3189
3260
  trade_type: "Initialization" | "Proposal" | "Dispute" | "Settled" | "Resolution" | "ConditionResolution" | "Reset" | "Flag" | "Unflag" | "Pause" | "Unpause" | "ManualResolution" | "NegRiskOutcomeReported";
3190
3261
  id: string;
@@ -3218,7 +3289,7 @@ export interface components {
3218
3289
  * RegisterToken
3219
3290
  * @description YES/NO token pair registered for a condition.
3220
3291
  */
3221
- TradeRegisterTokenEvent: {
3292
+ TradeApprovalEvent: {
3222
3293
  /** @enum {string} */
3223
3294
  trade_type: "RegisterToken";
3224
3295
  id: string;
@@ -3237,36 +3308,6 @@ export interface components {
3237
3308
  event_slug?: string | null;
3238
3309
  exchange: number;
3239
3310
  };
3240
- /**
3241
- * Approval
3242
- * @description ERC-1155 setApprovalForAll — operator approved/revoked.
3243
- */
3244
- TradeApprovalEvent: {
3245
- /** @enum {string} */
3246
- trade_type: "Approval";
3247
- id: string;
3248
- hash: string;
3249
- block?: number;
3250
- confirmed_at?: number;
3251
- received_at?: number;
3252
- log_index?: number;
3253
- block_index?: number;
3254
- trader: {
3255
- address?: string;
3256
- name?: string | null;
3257
- pseudonym?: string | null;
3258
- profile_image?: string | null;
3259
- x_username?: string | null;
3260
- verified_badge?: boolean;
3261
- };
3262
- operator?: string;
3263
- approved?: boolean;
3264
- question?: string | null;
3265
- image_url?: string | null;
3266
- slug?: string | null;
3267
- event_slug?: string | null;
3268
- exchange: number;
3269
- };
3270
3311
  };
3271
3312
  responses: never;
3272
3313
  parameters: never;
@@ -470,7 +470,6 @@ export type ExchangeKindDto = Schemas["ExchangeKindDto"];
470
470
  export type OnboardStatus = Schemas["OnboardStatus"];
471
471
  export type OrderType = Schemas["OrderType"];
472
472
  export type PnlV3AnalyticsTimeframe = Schemas["PnlV3AnalyticsTimeframe"];
473
- export type PnlV3CandleEntry = Schemas["PnlV3CandleEntry"];
474
473
  export type PnlV3CandlestickBar = Schemas["PnlV3CandlestickBar"];
475
474
  export type PnlV3ChangeWindow = Schemas["PnlV3ChangeWindow"];
476
475
  export type PnlV3ChangesResponse = Schemas["PnlV3ChangesResponse"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@structbuild/sdk",
3
- "version": "0.5.6-staging.3",
3
+ "version": "0.5.6-staging.4",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",