@0xmonaco/types 1.0.91 → 1.0.92
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/README.md +4 -4
- package/dist/auth/index.d.ts +14 -0
- package/dist/auth/index.js +13 -0
- package/dist/compliance/index.d.ts +32 -0
- package/dist/compliance/index.js +10 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/sdk/index.d.ts +3 -0
- package/dist/websocket/base.d.ts +5 -2
- package/dist/wire/operations.d.ts +1 -1
- package/dist/wire/operations.js +1 -0
- package/dist/wire/schema.d.ts +66 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@ import { MonacoSDK, SDKConfig } from "@0xmonaco/types";
|
|
|
22
22
|
// SDK configuration
|
|
23
23
|
interface SDKConfig {
|
|
24
24
|
walletClient?: WalletClient; // Wallet client for signing operations
|
|
25
|
-
network: Network; // Use "
|
|
25
|
+
network: Network; // Use "mainnet" (Sei mainnet, production API)
|
|
26
26
|
seiRpcUrl: string; // RPC URL for Sei blockchain interactions
|
|
27
27
|
}
|
|
28
28
|
|
|
@@ -305,7 +305,7 @@ Types for network configuration:
|
|
|
305
305
|
```typescript
|
|
306
306
|
import { Network, NetworkEndpoints } from "@0xmonaco/types";
|
|
307
307
|
|
|
308
|
-
const publicNetwork: Network = "
|
|
308
|
+
const publicNetwork: Network = "mainnet";
|
|
309
309
|
|
|
310
310
|
interface NetworkEndpoints {
|
|
311
311
|
rpcUrl: string;
|
|
@@ -313,7 +313,7 @@ interface NetworkEndpoints {
|
|
|
313
313
|
}
|
|
314
314
|
```
|
|
315
315
|
|
|
316
|
-
For public integrations, use `"
|
|
316
|
+
For public integrations, use `"mainnet"`.
|
|
317
317
|
|
|
318
318
|
## Type Reference
|
|
319
319
|
|
|
@@ -321,7 +321,7 @@ For public integrations, use `"staging"` or `"mainnet"`.
|
|
|
321
321
|
|
|
322
322
|
- `MonacoSDK`: Main SDK interface with all API modules
|
|
323
323
|
- `SDKConfig`: Configuration options for the Monaco SDK
|
|
324
|
-
- `Network`: SDK network preset type. Public integrations should use `"
|
|
324
|
+
- `Network`: SDK network preset type. Public integrations should use `"mainnet"`.
|
|
325
325
|
- `AuthState`: Authentication state information
|
|
326
326
|
|
|
327
327
|
### Vault Types
|
package/dist/auth/index.d.ts
CHANGED
|
@@ -164,3 +164,17 @@ export declare const INVITE_ERROR_CODES: {
|
|
|
164
164
|
readonly INVITE_CODE_INVALID: "INVITE_CODE_INVALID";
|
|
165
165
|
};
|
|
166
166
|
export type InviteErrorCode = (typeof INVITE_ERROR_CODES)[keyof typeof INVITE_ERROR_CODES];
|
|
167
|
+
/**
|
|
168
|
+
* Stable codes for a wallet on the OFAC sanctions list, read from
|
|
169
|
+
* `APIError.serverCode` (REST error envelope `code`, which here is also the
|
|
170
|
+
* envelope `error`; gRPC `google.rpc.ErrorInfo` reason in the
|
|
171
|
+
* `auth.0xmonaco.com` domain). Both are HTTP 403 / gRPC `PERMISSION_DENIED`,
|
|
172
|
+
* and the envelope `message` is meant to be shown to the user as-is.
|
|
173
|
+
*/
|
|
174
|
+
export declare const SANCTIONS_ERROR_CODES: {
|
|
175
|
+
/** Sign-in with a listed wallet, or a withdrawal to a listed destination. */
|
|
176
|
+
readonly ADDRESS_RESTRICTED: "ADDRESS_RESTRICTED";
|
|
177
|
+
/** A live session whose wallet (or delegated agent) is listed; returned on every signed request and on WebSocket authentication/revalidation. */
|
|
178
|
+
readonly ACCOUNT_RESTRICTED: "ACCOUNT_RESTRICTED";
|
|
179
|
+
};
|
|
180
|
+
export type SanctionsErrorCode = (typeof SANCTIONS_ERROR_CODES)[keyof typeof SANCTIONS_ERROR_CODES];
|
package/dist/auth/index.js
CHANGED
|
@@ -20,3 +20,16 @@ export const INVITE_ERROR_CODES = {
|
|
|
20
20
|
/** The invite code was not accepted (wrong, already redeemed, revoked, or issued by a deactivated wallet; deliberately indistinguishable). */
|
|
21
21
|
INVITE_CODE_INVALID: "INVITE_CODE_INVALID",
|
|
22
22
|
};
|
|
23
|
+
/**
|
|
24
|
+
* Stable codes for a wallet on the OFAC sanctions list, read from
|
|
25
|
+
* `APIError.serverCode` (REST error envelope `code`, which here is also the
|
|
26
|
+
* envelope `error`; gRPC `google.rpc.ErrorInfo` reason in the
|
|
27
|
+
* `auth.0xmonaco.com` domain). Both are HTTP 403 / gRPC `PERMISSION_DENIED`,
|
|
28
|
+
* and the envelope `message` is meant to be shown to the user as-is.
|
|
29
|
+
*/
|
|
30
|
+
export const SANCTIONS_ERROR_CODES = {
|
|
31
|
+
/** Sign-in with a listed wallet, or a withdrawal to a listed destination. */
|
|
32
|
+
ADDRESS_RESTRICTED: "ADDRESS_RESTRICTED",
|
|
33
|
+
/** A live session whose wallet (or delegated agent) is listed; returned on every signed request and on WebSocket authentication/revalidation. */
|
|
34
|
+
ACCOUNT_RESTRICTED: "ACCOUNT_RESTRICTED",
|
|
35
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compliance Types
|
|
3
|
+
*
|
|
4
|
+
* Types for the public region status endpoint. Monaco refuses callers from a
|
|
5
|
+
* restricted jurisdiction on every other endpoint with HTTP 451 and the error
|
|
6
|
+
* code `REGION_RESTRICTED`; this endpoint answers from every region so a
|
|
7
|
+
* frontend can show a region notice instead.
|
|
8
|
+
*
|
|
9
|
+
* NOTE: This endpoint is **public (unauthenticated)**.
|
|
10
|
+
*/
|
|
11
|
+
import type { BaseAPI } from "../api";
|
|
12
|
+
/** The caller's region status. */
|
|
13
|
+
export interface GetRegionStatusResponse {
|
|
14
|
+
/** True when Monaco is not available in the caller's region. */
|
|
15
|
+
restricted: boolean;
|
|
16
|
+
/** ISO 3166-1 alpha-2 country code (`T1` Tor, `XX` unknown); empty when the request carried no location. */
|
|
17
|
+
country: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Compliance API interface. The endpoint is public (no auth required).
|
|
21
|
+
*/
|
|
22
|
+
export interface ComplianceAPI extends BaseAPI {
|
|
23
|
+
/**
|
|
24
|
+
* Get the caller's region status.
|
|
25
|
+
*
|
|
26
|
+
* Public/unauthenticated and always answers 200, including from restricted
|
|
27
|
+
* regions.
|
|
28
|
+
*
|
|
29
|
+
* @returns Promise resolving to the caller's region status
|
|
30
|
+
*/
|
|
31
|
+
getRegionStatus(): Promise<GetRegionStatusResponse>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compliance Types
|
|
3
|
+
*
|
|
4
|
+
* Types for the public region status endpoint. Monaco refuses callers from a
|
|
5
|
+
* restricted jurisdiction on every other endpoint with HTTP 451 and the error
|
|
6
|
+
* code `REGION_RESTRICTED`; this endpoint answers from every region so a
|
|
7
|
+
* frontend can show a region notice instead.
|
|
8
|
+
*
|
|
9
|
+
* NOTE: This endpoint is **public (unauthenticated)**.
|
|
10
|
+
*/
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/sdk/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type { Address, PublicClient, TransactionReceipt, WalletClient } from "vi
|
|
|
2
2
|
import type { ApplicationsAPI } from "../applications";
|
|
3
3
|
import type { AuthAPI, AuthState } from "../auth/index";
|
|
4
4
|
import type { BuildercodesAPI } from "../buildercodes";
|
|
5
|
+
import type { ComplianceAPI } from "../compliance";
|
|
5
6
|
import type { CopyTradingAPI } from "../copy-trading";
|
|
6
7
|
import type { DelegatedAgentsAPI } from "../delegated-agents";
|
|
7
8
|
import type { FaucetAPI } from "../faucet";
|
|
@@ -130,6 +131,8 @@ export interface MonacoSDK {
|
|
|
130
131
|
profile: ProfileAPI;
|
|
131
132
|
/** Public market-pulse news feed API (cached, hourly-refreshed) */
|
|
132
133
|
pulse: PulseAPI;
|
|
134
|
+
/** Public region status API: whether Monaco is available in the caller's region */
|
|
135
|
+
compliance: ComplianceAPI;
|
|
133
136
|
/** Orderbook REST API for fetching orderbook snapshots */
|
|
134
137
|
orderbook: {
|
|
135
138
|
getOrderbook: (tradingPairId: string, options?: {
|
package/dist/websocket/base.d.ts
CHANGED
|
@@ -106,6 +106,8 @@ export type WebSocketErrorCode =
|
|
|
106
106
|
| "AUTH_FAILED"
|
|
107
107
|
/** The account is deactivated; the connection closes and must not automatically reconnect. */
|
|
108
108
|
| "ACCOUNT_DEACTIVATED"
|
|
109
|
+
/** The session's wallet is on the OFAC sanctions list; the connection closes and must not automatically reconnect. */
|
|
110
|
+
| "ACCOUNT_RESTRICTED"
|
|
109
111
|
/** The per-user concurrent-connection cap was reached; this connection is closed after the frame. */
|
|
110
112
|
| "CONNECTION_LIMIT"
|
|
111
113
|
/** The per-connection subscription-cardinality cap was reached. */
|
|
@@ -170,9 +172,10 @@ export interface WebSocketReauthenticationInfo {
|
|
|
170
172
|
/**
|
|
171
173
|
* The `Error` frame code that ended the connection: `SESSION_INVALID` (the
|
|
172
174
|
* session was revoked or expired after the handshake) or `AUTH_FAILED` (the
|
|
173
|
-
* `Authenticate` handshake itself was rejected),
|
|
175
|
+
* `Authenticate` handshake itself was rejected), `ACCOUNT_DEACTIVATED`, or
|
|
176
|
+
* `ACCOUNT_RESTRICTED` (the wallet is on the OFAC sanctions list).
|
|
174
177
|
*/
|
|
175
|
-
code: "SESSION_INVALID" | "AUTH_FAILED" | "ACCOUNT_DEACTIVATED";
|
|
178
|
+
code: "SESSION_INVALID" | "AUTH_FAILED" | "ACCOUNT_DEACTIVATED" | "ACCOUNT_RESTRICTED";
|
|
176
179
|
/** Human-readable description from the `Error` frame; for logging and display, never for branching. */
|
|
177
180
|
message: string;
|
|
178
181
|
/** WebSocket close code of the connection that was lost (1008 for `SESSION_INVALID`). */
|
|
@@ -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_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", "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"];
|
|
14
14
|
/** Union of every OpenAPI operationId in the spec. */
|
|
15
15
|
export type OperationId = (typeof OPERATION_IDS)[number];
|
package/dist/wire/operations.js
CHANGED
package/dist/wire/schema.d.ts
CHANGED
|
@@ -968,6 +968,37 @@ export interface paths {
|
|
|
968
968
|
patch?: never;
|
|
969
969
|
trace?: never;
|
|
970
970
|
};
|
|
971
|
+
"/api/v1/compliance/region": {
|
|
972
|
+
parameters: {
|
|
973
|
+
query?: never;
|
|
974
|
+
header?: never;
|
|
975
|
+
path?: never;
|
|
976
|
+
cookie?: never;
|
|
977
|
+
};
|
|
978
|
+
/**
|
|
979
|
+
* Get the caller's region status
|
|
980
|
+
* @description Get the caller's region status.
|
|
981
|
+
*
|
|
982
|
+
* Reports whether Monaco is available in the caller's region, so a
|
|
983
|
+
* frontend can show a region notice instead of failing on the next call.
|
|
984
|
+
* Public endpoint — no authentication required — and always answers 200.
|
|
985
|
+
* Over REST it answers from restricted regions too: GET on this path is
|
|
986
|
+
* the one request the production edge lets through. Over gRPC the edge
|
|
987
|
+
* refuses a restricted caller with HTTP 451 before it reaches this RPC,
|
|
988
|
+
* so clients that need the notice should call the REST endpoint. Every
|
|
989
|
+
* other endpoint refuses callers from a restricted region with 451
|
|
990
|
+
* REGION_RESTRICTED (gRPC: PERMISSION_DENIED with a google.rpc.ErrorInfo
|
|
991
|
+
* reason REGION_RESTRICTED).
|
|
992
|
+
*/
|
|
993
|
+
get: operations["get_region_status"];
|
|
994
|
+
put?: never;
|
|
995
|
+
post?: never;
|
|
996
|
+
delete?: never;
|
|
997
|
+
options?: never;
|
|
998
|
+
head?: never;
|
|
999
|
+
patch?: never;
|
|
1000
|
+
trace?: never;
|
|
1001
|
+
};
|
|
971
1002
|
"/api/v1/copy-trading/follows": {
|
|
972
1003
|
parameters: {
|
|
973
1004
|
query?: never;
|
|
@@ -7235,6 +7266,18 @@ export interface components {
|
|
|
7235
7266
|
/** @description Pulse items, pre-sorted: watchlist order first, MARKET last, most-recent-first within each asset. Items with unverified figures are removed server-side. */
|
|
7236
7267
|
items?: components["schemas"]["PulseItem"][] | null;
|
|
7237
7268
|
};
|
|
7269
|
+
GetRegionStatusResponse: {
|
|
7270
|
+
/**
|
|
7271
|
+
* @description True when Monaco is not available in the caller's region; every other endpoint then answers 451 REGION_RESTRICTED
|
|
7272
|
+
* @example false
|
|
7273
|
+
*/
|
|
7274
|
+
restricted?: boolean | null;
|
|
7275
|
+
/**
|
|
7276
|
+
* @description The caller's ISO 3166-1 alpha-2 country code as the edge geolocated it (T1 for Tor, XX for unknown); empty when the request carried no location
|
|
7277
|
+
* @example JP
|
|
7278
|
+
*/
|
|
7279
|
+
country?: string | null;
|
|
7280
|
+
};
|
|
7238
7281
|
GetRewardsBalanceResponse: {
|
|
7239
7282
|
/** @description One entry per reward token that has a non-zero available balance. */
|
|
7240
7283
|
balances?: components["schemas"]["RewardsBalanceEntry"][] | null;
|
|
@@ -13651,7 +13694,7 @@ export interface operations {
|
|
|
13651
13694
|
};
|
|
13652
13695
|
content?: never;
|
|
13653
13696
|
};
|
|
13654
|
-
/** @description Origin not allowed for this application */
|
|
13697
|
+
/** @description Origin not allowed for this application; or the wallet is on the OFAC sanctions list, refused with code ADDRESS_RESTRICTED (REST error envelope error and code; gRPC google.rpc.ErrorInfo reason, domain auth.0xmonaco.com) and the message "This wallet can't be used on Monaco." */
|
|
13655
13698
|
403: {
|
|
13656
13699
|
headers: {
|
|
13657
13700
|
[name: string]: unknown;
|
|
@@ -13814,7 +13857,7 @@ export interface operations {
|
|
|
13814
13857
|
};
|
|
13815
13858
|
content?: never;
|
|
13816
13859
|
};
|
|
13817
|
-
/** @description Origin not allowed for this application; the account or wallet is deactivated; or Mainnet Invite Mode is on and the wallet has no access grant and supplied no valid invite code. Auth refusals carry a stable code (REST error envelope code; gRPC google.rpc.ErrorInfo reason, domain auth.0xmonaco.com): ACCOUNT_DEACTIVATED for a deactivated signing account, INVITE_CODE_REQUIRED when no code was supplied, and INVITE_CODE_INVALID for a wrong, already redeemed or revoked code, or an unused code whose issuer is deactivated. No account identity or administrative deactivation reason is disclosed. Unused invites become usable again after issuer reactivation */
|
|
13860
|
+
/** @description Origin not allowed for this application; the account or wallet is deactivated; or Mainnet Invite Mode is on and the wallet has no access grant and supplied no valid invite code. Auth refusals carry a stable code (REST error envelope code; gRPC google.rpc.ErrorInfo reason, domain auth.0xmonaco.com): ACCOUNT_DEACTIVATED for a deactivated signing account, INVITE_CODE_REQUIRED when no code was supplied, and INVITE_CODE_INVALID for a wrong, already redeemed or revoked code, or an unused code whose issuer is deactivated. A wallet on the OFAC sanctions list is refused with ADDRESS_RESTRICTED. No account identity or administrative deactivation reason is disclosed. Unused invites become usable again after issuer reactivation */
|
|
13818
13861
|
403: {
|
|
13819
13862
|
headers: {
|
|
13820
13863
|
[name: string]: unknown;
|
|
@@ -14290,6 +14333,26 @@ export interface operations {
|
|
|
14290
14333
|
};
|
|
14291
14334
|
};
|
|
14292
14335
|
};
|
|
14336
|
+
get_region_status: {
|
|
14337
|
+
parameters: {
|
|
14338
|
+
query?: never;
|
|
14339
|
+
header?: never;
|
|
14340
|
+
path?: never;
|
|
14341
|
+
cookie?: never;
|
|
14342
|
+
};
|
|
14343
|
+
requestBody?: never;
|
|
14344
|
+
responses: {
|
|
14345
|
+
/** @description OK */
|
|
14346
|
+
200: {
|
|
14347
|
+
headers: {
|
|
14348
|
+
[name: string]: unknown;
|
|
14349
|
+
};
|
|
14350
|
+
content: {
|
|
14351
|
+
"application/json": components["schemas"]["GetRegionStatusResponse"];
|
|
14352
|
+
};
|
|
14353
|
+
};
|
|
14354
|
+
};
|
|
14355
|
+
};
|
|
14293
14356
|
list_my_follows: {
|
|
14294
14357
|
parameters: {
|
|
14295
14358
|
query?: {
|
|
@@ -19909,7 +19972,7 @@ export interface operations {
|
|
|
19909
19972
|
};
|
|
19910
19973
|
content?: never;
|
|
19911
19974
|
};
|
|
19912
|
-
/** @description Caller lacks the withdraw permission */
|
|
19975
|
+
/** @description Caller lacks the withdraw permission; or the destination is on the OFAC sanctions list, refused with code ADDRESS_RESTRICTED (REST error envelope error and code; gRPC google.rpc.ErrorInfo reason, domain auth.0xmonaco.com) and the message "Withdrawals to this address aren't supported." */
|
|
19913
19976
|
403: {
|
|
19914
19977
|
headers: {
|
|
19915
19978
|
[name: string]: unknown;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xmonaco/types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.92",
|
|
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.
|
|
19
|
+
"@0xmonaco/contracts": "1.0.92",
|
|
20
20
|
"zod": "^4.1.12"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|