@0xmonaco/types 0.8.7 → 0.8.10
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/api/index.d.ts +13 -5
- package/dist/api/index.js +1 -1
- package/dist/applications/index.d.ts +47 -5
- package/dist/applications/index.js +2 -1
- package/dist/applications/requests.d.ts +78 -0
- package/dist/applications/requests.js +7 -0
- package/dist/applications/responses.d.ts +211 -1
- package/dist/applications/responses.js +3 -1
- package/dist/auth/index.d.ts +29 -31
- package/dist/auth/index.js +2 -2
- package/dist/auth/responses.d.ts +23 -20
- package/dist/delegated-agents/index.d.ts +17 -1
- package/dist/faucet/index.d.ts +54 -0
- package/dist/faucet/index.js +10 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/dist/margin-accounts/index.d.ts +11 -14
- package/dist/market/index.d.ts +83 -0
- package/dist/positions/index.d.ts +1 -0
- package/dist/profile/index.d.ts +88 -1
- package/dist/sdk/index.d.ts +40 -2
- package/dist/sub-accounts/index.d.ts +145 -0
- package/dist/sub-accounts/index.js +9 -0
- package/dist/trading/index.d.ts +6 -6
- package/dist/trading/responses.d.ts +8 -27
- package/dist/validation/margin-accounts.d.ts +7 -9
- package/dist/validation/margin-accounts.js +7 -9
- package/dist/validation/profile.d.ts +7 -0
- package/dist/validation/profile.js +7 -0
- package/dist/validation/trading.d.ts +8 -33
- package/dist/validation/trading.js +42 -33
- package/dist/whitelist/index.d.ts +44 -0
- package/dist/whitelist/index.js +10 -0
- package/dist/wire/assert.d.ts +54 -0
- package/dist/wire/assert.js +0 -0
- package/dist/wire/audit.d.ts +47 -0
- package/dist/wire/audit.js +43 -0
- package/dist/wire/coverage.d.ts +1 -0
- package/dist/wire/coverage.js +0 -0
- package/dist/wire/index.d.ts +21 -0
- package/dist/wire/index.js +2 -0
- package/dist/wire/operations.d.ts +15 -0
- package/dist/wire/operations.js +93 -0
- package/dist/wire/schema.d.ts +8352 -0
- package/dist/wire/schema.js +4 -0
- package/dist/withdrawals/index.d.ts +43 -0
- package/dist/withdrawals/index.js +0 -0
- package/package.json +6 -2
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED — DO NOT EDIT BY HAND.
|
|
3
|
+
*
|
|
4
|
+
* Runtime list of every OpenAPI operationId in the canonical spec
|
|
5
|
+
* (docs/src/proto-openapi/api/openapi.yaml), emitted by `make ts-wire-gen`
|
|
6
|
+
* (scripts/gen-operation-ids.ts) alongside the type-only `schema.ts`.
|
|
7
|
+
*
|
|
8
|
+
* The MON-1489 endpoint-coverage gate iterates this list to assert that every
|
|
9
|
+
* operationId is classified (covered or intentionally excluded) on each
|
|
10
|
+
* hand-written SDK surface. CI regenerates it and fails on a diff, identical to
|
|
11
|
+
* the `schema.ts` wire-types tripwire (MON-1476), so it can never go stale.
|
|
12
|
+
*/
|
|
13
|
+
export declare const OPERATION_IDS: readonly ["add_position_margin", "attach_position_tp_sl", "authenticate_backend", "batch_cancel_all", "batch_cancel_all_by_pair", "batch_cancel_orders", "batch_create_orders", "batch_replace_orders", "cancel_conditional_order", "cancel_order", "close_position", "create_challenge", "create_delegated_session", "create_order", "create_sub_account_limit", "delete_sub_account_limit", "get_application_config", "get_application_stats", "get_available_collateral", "get_candles", "get_funding_state", "get_index_price", "get_margin_account_movements", "get_margin_account_summary", "get_mark_price", "get_market_metadata", "get_open_interest", "get_order_by_id", "get_orderbook_snapshot", "get_orders", "get_perp_market_config", "get_perp_market_summary", "get_portfolio_chart", "get_portfolio_stats", "get_position", "get_position_risk", "get_screener", "get_sub_account_limits", "get_trade_by_id", "get_trades", "get_trading_pair_by_id", "get_user_balance_by_asset", "get_user_balances", "get_user_movements", "get_user_profile", "get_user_trades", "get_withdrawal", "health_check", "initiate_withdrawal", "list_application_balances", "list_application_movements", "list_application_orders", "list_application_users", "list_conditional_orders", "list_delegated_agent_owners", "list_delegated_agents", "list_funding_history", "list_funding_payments", "list_margin_accounts", "list_position_history", "list_positions", "list_sub_accounts_with_balances", "list_trading_pairs", "mint_tokens", "reduce_position_margin", "refresh_session", "replace_order", "revoke_delegated_agent", "revoke_session", "simulate_auto_margin_order_risk", "simulate_fees", "simulate_order_risk", "submit_whitelist", "transfer_collateral_from_margin_account", "transfer_collateral_to_auto_margin_account", "transfer_collateral_to_margin_account", "update_sub_account_limit", "upsert_delegated_agent", "verify_signature"];
|
|
14
|
+
/** Union of every OpenAPI operationId in the spec. */
|
|
15
|
+
export type OperationId = (typeof OPERATION_IDS)[number];
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED — DO NOT EDIT BY HAND.
|
|
3
|
+
*
|
|
4
|
+
* Runtime list of every OpenAPI operationId in the canonical spec
|
|
5
|
+
* (docs/src/proto-openapi/api/openapi.yaml), emitted by `make ts-wire-gen`
|
|
6
|
+
* (scripts/gen-operation-ids.ts) alongside the type-only `schema.ts`.
|
|
7
|
+
*
|
|
8
|
+
* The MON-1489 endpoint-coverage gate iterates this list to assert that every
|
|
9
|
+
* operationId is classified (covered or intentionally excluded) on each
|
|
10
|
+
* hand-written SDK surface. CI regenerates it and fails on a diff, identical to
|
|
11
|
+
* the `schema.ts` wire-types tripwire (MON-1476), so it can never go stale.
|
|
12
|
+
*/
|
|
13
|
+
export const OPERATION_IDS = [
|
|
14
|
+
"add_position_margin",
|
|
15
|
+
"attach_position_tp_sl",
|
|
16
|
+
"authenticate_backend",
|
|
17
|
+
"batch_cancel_all",
|
|
18
|
+
"batch_cancel_all_by_pair",
|
|
19
|
+
"batch_cancel_orders",
|
|
20
|
+
"batch_create_orders",
|
|
21
|
+
"batch_replace_orders",
|
|
22
|
+
"cancel_conditional_order",
|
|
23
|
+
"cancel_order",
|
|
24
|
+
"close_position",
|
|
25
|
+
"create_challenge",
|
|
26
|
+
"create_delegated_session",
|
|
27
|
+
"create_order",
|
|
28
|
+
"create_sub_account_limit",
|
|
29
|
+
"delete_sub_account_limit",
|
|
30
|
+
"get_application_config",
|
|
31
|
+
"get_application_stats",
|
|
32
|
+
"get_available_collateral",
|
|
33
|
+
"get_candles",
|
|
34
|
+
"get_funding_state",
|
|
35
|
+
"get_index_price",
|
|
36
|
+
"get_margin_account_movements",
|
|
37
|
+
"get_margin_account_summary",
|
|
38
|
+
"get_mark_price",
|
|
39
|
+
"get_market_metadata",
|
|
40
|
+
"get_open_interest",
|
|
41
|
+
"get_order_by_id",
|
|
42
|
+
"get_orderbook_snapshot",
|
|
43
|
+
"get_orders",
|
|
44
|
+
"get_perp_market_config",
|
|
45
|
+
"get_perp_market_summary",
|
|
46
|
+
"get_portfolio_chart",
|
|
47
|
+
"get_portfolio_stats",
|
|
48
|
+
"get_position",
|
|
49
|
+
"get_position_risk",
|
|
50
|
+
"get_screener",
|
|
51
|
+
"get_sub_account_limits",
|
|
52
|
+
"get_trade_by_id",
|
|
53
|
+
"get_trades",
|
|
54
|
+
"get_trading_pair_by_id",
|
|
55
|
+
"get_user_balance_by_asset",
|
|
56
|
+
"get_user_balances",
|
|
57
|
+
"get_user_movements",
|
|
58
|
+
"get_user_profile",
|
|
59
|
+
"get_user_trades",
|
|
60
|
+
"get_withdrawal",
|
|
61
|
+
"health_check",
|
|
62
|
+
"initiate_withdrawal",
|
|
63
|
+
"list_application_balances",
|
|
64
|
+
"list_application_movements",
|
|
65
|
+
"list_application_orders",
|
|
66
|
+
"list_application_users",
|
|
67
|
+
"list_conditional_orders",
|
|
68
|
+
"list_delegated_agent_owners",
|
|
69
|
+
"list_delegated_agents",
|
|
70
|
+
"list_funding_history",
|
|
71
|
+
"list_funding_payments",
|
|
72
|
+
"list_margin_accounts",
|
|
73
|
+
"list_position_history",
|
|
74
|
+
"list_positions",
|
|
75
|
+
"list_sub_accounts_with_balances",
|
|
76
|
+
"list_trading_pairs",
|
|
77
|
+
"mint_tokens",
|
|
78
|
+
"reduce_position_margin",
|
|
79
|
+
"refresh_session",
|
|
80
|
+
"replace_order",
|
|
81
|
+
"revoke_delegated_agent",
|
|
82
|
+
"revoke_session",
|
|
83
|
+
"simulate_auto_margin_order_risk",
|
|
84
|
+
"simulate_fees",
|
|
85
|
+
"simulate_order_risk",
|
|
86
|
+
"submit_whitelist",
|
|
87
|
+
"transfer_collateral_from_margin_account",
|
|
88
|
+
"transfer_collateral_to_auto_margin_account",
|
|
89
|
+
"transfer_collateral_to_margin_account",
|
|
90
|
+
"update_sub_account_limit",
|
|
91
|
+
"upsert_delegated_agent",
|
|
92
|
+
"verify_signature",
|
|
93
|
+
];
|