@0xmonaco/types 1.0.92 → 1.0.93

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/dist/index.d.ts CHANGED
@@ -29,5 +29,4 @@ export * from "./trading";
29
29
  export * from "./validation";
30
30
  export * from "./vault";
31
31
  export * from "./websocket";
32
- export * from "./whitelist";
33
32
  export * from "./withdrawals";
package/dist/index.js CHANGED
@@ -30,5 +30,4 @@ export * from "./trading";
30
30
  export * from "./validation";
31
31
  export * from "./vault";
32
32
  export * from "./websocket";
33
- export * from "./whitelist";
34
33
  export * from "./withdrawals";
@@ -20,7 +20,6 @@ import type { TraderCodesAPI } from "../tradercodes";
20
20
  import type { TradingAPI, TradingMode } from "../trading";
21
21
  import type { VaultAPI } from "../vault";
22
22
  import type { MonacoWebSocket, MonacoWebSocketConfig, OrderbookEvent, OrderbookQuotationMode, TradeEvent } from "../websocket";
23
- import type { WhitelistAPI } from "../whitelist";
24
23
  import type { WithdrawalsAPI } from "../withdrawals";
25
24
  import type { Network } from "./network";
26
25
  /** REST signing migration selector. WebSocket and gRPC authentication are unchanged. */
@@ -125,8 +124,6 @@ export interface MonacoSDK {
125
124
  /** Deposit-address registration (sweeper) API; requires a session */
126
125
  sweeper: SweeperAPI;
127
126
  managedMarkets: ManagedMarketsAPI;
128
- /** @deprecated Public whitelist applications are closed; submissions return HTTP 403. */
129
- whitelist: WhitelistAPI;
130
127
  /** Profile operations API */
131
128
  profile: ProfileAPI;
132
129
  /** Public market-pulse news feed API (cached, hourly-refreshed) */
@@ -9,12 +9,22 @@ import type { Address } from "viem";
9
9
  * User movement event data containing ledger entry details
10
10
  */
11
11
  export interface UserMovementEventData {
12
- /** Unique movement identifier (UUID) */
12
+ /**
13
+ * Unique movement identifier (UUID). A funding movement and a spot order's
14
+ * released lock carry the id of their movement-history row.
15
+ */
13
16
  id: string;
14
- /** Entry type (e.g., "credit", "debit") */
17
+ /**
18
+ * Entry type (e.g., "credit", "debit"). A spot order's released lock is
19
+ * "UNLOCK", upper-case like its movement-history row, so compare
20
+ * case-insensitively.
21
+ */
15
22
  entryType: string;
16
23
  /**
17
24
  * Transaction type (e.g., "deposit", "withdrawal", "trade", "funding").
25
+ * A spot order's released lock is "TRADE", and its reason
26
+ * (`OrderCancelled`, `OrderPartiallyCancelled`, `OrderExpired`) starts
27
+ * `description`.
18
28
  * A `funding` movement records a funding payment already settled against
19
29
  * margin collateral; it reconciles with the matching `balance_update` event
20
30
  * whose `reason` is `funding`.
@@ -58,7 +68,7 @@ export interface UserMovementEventData {
58
68
  lockedAfterRaw?: string;
59
69
  /** Reference ID for related entity (UUID) */
60
70
  referenceId?: string;
61
- /** Reference type (e.g., "order", "deposit") */
71
+ /** Reference type (e.g., "Order" on a spot order's released lock, "deposit") */
62
72
  referenceType?: string;
63
73
  /** Human-readable description */
64
74
  description?: string;
@@ -10,6 +10,6 @@
10
10
  * hand-written SDK surface. CI regenerates it and fails on a diff, identical to
11
11
  * the `schema.ts` wire-types tripwire (MON-1476), so it can never go stale.
12
12
  */
13
- export declare const OPERATION_IDS: readonly ["add_follow_position_margin", "attach_position_tp_sl", "batch_cancel_all", "batch_cancel_all_by_pair", "batch_cancel_orders", "batch_close_all_positions", "batch_create_orders", "batch_replace_orders", "cancel_conditional_order", "cancel_order", "cancel_twap_order", "check_trader_code_availability", "claim_buildercode_rewards", "claim_managed_market_lease", "clear_trader_code", "close_all_copy_positions", "close_follow_positions", "close_position", "close_sub_account", "create_challenge", "create_delegated_session", "create_order", "create_sub_account", "create_sub_account_limit", "create_twap_order", "delete_sub_account_limit", "get_application_config", "get_application_stats", "get_available_collateral", "get_buildercode_payout_summary", "get_buildercode_rewards_balance", "get_buildercodes_config", "get_candles", "get_conditional_order", "get_faucet_info", "get_follow", "get_funding_state", "get_index_price", "get_lead_trader", "get_liquidation_metrics", "get_margin_account_movements", "get_margin_account_pnl", "get_margin_account_summary", "get_mark_price", "get_market_metadata", "get_market_stats", "get_my_fee_tier", "get_my_lead_trader", "get_my_referral_downline", "get_my_referral_position", "get_my_referral_tree", "get_my_trader_code", "get_open_interest", "get_order_by_id", "get_orderbook_snapshot", "get_orders", "get_parent_margin_account_movements", "get_parent_margin_account_summary", "get_perp_market_config", "get_perp_market_summary", "get_portfolio_assets", "get_portfolio_chart", "get_portfolio_margin", "get_portfolio_performance", "get_portfolio_realized_pnl", "get_portfolio_stats", "get_portfolio_summary", "get_position", "get_position_pnl_history", "get_position_risk", "get_pulse", "get_region_status", "get_rewards_balance", "get_screener", "get_self_trade_prevention_default", "get_sub_account_limits", "get_sweeper_chains", "get_sweeper_deposit_status", "get_trade_by_id", "get_trade_flow", "get_trader_code_info", "get_trader_metrics", "get_trades", "get_trading_pair_by_id", "get_twap_order", "get_twap_order_tca", "get_user_balance_by_asset", "get_user_balances", "get_user_movements", "get_user_profile", "get_user_trades", "get_withdrawal", "health_check", "initiate_withdrawal", "list_all_funding_history", "list_application_balances", "list_application_movements", "list_application_orders", "list_application_users", "list_builder_fee_changes", "list_buildercode_payouts", "list_conditional_orders", "list_delegated_agent_owners", "list_delegated_agents", "list_follow_leader_positions", "list_funding_history", "list_funding_payments", "list_invite_codes", "list_lead_trader_closed_trades", "list_lead_trader_open_positions", "list_lead_traders", "list_liquidation_events", "list_managed_market_assignments", "list_margin_accounts", "list_my_followers", "list_my_follows", "list_pending_withdrawals", "list_position_history", "list_positions", "list_sub_accounts_with_balances", "list_sweeper_deposits", "list_trading_pairs", "list_twap_order_slices", "list_twap_orders", "mint_tokens", "preview_follow", "refresh_managed_market_quotes", "refresh_session", "register_deposit_address", "replace_order", "request_invite_codes", "revoke_delegated_agent", "revoke_session", "set_builder_fee", "set_self_trade_prevention_default", "set_trader_code", "simulate_fees", "simulate_order_risk", "simulate_parent_margin_order_risk", "simulate_risk_bucket_order_risk", "stop_follow", "submit_whitelist", "transfer_collateral", "transfer_collateral_from_margin_account", "transfer_collateral_from_parent_margin_account", "transfer_collateral_from_sub_account", "transfer_collateral_to_margin_account", "transfer_collateral_to_parent_margin_account", "transfer_collateral_to_risk_bucket", "transfer_collateral_to_sub_account", "transfer_rewards", "update_sub_account_limit", "upsert_delegated_agent", "upsert_follow", "upsert_lead_trader", "verify_signature"];
13
+ export declare const OPERATION_IDS: readonly ["add_follow_position_margin", "attach_position_tp_sl", "batch_cancel_all", "batch_cancel_all_by_pair", "batch_cancel_orders", "batch_close_all_positions", "batch_create_orders", "batch_replace_orders", "cancel_conditional_order", "cancel_order", "cancel_twap_order", "check_trader_code_availability", "claim_buildercode_rewards", "claim_managed_market_lease", "clear_trader_code", "close_all_copy_positions", "close_follow_positions", "close_position", "close_sub_account", "create_challenge", "create_delegated_session", "create_order", "create_sub_account", "create_sub_account_limit", "create_twap_order", "delete_sub_account_limit", "get_application_config", "get_application_stats", "get_available_collateral", "get_buildercode_payout_summary", "get_buildercode_rewards_balance", "get_buildercodes_config", "get_candles", "get_conditional_order", "get_faucet_info", "get_follow", "get_funding_state", "get_index_price", "get_lead_trader", "get_liquidation_metrics", "get_margin_account_movements", "get_margin_account_pnl", "get_margin_account_summary", "get_mark_price", "get_market_metadata", "get_market_stats", "get_my_fee_tier", "get_my_lead_trader", "get_my_referral_downline", "get_my_referral_position", "get_my_referral_tree", "get_my_trader_code", "get_open_interest", "get_order_by_id", "get_orderbook_snapshot", "get_orders", "get_parent_margin_account_movements", "get_parent_margin_account_summary", "get_perp_market_config", "get_perp_market_summary", "get_portfolio_assets", "get_portfolio_chart", "get_portfolio_margin", "get_portfolio_performance", "get_portfolio_realized_pnl", "get_portfolio_stats", "get_portfolio_summary", "get_position", "get_position_pnl_history", "get_position_risk", "get_pulse", "get_region_status", "get_rewards_balance", "get_screener", "get_self_trade_prevention_default", "get_sub_account_limits", "get_sweeper_chains", "get_sweeper_deposit_status", "get_trade_by_id", "get_trade_flow", "get_trader_code_info", "get_trader_metrics", "get_trades", "get_trading_pair_by_id", "get_twap_order", "get_twap_order_tca", "get_user_balance_by_asset", "get_user_balances", "get_user_movements", "get_user_profile", "get_user_trades", "get_withdrawal", "health_check", "initiate_withdrawal", "list_all_funding_history", "list_application_balances", "list_application_movements", "list_application_orders", "list_application_users", "list_builder_fee_changes", "list_buildercode_payouts", "list_conditional_orders", "list_delegated_agent_owners", "list_delegated_agents", "list_follow_leader_positions", "list_funding_history", "list_funding_payments", "list_invite_codes", "list_lead_trader_closed_trades", "list_lead_trader_open_positions", "list_lead_traders", "list_liquidation_events", "list_managed_market_assignments", "list_margin_accounts", "list_my_followers", "list_my_follows", "list_pending_withdrawals", "list_position_history", "list_positions", "list_sub_accounts_with_balances", "list_sweeper_deposits", "list_trading_pairs", "list_twap_order_slices", "list_twap_orders", "mint_tokens", "preview_follow", "refresh_managed_market_quotes", "refresh_session", "register_deposit_address", "replace_order", "request_invite_codes", "revoke_delegated_agent", "revoke_session", "set_builder_fee", "set_self_trade_prevention_default", "set_trader_code", "simulate_fees", "simulate_order_risk", "simulate_parent_margin_order_risk", "simulate_risk_bucket_order_risk", "stop_follow", "transfer_collateral", "transfer_collateral_from_margin_account", "transfer_collateral_from_parent_margin_account", "transfer_collateral_from_sub_account", "transfer_collateral_to_margin_account", "transfer_collateral_to_parent_margin_account", "transfer_collateral_to_risk_bucket", "transfer_collateral_to_sub_account", "transfer_rewards", "update_sub_account_limit", "upsert_delegated_agent", "upsert_follow", "upsert_lead_trader", "verify_signature"];
14
14
  /** Union of every OpenAPI operationId in the spec. */
15
15
  export type OperationId = (typeof OPERATION_IDS)[number];
@@ -152,7 +152,6 @@ export const OPERATION_IDS = [
152
152
  "simulate_parent_margin_order_risk",
153
153
  "simulate_risk_bucket_order_risk",
154
154
  "stop_follow",
155
- "submit_whitelist",
156
155
  "transfer_collateral",
157
156
  "transfer_collateral_from_margin_account",
158
157
  "transfer_collateral_from_parent_margin_account",
@@ -3515,31 +3515,6 @@ export interface paths {
3515
3515
  patch?: never;
3516
3516
  trace?: never;
3517
3517
  };
3518
- "/api/v1/whitelist": {
3519
- parameters: {
3520
- query?: never;
3521
- header?: never;
3522
- path?: never;
3523
- cookie?: never;
3524
- };
3525
- get?: never;
3526
- put?: never;
3527
- /**
3528
- * Whitelist applications closed
3529
- * @deprecated
3530
- * @description Public whitelist applications are closed.
3531
- *
3532
- * Retained for client compatibility. Every decoded submission is rejected with
3533
- * HTTP 403 Forbidden / gRPC PERMISSION_DENIED and no applicant data is changed.
3534
- * Existing applications and administrative approvals remain available.
3535
- */
3536
- post: operations["submit_whitelist"];
3537
- delete?: never;
3538
- options?: never;
3539
- head?: never;
3540
- patch?: never;
3541
- trace?: never;
3542
- };
3543
3518
  "/api/v1/withdrawals": {
3544
3519
  parameters: {
3545
3520
  query?: never;
@@ -10724,42 +10699,6 @@ export interface components {
10724
10699
  */
10725
10700
  isActive?: boolean | null;
10726
10701
  };
10727
- SubmitWhitelistRequest: {
10728
- /**
10729
- * @description Applicant wallet address
10730
- * @example 0x742d35Cc6634C0532925a3b8D4060f31E2C3d8B5
10731
- */
10732
- walletAddress: string;
10733
- /**
10734
- * Format: email
10735
- * @description Applicant email address
10736
- * @example user@example.com
10737
- */
10738
- email: string;
10739
- /**
10740
- * @description Applicant Twitter/X username
10741
- * @example monaco_user
10742
- */
10743
- twitterUsername?: string | null;
10744
- /**
10745
- * @description Applicant Telegram username
10746
- * @example monaco_user
10747
- */
10748
- telegramUsername?: string | null;
10749
- };
10750
- SubmitWhitelistResponse: {
10751
- /**
10752
- * @description Legacy success message; submissions now return HTTP 403 / gRPC PERMISSION_DENIED
10753
- * @example Your whitelist application has been submitted successfully! We'll review it and get back to you soon.
10754
- */
10755
- message?: string | null;
10756
- /**
10757
- * Format: uuid
10758
- * @description Legacy created user UUID; retired submissions do not create users
10759
- * @example 123e4567-e89b-12d3-a456-426614174000
10760
- */
10761
- userId?: string | null;
10762
- };
10763
10702
  SweeperChain: {
10764
10703
  /**
10765
10704
  * Format: int64
@@ -19824,51 +19763,6 @@ export interface operations {
19824
19763
  };
19825
19764
  };
19826
19765
  };
19827
- submit_whitelist: {
19828
- parameters: {
19829
- query?: never;
19830
- header?: never;
19831
- path?: never;
19832
- cookie?: never;
19833
- };
19834
- requestBody: {
19835
- content: {
19836
- "application/json": components["schemas"]["SubmitWhitelistRequest"];
19837
- };
19838
- };
19839
- responses: {
19840
- /** @description OK */
19841
- 200: {
19842
- headers: {
19843
- [name: string]: unknown;
19844
- };
19845
- content: {
19846
- "application/json": components["schemas"]["SubmitWhitelistResponse"];
19847
- };
19848
- };
19849
- /** @description Invalid request parameters */
19850
- 400: {
19851
- headers: {
19852
- [name: string]: unknown;
19853
- };
19854
- content?: never;
19855
- };
19856
- /** @description Public whitelist applications are closed. No applicant data is changed. */
19857
- 403: {
19858
- headers: {
19859
- [name: string]: unknown;
19860
- };
19861
- content?: never;
19862
- };
19863
- /** @description Internal server error */
19864
- 500: {
19865
- headers: {
19866
- [name: string]: unknown;
19867
- };
19868
- content?: never;
19869
- };
19870
- };
19871
- };
19872
19766
  list_pending_withdrawals: {
19873
19767
  parameters: {
19874
19768
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xmonaco/types",
3
- "version": "1.0.92",
3
+ "version": "1.0.93",
4
4
  "type": "module",
5
5
  "homepage": "https://docs.0xmonaco.com/sdk/typescript",
6
6
  "main": "./dist/index.js",
@@ -16,7 +16,7 @@
16
16
  "lint": "biome lint ."
17
17
  },
18
18
  "dependencies": {
19
- "@0xmonaco/contracts": "1.0.92",
19
+ "@0xmonaco/contracts": "1.0.93",
20
20
  "zod": "^4.1.12"
21
21
  },
22
22
  "peerDependencies": {
@@ -1,33 +0,0 @@
1
- /**
2
- * Compatibility types for the retired public whitelist endpoint.
3
- * Submissions return HTTP 403 FORBIDDEN without changing applicant data.
4
- */
5
- import type { BaseAPI } from "../api";
6
- /** Body for a whitelist application. */
7
- export interface SubmitWhitelistRequest {
8
- /** Applicant wallet address (0x-prefixed, 40 hex chars) */
9
- walletAddress: string;
10
- /** Applicant email address */
11
- email: string;
12
- /** Applicant Twitter/X username (1-15 chars) */
13
- twitterUsername?: string;
14
- /** Applicant Telegram username (5-32 chars) */
15
- telegramUsername?: string;
16
- }
17
- /** Legacy success response, retained for compatibility; retired submissions return HTTP 403. */
18
- export interface SubmitWhitelistResponse {
19
- /** Human-readable status message */
20
- message: string;
21
- /** Created user UUID (pending approval) */
22
- userId: string | null;
23
- }
24
- /**
25
- * Whitelist API interface. The submit endpoint is public (no auth required).
26
- */
27
- export interface WhitelistAPI extends BaseAPI {
28
- /**
29
- * @deprecated Public whitelist applications are closed. The server returns HTTP 403.
30
- * @param body - Legacy applicant details; the request shape is retained for compatibility.
31
- */
32
- submit(body: SubmitWhitelistRequest): Promise<SubmitWhitelistResponse>;
33
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * Compatibility types for the retired public whitelist endpoint.
3
- * Submissions return HTTP 403 FORBIDDEN without changing applicant data.
4
- */