@polyester/sdk 0.36.0-devnet-20261116150503 → 0.36.0-devnet-20261116180931
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 +3 -1
- package/dist/realtime/client.js +1 -1
- package/dist/realtime/client.js.map +1 -1
- package/dist/services/address-book/address-book.schemas.d.ts +2 -2
- package/dist/services/assistant/assistant-events.schemas.d.ts +32 -32
- package/dist/services/assistant/assistant.schemas.d.ts +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +19 -19
- package/dist/services/candles/candles.schemas.d.ts +10 -10
- package/dist/services/changelog/changelog.schemas.d.ts +38 -38
- package/dist/services/checkpoints/checkpoints.schemas.d.ts +1 -1
- package/dist/services/dust-conversion/dust-conversion.schemas.d.ts +8 -8
- package/dist/services/heatmap/heatmap.schemas.d.ts +4 -4
- package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +11 -11
- package/dist/services/lifecycle/lifecycle.schemas.d.ts +68 -68
- package/dist/services/orderbook/orderbook.d.ts +1 -1
- package/dist/services/orderbook/orderbook.js +7 -7
- package/dist/services/orderbook/orderbook.js.map +1 -1
- package/dist/services/orders/order-errors.schemas.d.ts +3 -3
- package/dist/services/orders/orders-batch.schemas.d.ts +79 -79
- package/dist/services/orders/orders-input.schemas.d.ts +9 -9
- package/dist/services/orders/orders-output.schemas.d.ts +14 -14
- package/dist/services/price-alerts/price-alerts.schemas.d.ts +10 -10
- package/dist/services/statement-exports/statement-exports.schemas.d.ts +6 -6
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +15 -15
- package/dist/services/system/system.schemas.d.ts +13 -13
- package/dist/services/trades/trades.schemas.d.ts +1 -1
- package/dist/services/triggers/trigger-input.schemas.d.ts +1 -1
- package/dist/services/triggers/triggers-output.schemas.d.ts +45 -45
- package/dist/shared/rate-limit.schemas.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1079,7 +1079,7 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
|
|
|
1079
1079
|
quantity: string;
|
|
1080
1080
|
action: "unspecified" | "pause" | "modify" | "resume";
|
|
1081
1081
|
before: {
|
|
1082
|
-
status: "unspecified" | "
|
|
1082
|
+
status: "unspecified" | "completed" | "canceled" | "armed" | "failed" | "paused" | "created" | "running";
|
|
1083
1083
|
triggerPrice: string | undefined;
|
|
1084
1084
|
trailingDistance: {
|
|
1085
1085
|
kind: "distance";
|
|
@@ -1103,7 +1103,7 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
|
|
|
1103
1103
|
limitPrice: string | undefined;
|
|
1104
1104
|
} | undefined;
|
|
1105
1105
|
after: {
|
|
1106
|
-
status: "unspecified" | "
|
|
1106
|
+
status: "unspecified" | "completed" | "canceled" | "armed" | "failed" | "paused" | "created" | "running";
|
|
1107
1107
|
triggerPrice: string | undefined;
|
|
1108
1108
|
trailingDistance: {
|
|
1109
1109
|
kind: "distance";
|
|
@@ -1311,7 +1311,7 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1311
1311
|
attachedRisk: {
|
|
1312
1312
|
takeProfit: {
|
|
1313
1313
|
state: {
|
|
1314
|
-
status: "unspecified" | "
|
|
1314
|
+
status: "unspecified" | "completed" | "canceled" | "armed" | "failed" | "paused" | "created" | "running" | "not_configured";
|
|
1315
1315
|
armedTs: number | undefined;
|
|
1316
1316
|
armedTsNs: string | undefined;
|
|
1317
1317
|
terminalTs: number | undefined;
|
|
@@ -1331,7 +1331,7 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1331
1331
|
} | undefined;
|
|
1332
1332
|
stopLoss: {
|
|
1333
1333
|
state: {
|
|
1334
|
-
status: "unspecified" | "
|
|
1334
|
+
status: "unspecified" | "completed" | "canceled" | "armed" | "failed" | "paused" | "created" | "running" | "not_configured";
|
|
1335
1335
|
armedTs: number | undefined;
|
|
1336
1336
|
armedTsNs: string | undefined;
|
|
1337
1337
|
terminalTs: number | undefined;
|
|
@@ -1351,7 +1351,7 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1351
1351
|
} | undefined;
|
|
1352
1352
|
trailingStop: {
|
|
1353
1353
|
state: {
|
|
1354
|
-
status: "unspecified" | "
|
|
1354
|
+
status: "unspecified" | "completed" | "canceled" | "armed" | "failed" | "paused" | "created" | "running" | "not_configured";
|
|
1355
1355
|
armedTs: number | undefined;
|
|
1356
1356
|
armedTsNs: string | undefined;
|
|
1357
1357
|
terminalTs: number | undefined;
|
|
@@ -1382,7 +1382,7 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1382
1382
|
oco: boolean;
|
|
1383
1383
|
} | undefined;
|
|
1384
1384
|
cancelReason?: "unspecified" | "system" | "user_request" | "ioc_remainder" | "market_remainder" | "stp_expire_maker" | "stp_expire_taker" | "stp_expire_both" | "replaced" | "gtd_expired" | "qty_at_or_below_filled" | "pair_drain" | "attached_risk_refused" | "cancel_all_after" | "account_repair" | "twap_rollover" | "strategy_cancel" | "market_halted" | "attached_exit_fired" | "stp_decrement" | "price_band" | "cancel_on_disconnect" | undefined;
|
|
1385
|
-
rejectReason?: "STALE_QUOTE" | "UNSPECIFIED" | "
|
|
1385
|
+
rejectReason?: "STALE_QUOTE" | "UNSPECIFIED" | "UNAUTHENTICATED" | "RATE_LIMIT_EXCEEDED" | "INTERNAL_ERROR" | "PERMISSION_DENIED" | "SUBACCOUNT_INACTIVE" | "INSUFFICIENT_FUNDS" | "NOT_FOUND" | "BAD_REQUEST" | "INVALID_ARGUMENT" | "UNKNOWN_SYMBOL" | "BAD_PRICE" | "BAD_QTY" | "MIN_NOTIONAL" | "QTY_STEP_SIZE" | "CONFLICT_DUPLICATE_CLIENT_ORDER_ID" | "UNAVAILABLE" | "UPSTREAM_ERROR" | "FEE_ASSET_NOT_ALLOWED" | "PAIR_DISABLED" | "ORDER_UNKNOWN" | "POLICY_MARKET_DENY" | "POLICY_MAX_NOTIONAL" | "POLICY_TRADING_HALTED" | "POLICY_SPOT_TRADE_DENY" | "API_KEY_ROOT_SCOPE_ONLY" | "API_KEY_SUB_SCOPE_ONLY" | "API_KEY_SUBACCOUNT_MISMATCH" | "API_KEY_POLICY_REQUIRED" | "API_KEY_UNKNOWN" | "API_KEY_MARKET_DENY" | "API_KEY_SPOT_TRADE_DENY" | "PRICE_TICK_SIZE" | "MIN_QTY" | "POST_ONLY_LIMIT_ONLY" | "BATCH_TOO_LARGE" | "POLICY_MAX_OPEN_ORDERS" | "MODIFICATION_REQUIRES_REPLACE" | "CONFLICT_IDEMPOTENCY_KEY_REUSE" | "MARKET_PRICE_UNAVAILABLE" | "PAIR_NOT_LISTED_YET" | "PAIR_DELISTED" | "PAIR_CANCEL_ONLY" | "PAIR_POST_ONLY" | "PAIR_REDUCE_ONLY" | "RISK_LIMIT" | "MARKET_HALTED" | "ACCOUNT_UNKNOWN" | "POST_ONLY_CROSS" | "REDUCE_ONLY_BLOCKED" | "PRICE_BAND_VIOLATION" | "MARKET_CAP_VIOLATION" | "EMPTY_BOOK" | "FOK_INSUFFICIENT_LIQUIDITY" | "ORDER_ALREADY_TERMINAL" | "TRIGGER_PRICE_INVALID" | "TRIGGER_PRICE_SOURCE_UNSUPPORTED" | "TRAILING_DISTANCE_INVALID" | "TRIGGER_NOT_FOUND" | "TRIGGER_STATUS_INVALID" | "TRIGGER_NOT_MODIFIABLE" | "CONFLICT_DUPLICATE_CLIENT_TRIGGER_ID" | "MAX_SLIPPAGE_INVALID" | "VALIDATION_ERROR" | "OVERLOADED" | "QUOTE_SIZE_TOO_SMALL" | "SUBACCOUNT_READ_FORBIDDEN" | "POLICY_SPOT_READ_DENY" | "API_KEY_SPOT_READ_DENY" | "CANCEL_REQUEST_EXPIRED" | "MAX_QTY" | "MAX_NOTIONAL" | "QTY_AT_OR_BELOW_FILLED" | "GATEWAY_MISCONFIGURED" | "INVALID_ORDER_ID" | "CHILD_QTY_RAISE_NOT_ALLOWED" | "ATTACHED_RISK_NOT_SUPPORTED" | "SETTLEMENT_BACKLOGGED" | "PRICE_LEVEL_QUANTITY_LIMIT" | "MARKET_QUOTE_STALE" | "MARKET_QUOTE_UNHEALTHY" | "INVALID_TIME_IN_FORCE" | "QUICKSWAP_NOT_PERMITTED" | "DUPLICATE_ORDER_ID" | "MAX_OPEN_ORDERS_TOTAL" | "STP_MODE_NOT_ALLOWED" | "PAIR_BACKLOGGED" | "PRICE_LEVELS_EXHAUSTED" | "CLIENT_ORDER_IDS_EXHAUSTED" | "ORDER_ID_CONFLICT" | "INVALID_SIDE" | "INVALID_ORDER_TYPE" | "INVALID_STP_MODE" | "INVALID_ORDER_FLAGS" | "BATCH_OTHER_ITEM_INVALID" | "REPLACE_ONTO_OWN_ID" | "INVALID_CLIENT_ORDER_ID" | "ORDER_SEQUENCE_EXHAUSTED" | "INVALID_HANDLING_MODE" | "FEE_SCHEDULE_UNAVAILABLE" | "POLICY_UNAVAILABLE" | "CANCEL_ALL_AFTER_TIMEOUT_INVALID" | "CANCEL_SCOPE_TOO_LARGE" | "RATE_LIMIT_POLICY_UNAVAILABLE" | "SYSTEM_RATE_LIMITED" | "ORDER_MODIFY_IN_PROGRESS" | "ORDER_PLACEMENT_PENDING" | "INVALID_MODIFY_BEHAVIOR" | "BATCH_REPLACE_ONLY_REQUIRED" | "BATCH_SINGLE_SYMBOL_REQUIRED" | "REQUEST_RECEIPTS_EXHAUSTED" | "INTENT_ID_INVALID" | "DRY_RUN_INVALID" | "CANCEL_ALL_AFTER_SCOPE_CONFLICT" | "NEW_ACCOUNT_CAPACITY_REACHED" | "TRIGGER_CHILD_PRICE_NOT_MODIFIABLE" | "TRIGGER_GENERATIONS_EXHAUSTED" | "TRIGGER_CONTROL_SHARE_EXHAUSTED" | "TRIGGER_CONTROLS_BUSY" | "TRIGGER_TYPE_NOT_SUPPORTED" | "INVALID_TRIGGER_TYPE" | "TRIGGER_DIRECTION_INVALID" | "TRIGGER_QTY_INVALID" | "TRIGGER_BUY_REQUIRES_LIMIT" | "ACCOUNT_ROUTING_INVALID" | "TRIGGER_LIMIT_EXCEEDED" | "TRIGGER_CONTROL_IN_PROGRESS" | "TRIGGER_PATCH_EMPTY" | "CLIENT_TRIGGER_ID_INVALID" | "TRIGGER_ACTIVATION_PRICE_INVALID" | "SLIPPAGE_TICKS_INVALID" | "SLIPPAGE_BPS_INVALID" | "TRIGGER_CONTROL_OUTCOME_UNKNOWN" | "TRIGGER_CAPACITY_REACHED" | "RESERVATION_CAPACITY_REACHED" | "CLIENT_ORDER_ID_CAPACITY_REACHED" | "ACCOUNT_RESERVATION_LIMIT_REACHED" | "INVALID_TRIGGER_CONTROL" | "TRIGGER_PATCH_NOT_ALLOWED" | "TRIGGER_PATCH_FIELD_UNKNOWN" | "TRIGGER_PATCH_VALUE_UNMASKED" | "TRIGGER_PATCH_PRICE_MODE_INVALID" | "ACCOUNT_ORDERS_SUSPENDED" | "TRAILING_SIDE_NOT_SUPPORTED" | "TRAILING_CHILD_NOT_MARKET" | "TWAP_DURATION_INVALID" | "LIMIT_CHILD_SLIPPAGE_SET" | "SLIPPAGE_BOUNDS_CONFLICT" | "TWAP_INTERVAL_INVALID" | "LADDER_LEVEL_REJECTED" | "LADDER_RANGE_TOO_NARROW" | "LADDER_LEVELS_INVALID" | "ORDER_LIMITS_UNAVAILABLE" | "ORDER_TYPE_NOT_ALLOWED_IN_AUCTION" | "POST_ONLY_NOT_ALLOWED_IN_AUCTION" | "QUICKSWAP_FEE_DETAILS_INCOMPLETE" | "QUICKSWAP_MARKET_NOT_PRICED" | "QUICKSWAP_BROKER_FEE_TERMS_MISMATCH" | "QUICKSWAP_FEE_RECIPIENT_IS_PAYER" | "QUICKSWAP_BROKER_FEE_TERMS_UNAVAILABLE" | "QUICKSWAP_BROKER_ACCOUNT_UNAVAILABLE" | "QUICKSWAP_ACCOUNT_OWNER_UNKNOWN" | "QUICKSWAP_DISABLED" | "QUICKSWAP_ATTACHED_RISK_NOT_ALLOWED" | "QUICKSWAP_ORDER_NOT_MODIFIABLE" | "QUICKSWAP_FEE_TOTAL_TOO_HIGH" | "QUICKSWAP_BROKER_FEE_TERMS_INVALID" | "QUICKSWAP_BROKER_INVALID" | "QUICKSWAP_FEE_SCHEDULE_INVALID" | "QUICKSWAP_MARKET_FEE_INVALID" | "QUICKSWAP_SETUP_INVALID" | "QUICKSWAP_CAPACITY_REACHED" | "ATTACHED_EXIT_WORKING" | "MARKET_TRIGGER_LIMIT_EXCEEDED" | "MARKET_TWAP_LIMIT_EXCEEDED" | "MARKET_LADDER_LIMIT_EXCEEDED" | "CHILD_QTY_EXCEEDS_REMAINING" | "ORDER_CANCEL_OUTCOME_UNKNOWN" | "ORDER_MODIFY_OUTCOME_UNKNOWN" | "ORDER_REPAIRING" | "ACCOUNT_REPAIRING" | "TRIGGER_WOULD_TRIGGER_IMMEDIATELY" | "ORDER_CREATE_OUTCOME_UNKNOWN" | "TRIGGER_CREATE_OUTCOME_UNKNOWN" | "TRIGGER_SYMBOL_MISMATCH" | "MAX_OPEN_ORDERS_PER_PAIR" | "SELF_TRADE_PREVENTED" | "ATTACHED_LEGS_EXCEEDED" | "FEE_ASSET_INVALID" | "FEE_CEILING_INVALID" | "UNSUPPORTED_FIELD_SET" | "TRIGGER_FIRE_LIMIT_REACHED" | "CONDITION_FLAGS_INVALID" | "CONDITION_PARAMETER_SET" | "TWAP_CAPACITY_REACHED" | "CHILD_ORDER_INCONSISTENT" | "PATH_BODY_ID_MISMATCH" | "REQUEST_DEADLINE_EXCEEDED" | "ICEBERG_NOT_ALLOWED" | "ICEBERG_DISPLAY_TOO_SMALL" | "ICEBERG_DISPLAY_INVALID" | "PEG_LIMIT_VIOLATION" | "PEG_REFERENCE_UNAVAILABLE" | "INVALID_PEG" | "TRIGGER_ACTIVATION_PRICE_NOT_MODIFIABLE" | undefined;
|
|
1386
1386
|
price: string;
|
|
1387
1387
|
createdTs: number;
|
|
1388
1388
|
terminalTs: number;
|
|
@@ -1397,7 +1397,7 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1397
1397
|
hiddenQty?: string | undefined;
|
|
1398
1398
|
symbolId: number;
|
|
1399
1399
|
clientOrderId: string;
|
|
1400
|
-
status: "unspecified" | "canceled" | "
|
|
1400
|
+
status: "unspecified" | "canceled" | "pending" | "rejected" | "pending_cancel" | "working" | "filled" | "partial";
|
|
1401
1401
|
side: "unspecified" | "buy" | "sell";
|
|
1402
1402
|
orderType: "unspecified" | "limit" | "market";
|
|
1403
1403
|
timeInForce: "unspecified" | "gtc" | "ioc" | "fok" | "gtd";
|
|
@@ -1436,12 +1436,12 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1436
1436
|
triggers: ({
|
|
1437
1437
|
runtimeDetails: TriggerDetailsOutput;
|
|
1438
1438
|
version: number;
|
|
1439
|
-
cancelReason: "unspecified" | "
|
|
1439
|
+
cancelReason: "unspecified" | "oco" | "user_request" | "account_repair" | "market_halted" | "parent_canceled_no_fill" | "self_trade_prevention" | "pair_drain_trigger" | "pair_drain_twap" | "pair_drain_ladder" | "pair_drain_attached_leg" | "missing_reason_code" | "internal_error";
|
|
1440
1440
|
failureReason: undefined;
|
|
1441
1441
|
triggerId: string;
|
|
1442
1442
|
subaccountId: string;
|
|
1443
1443
|
symbolId: number;
|
|
1444
|
-
status: "unspecified" | "
|
|
1444
|
+
status: "unspecified" | "completed" | "canceled" | "armed" | "failed" | "paused" | "created" | "running";
|
|
1445
1445
|
parentOrderId: string | undefined;
|
|
1446
1446
|
orderListId: string | undefined;
|
|
1447
1447
|
qty: string;
|
|
@@ -1623,11 +1623,11 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1623
1623
|
runtimeDetails: TriggerDetailsOutput;
|
|
1624
1624
|
version: number;
|
|
1625
1625
|
cancelReason: undefined;
|
|
1626
|
-
failureReason: "unspecified" | "
|
|
1626
|
+
failureReason: "unspecified" | "market_halted" | "missing_reason_code" | "internal_error" | "unknown_symbol" | "pair_disabled" | "min_notional" | "tick_size" | "insufficient_funds" | "risk_limit" | "duplicate_client_id" | "engine_busy" | "account_unknown" | "order_unknown" | "post_only_cross" | "reduce_only_blocked" | "price_band_violation" | "market_cap_violation" | "empty_book" | "fok_insufficient_liquidity" | "fee_asset_not_allowed" | "market_price_unavailable" | "stale_quote" | "min_quantity" | "step_size" | "invalid_sizing" | "quote_size_too_small" | "fee_ceiling_exceeded" | "trigger_price_invalid" | "trigger_price_source_unsupported" | "trailing_distance_invalid" | "modification_requires_replace" | "order_already_terminal" | "conflict_idempotency_key_reuse" | "rate_limited" | "policy_spot_trade_deny" | "policy_market_deny" | "policy_max_notional" | "policy_max_open_orders" | "policy_trading_halted" | "max_slippage_invalid" | "invalid_time_in_force" | "duplicate_order_id" | "max_quantity" | "max_notional" | "pair_post_only" | "max_open_orders_total" | "stp_mode_not_allowed" | "pair_backlogged" | "mode_not_supported" | "market_quote_stale" | "market_quote_unhealthy" | "qty_invalid" | "limit_price_invalid" | "twap_interval_invalid" | "ladder_range_too_narrow" | "ladder_levels_invalid" | "attached_legs_exceeded" | "price_levels_exhausted" | "settlement_backlogged" | "client_order_ids_exhausted" | "invalid_order_id" | "order_id_conflict" | "invalid_side" | "invalid_order_type" | "invalid_stp_mode" | "invalid_order_flags" | "price_level_quantity_limit" | "child_qty_raise_not_allowed" | "triggers_exhausted" | "order_sequence_exhausted" | "fee_schedule_unavailable" | "policy_unavailable" | "account_routing_invalid" | "client_trigger_id_invalid" | "trigger_direction_invalid" | "fee_asset_invalid" | "fee_ceiling_invalid" | "unsupported_field_set" | "trigger_fire_limit_reached" | "condition_flags_invalid" | "condition_parameter_set" | "slippage_ticks_invalid" | "slippage_bps_invalid" | "slippage_bounds_conflict" | "limit_child_slippage_set" | "new_account_capacity_reached" | "order_type_not_allowed_in_auction" | "post_only_not_allowed_in_auction" | "twap_capacity_reached" | "order_limits_unavailable" | "child_order_inconsistent" | "index_price_unavailable" | "trigger_would_trigger_immediately" | "max_open_orders_per_pair" | "account_repairing" | "self_trade_prevented";
|
|
1627
1627
|
triggerId: string;
|
|
1628
1628
|
subaccountId: string;
|
|
1629
1629
|
symbolId: number;
|
|
1630
|
-
status: "unspecified" | "
|
|
1630
|
+
status: "unspecified" | "completed" | "canceled" | "armed" | "failed" | "paused" | "created" | "running";
|
|
1631
1631
|
parentOrderId: string | undefined;
|
|
1632
1632
|
orderListId: string | undefined;
|
|
1633
1633
|
qty: string;
|
|
@@ -1813,7 +1813,7 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1813
1813
|
triggerId: string;
|
|
1814
1814
|
subaccountId: string;
|
|
1815
1815
|
symbolId: number;
|
|
1816
|
-
status: "unspecified" | "
|
|
1816
|
+
status: "unspecified" | "completed" | "canceled" | "armed" | "failed" | "paused" | "created" | "running";
|
|
1817
1817
|
parentOrderId: string | undefined;
|
|
1818
1818
|
orderListId: string | undefined;
|
|
1819
1819
|
qty: string;
|
|
@@ -2037,10 +2037,10 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
2037
2037
|
} | {
|
|
2038
2038
|
type: "price_chart";
|
|
2039
2039
|
symbolId: number;
|
|
2040
|
-
timeframe: "unspecified" | "
|
|
2040
|
+
timeframe: "unspecified" | "1s" | "1m" | "3m" | "5m" | "15m" | "30m" | "1h" | "2h" | "4h" | "6h" | "8h" | "12h" | "1d" | "3d" | "1w" | "1mo";
|
|
2041
2041
|
candles: {
|
|
2042
2042
|
symbolId: number;
|
|
2043
|
-
timeframe: DecodedEnum<"
|
|
2043
|
+
timeframe: DecodedEnum<"1s" | "1m" | "3m" | "5m" | "15m" | "30m" | "1h" | "2h" | "4h" | "6h" | "8h" | "12h" | "1d" | "3d" | "1w" | "1mo">;
|
|
2044
2044
|
time: number;
|
|
2045
2045
|
open: string;
|
|
2046
2046
|
high: string;
|
|
@@ -2093,7 +2093,7 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
2093
2093
|
price: string;
|
|
2094
2094
|
referencePrice: string;
|
|
2095
2095
|
armed: boolean;
|
|
2096
|
-
status: "unspecified" | "active" | "
|
|
2096
|
+
status: "unspecified" | "active" | "canceled" | "triggered";
|
|
2097
2097
|
channels: ("unspecified" | "in_app" | "telegram")[];
|
|
2098
2098
|
revision: string;
|
|
2099
2099
|
createdAt: number | null;
|
|
@@ -2389,7 +2389,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
2389
2389
|
memories: {
|
|
2390
2390
|
memoryId: string;
|
|
2391
2391
|
text: string;
|
|
2392
|
-
kind: "unspecified" | "
|
|
2392
|
+
kind: "unspecified" | "fact" | "planning_figure" | "profile";
|
|
2393
2393
|
}[];
|
|
2394
2394
|
text?: undefined;
|
|
2395
2395
|
fromSeq?: undefined;
|
|
@@ -3355,7 +3355,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3355
3355
|
quantity: string;
|
|
3356
3356
|
action: "unspecified" | "pause" | "modify" | "resume";
|
|
3357
3357
|
before: {
|
|
3358
|
-
status: "unspecified" | "
|
|
3358
|
+
status: "unspecified" | "completed" | "canceled" | "armed" | "failed" | "paused" | "created" | "running";
|
|
3359
3359
|
triggerPrice: string | undefined;
|
|
3360
3360
|
trailingDistance: {
|
|
3361
3361
|
kind: "distance";
|
|
@@ -3379,7 +3379,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3379
3379
|
limitPrice: string | undefined;
|
|
3380
3380
|
} | undefined;
|
|
3381
3381
|
after: {
|
|
3382
|
-
status: "unspecified" | "
|
|
3382
|
+
status: "unspecified" | "completed" | "canceled" | "armed" | "failed" | "paused" | "created" | "running";
|
|
3383
3383
|
triggerPrice: string | undefined;
|
|
3384
3384
|
trailingDistance: {
|
|
3385
3385
|
kind: "distance";
|
|
@@ -3589,7 +3589,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3589
3589
|
} | {
|
|
3590
3590
|
type: "approval_resolved";
|
|
3591
3591
|
approvalId: string;
|
|
3592
|
-
status: "unspecified" | "
|
|
3592
|
+
status: "unspecified" | "pending" | "expired" | "rejected" | "approved";
|
|
3593
3593
|
text?: undefined;
|
|
3594
3594
|
fromSeq?: undefined;
|
|
3595
3595
|
toolCallId?: undefined;
|
|
@@ -3638,7 +3638,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3638
3638
|
attachedRisk: {
|
|
3639
3639
|
takeProfit: {
|
|
3640
3640
|
state: {
|
|
3641
|
-
status: "unspecified" | "
|
|
3641
|
+
status: "unspecified" | "completed" | "canceled" | "armed" | "failed" | "paused" | "created" | "running" | "not_configured";
|
|
3642
3642
|
armedTs: number | undefined;
|
|
3643
3643
|
armedTsNs: string | undefined;
|
|
3644
3644
|
terminalTs: number | undefined;
|
|
@@ -3658,7 +3658,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3658
3658
|
} | undefined;
|
|
3659
3659
|
stopLoss: {
|
|
3660
3660
|
state: {
|
|
3661
|
-
status: "unspecified" | "
|
|
3661
|
+
status: "unspecified" | "completed" | "canceled" | "armed" | "failed" | "paused" | "created" | "running" | "not_configured";
|
|
3662
3662
|
armedTs: number | undefined;
|
|
3663
3663
|
armedTsNs: string | undefined;
|
|
3664
3664
|
terminalTs: number | undefined;
|
|
@@ -3678,7 +3678,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3678
3678
|
} | undefined;
|
|
3679
3679
|
trailingStop: {
|
|
3680
3680
|
state: {
|
|
3681
|
-
status: "unspecified" | "
|
|
3681
|
+
status: "unspecified" | "completed" | "canceled" | "armed" | "failed" | "paused" | "created" | "running" | "not_configured";
|
|
3682
3682
|
armedTs: number | undefined;
|
|
3683
3683
|
armedTsNs: string | undefined;
|
|
3684
3684
|
terminalTs: number | undefined;
|
|
@@ -3709,7 +3709,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3709
3709
|
oco: boolean;
|
|
3710
3710
|
} | undefined;
|
|
3711
3711
|
cancelReason?: "unspecified" | "system" | "user_request" | "ioc_remainder" | "market_remainder" | "stp_expire_maker" | "stp_expire_taker" | "stp_expire_both" | "replaced" | "gtd_expired" | "qty_at_or_below_filled" | "pair_drain" | "attached_risk_refused" | "cancel_all_after" | "account_repair" | "twap_rollover" | "strategy_cancel" | "market_halted" | "attached_exit_fired" | "stp_decrement" | "price_band" | "cancel_on_disconnect" | undefined;
|
|
3712
|
-
rejectReason?: "STALE_QUOTE" | "UNSPECIFIED" | "
|
|
3712
|
+
rejectReason?: "STALE_QUOTE" | "UNSPECIFIED" | "UNAUTHENTICATED" | "RATE_LIMIT_EXCEEDED" | "INTERNAL_ERROR" | "PERMISSION_DENIED" | "SUBACCOUNT_INACTIVE" | "INSUFFICIENT_FUNDS" | "NOT_FOUND" | "BAD_REQUEST" | "INVALID_ARGUMENT" | "UNKNOWN_SYMBOL" | "BAD_PRICE" | "BAD_QTY" | "MIN_NOTIONAL" | "QTY_STEP_SIZE" | "CONFLICT_DUPLICATE_CLIENT_ORDER_ID" | "UNAVAILABLE" | "UPSTREAM_ERROR" | "FEE_ASSET_NOT_ALLOWED" | "PAIR_DISABLED" | "ORDER_UNKNOWN" | "POLICY_MARKET_DENY" | "POLICY_MAX_NOTIONAL" | "POLICY_TRADING_HALTED" | "POLICY_SPOT_TRADE_DENY" | "API_KEY_ROOT_SCOPE_ONLY" | "API_KEY_SUB_SCOPE_ONLY" | "API_KEY_SUBACCOUNT_MISMATCH" | "API_KEY_POLICY_REQUIRED" | "API_KEY_UNKNOWN" | "API_KEY_MARKET_DENY" | "API_KEY_SPOT_TRADE_DENY" | "PRICE_TICK_SIZE" | "MIN_QTY" | "POST_ONLY_LIMIT_ONLY" | "BATCH_TOO_LARGE" | "POLICY_MAX_OPEN_ORDERS" | "MODIFICATION_REQUIRES_REPLACE" | "CONFLICT_IDEMPOTENCY_KEY_REUSE" | "MARKET_PRICE_UNAVAILABLE" | "PAIR_NOT_LISTED_YET" | "PAIR_DELISTED" | "PAIR_CANCEL_ONLY" | "PAIR_POST_ONLY" | "PAIR_REDUCE_ONLY" | "RISK_LIMIT" | "MARKET_HALTED" | "ACCOUNT_UNKNOWN" | "POST_ONLY_CROSS" | "REDUCE_ONLY_BLOCKED" | "PRICE_BAND_VIOLATION" | "MARKET_CAP_VIOLATION" | "EMPTY_BOOK" | "FOK_INSUFFICIENT_LIQUIDITY" | "ORDER_ALREADY_TERMINAL" | "TRIGGER_PRICE_INVALID" | "TRIGGER_PRICE_SOURCE_UNSUPPORTED" | "TRAILING_DISTANCE_INVALID" | "TRIGGER_NOT_FOUND" | "TRIGGER_STATUS_INVALID" | "TRIGGER_NOT_MODIFIABLE" | "CONFLICT_DUPLICATE_CLIENT_TRIGGER_ID" | "MAX_SLIPPAGE_INVALID" | "VALIDATION_ERROR" | "OVERLOADED" | "QUOTE_SIZE_TOO_SMALL" | "SUBACCOUNT_READ_FORBIDDEN" | "POLICY_SPOT_READ_DENY" | "API_KEY_SPOT_READ_DENY" | "CANCEL_REQUEST_EXPIRED" | "MAX_QTY" | "MAX_NOTIONAL" | "QTY_AT_OR_BELOW_FILLED" | "GATEWAY_MISCONFIGURED" | "INVALID_ORDER_ID" | "CHILD_QTY_RAISE_NOT_ALLOWED" | "ATTACHED_RISK_NOT_SUPPORTED" | "SETTLEMENT_BACKLOGGED" | "PRICE_LEVEL_QUANTITY_LIMIT" | "MARKET_QUOTE_STALE" | "MARKET_QUOTE_UNHEALTHY" | "INVALID_TIME_IN_FORCE" | "QUICKSWAP_NOT_PERMITTED" | "DUPLICATE_ORDER_ID" | "MAX_OPEN_ORDERS_TOTAL" | "STP_MODE_NOT_ALLOWED" | "PAIR_BACKLOGGED" | "PRICE_LEVELS_EXHAUSTED" | "CLIENT_ORDER_IDS_EXHAUSTED" | "ORDER_ID_CONFLICT" | "INVALID_SIDE" | "INVALID_ORDER_TYPE" | "INVALID_STP_MODE" | "INVALID_ORDER_FLAGS" | "BATCH_OTHER_ITEM_INVALID" | "REPLACE_ONTO_OWN_ID" | "INVALID_CLIENT_ORDER_ID" | "ORDER_SEQUENCE_EXHAUSTED" | "INVALID_HANDLING_MODE" | "FEE_SCHEDULE_UNAVAILABLE" | "POLICY_UNAVAILABLE" | "CANCEL_ALL_AFTER_TIMEOUT_INVALID" | "CANCEL_SCOPE_TOO_LARGE" | "RATE_LIMIT_POLICY_UNAVAILABLE" | "SYSTEM_RATE_LIMITED" | "ORDER_MODIFY_IN_PROGRESS" | "ORDER_PLACEMENT_PENDING" | "INVALID_MODIFY_BEHAVIOR" | "BATCH_REPLACE_ONLY_REQUIRED" | "BATCH_SINGLE_SYMBOL_REQUIRED" | "REQUEST_RECEIPTS_EXHAUSTED" | "INTENT_ID_INVALID" | "DRY_RUN_INVALID" | "CANCEL_ALL_AFTER_SCOPE_CONFLICT" | "NEW_ACCOUNT_CAPACITY_REACHED" | "TRIGGER_CHILD_PRICE_NOT_MODIFIABLE" | "TRIGGER_GENERATIONS_EXHAUSTED" | "TRIGGER_CONTROL_SHARE_EXHAUSTED" | "TRIGGER_CONTROLS_BUSY" | "TRIGGER_TYPE_NOT_SUPPORTED" | "INVALID_TRIGGER_TYPE" | "TRIGGER_DIRECTION_INVALID" | "TRIGGER_QTY_INVALID" | "TRIGGER_BUY_REQUIRES_LIMIT" | "ACCOUNT_ROUTING_INVALID" | "TRIGGER_LIMIT_EXCEEDED" | "TRIGGER_CONTROL_IN_PROGRESS" | "TRIGGER_PATCH_EMPTY" | "CLIENT_TRIGGER_ID_INVALID" | "TRIGGER_ACTIVATION_PRICE_INVALID" | "SLIPPAGE_TICKS_INVALID" | "SLIPPAGE_BPS_INVALID" | "TRIGGER_CONTROL_OUTCOME_UNKNOWN" | "TRIGGER_CAPACITY_REACHED" | "RESERVATION_CAPACITY_REACHED" | "CLIENT_ORDER_ID_CAPACITY_REACHED" | "ACCOUNT_RESERVATION_LIMIT_REACHED" | "INVALID_TRIGGER_CONTROL" | "TRIGGER_PATCH_NOT_ALLOWED" | "TRIGGER_PATCH_FIELD_UNKNOWN" | "TRIGGER_PATCH_VALUE_UNMASKED" | "TRIGGER_PATCH_PRICE_MODE_INVALID" | "ACCOUNT_ORDERS_SUSPENDED" | "TRAILING_SIDE_NOT_SUPPORTED" | "TRAILING_CHILD_NOT_MARKET" | "TWAP_DURATION_INVALID" | "LIMIT_CHILD_SLIPPAGE_SET" | "SLIPPAGE_BOUNDS_CONFLICT" | "TWAP_INTERVAL_INVALID" | "LADDER_LEVEL_REJECTED" | "LADDER_RANGE_TOO_NARROW" | "LADDER_LEVELS_INVALID" | "ORDER_LIMITS_UNAVAILABLE" | "ORDER_TYPE_NOT_ALLOWED_IN_AUCTION" | "POST_ONLY_NOT_ALLOWED_IN_AUCTION" | "QUICKSWAP_FEE_DETAILS_INCOMPLETE" | "QUICKSWAP_MARKET_NOT_PRICED" | "QUICKSWAP_BROKER_FEE_TERMS_MISMATCH" | "QUICKSWAP_FEE_RECIPIENT_IS_PAYER" | "QUICKSWAP_BROKER_FEE_TERMS_UNAVAILABLE" | "QUICKSWAP_BROKER_ACCOUNT_UNAVAILABLE" | "QUICKSWAP_ACCOUNT_OWNER_UNKNOWN" | "QUICKSWAP_DISABLED" | "QUICKSWAP_ATTACHED_RISK_NOT_ALLOWED" | "QUICKSWAP_ORDER_NOT_MODIFIABLE" | "QUICKSWAP_FEE_TOTAL_TOO_HIGH" | "QUICKSWAP_BROKER_FEE_TERMS_INVALID" | "QUICKSWAP_BROKER_INVALID" | "QUICKSWAP_FEE_SCHEDULE_INVALID" | "QUICKSWAP_MARKET_FEE_INVALID" | "QUICKSWAP_SETUP_INVALID" | "QUICKSWAP_CAPACITY_REACHED" | "ATTACHED_EXIT_WORKING" | "MARKET_TRIGGER_LIMIT_EXCEEDED" | "MARKET_TWAP_LIMIT_EXCEEDED" | "MARKET_LADDER_LIMIT_EXCEEDED" | "CHILD_QTY_EXCEEDS_REMAINING" | "ORDER_CANCEL_OUTCOME_UNKNOWN" | "ORDER_MODIFY_OUTCOME_UNKNOWN" | "ORDER_REPAIRING" | "ACCOUNT_REPAIRING" | "TRIGGER_WOULD_TRIGGER_IMMEDIATELY" | "ORDER_CREATE_OUTCOME_UNKNOWN" | "TRIGGER_CREATE_OUTCOME_UNKNOWN" | "TRIGGER_SYMBOL_MISMATCH" | "MAX_OPEN_ORDERS_PER_PAIR" | "SELF_TRADE_PREVENTED" | "ATTACHED_LEGS_EXCEEDED" | "FEE_ASSET_INVALID" | "FEE_CEILING_INVALID" | "UNSUPPORTED_FIELD_SET" | "TRIGGER_FIRE_LIMIT_REACHED" | "CONDITION_FLAGS_INVALID" | "CONDITION_PARAMETER_SET" | "TWAP_CAPACITY_REACHED" | "CHILD_ORDER_INCONSISTENT" | "PATH_BODY_ID_MISMATCH" | "REQUEST_DEADLINE_EXCEEDED" | "ICEBERG_NOT_ALLOWED" | "ICEBERG_DISPLAY_TOO_SMALL" | "ICEBERG_DISPLAY_INVALID" | "PEG_LIMIT_VIOLATION" | "PEG_REFERENCE_UNAVAILABLE" | "INVALID_PEG" | "TRIGGER_ACTIVATION_PRICE_NOT_MODIFIABLE" | undefined;
|
|
3713
3713
|
price: string;
|
|
3714
3714
|
createdTs: number;
|
|
3715
3715
|
terminalTs: number;
|
|
@@ -3724,7 +3724,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3724
3724
|
hiddenQty?: string | undefined;
|
|
3725
3725
|
symbolId: number;
|
|
3726
3726
|
clientOrderId: string;
|
|
3727
|
-
status: "unspecified" | "canceled" | "
|
|
3727
|
+
status: "unspecified" | "canceled" | "pending" | "rejected" | "pending_cancel" | "working" | "filled" | "partial";
|
|
3728
3728
|
side: "unspecified" | "buy" | "sell";
|
|
3729
3729
|
orderType: "unspecified" | "limit" | "market";
|
|
3730
3730
|
timeInForce: "unspecified" | "gtc" | "ioc" | "fok" | "gtd";
|
|
@@ -3763,12 +3763,12 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3763
3763
|
triggers: ({
|
|
3764
3764
|
runtimeDetails: TriggerDetailsOutput;
|
|
3765
3765
|
version: number;
|
|
3766
|
-
cancelReason: "unspecified" | "
|
|
3766
|
+
cancelReason: "unspecified" | "oco" | "user_request" | "account_repair" | "market_halted" | "parent_canceled_no_fill" | "self_trade_prevention" | "pair_drain_trigger" | "pair_drain_twap" | "pair_drain_ladder" | "pair_drain_attached_leg" | "missing_reason_code" | "internal_error";
|
|
3767
3767
|
failureReason: undefined;
|
|
3768
3768
|
triggerId: string;
|
|
3769
3769
|
subaccountId: string;
|
|
3770
3770
|
symbolId: number;
|
|
3771
|
-
status: "unspecified" | "
|
|
3771
|
+
status: "unspecified" | "completed" | "canceled" | "armed" | "failed" | "paused" | "created" | "running";
|
|
3772
3772
|
parentOrderId: string | undefined;
|
|
3773
3773
|
orderListId: string | undefined;
|
|
3774
3774
|
qty: string;
|
|
@@ -3950,11 +3950,11 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3950
3950
|
runtimeDetails: TriggerDetailsOutput;
|
|
3951
3951
|
version: number;
|
|
3952
3952
|
cancelReason: undefined;
|
|
3953
|
-
failureReason: "unspecified" | "
|
|
3953
|
+
failureReason: "unspecified" | "market_halted" | "missing_reason_code" | "internal_error" | "unknown_symbol" | "pair_disabled" | "min_notional" | "tick_size" | "insufficient_funds" | "risk_limit" | "duplicate_client_id" | "engine_busy" | "account_unknown" | "order_unknown" | "post_only_cross" | "reduce_only_blocked" | "price_band_violation" | "market_cap_violation" | "empty_book" | "fok_insufficient_liquidity" | "fee_asset_not_allowed" | "market_price_unavailable" | "stale_quote" | "min_quantity" | "step_size" | "invalid_sizing" | "quote_size_too_small" | "fee_ceiling_exceeded" | "trigger_price_invalid" | "trigger_price_source_unsupported" | "trailing_distance_invalid" | "modification_requires_replace" | "order_already_terminal" | "conflict_idempotency_key_reuse" | "rate_limited" | "policy_spot_trade_deny" | "policy_market_deny" | "policy_max_notional" | "policy_max_open_orders" | "policy_trading_halted" | "max_slippage_invalid" | "invalid_time_in_force" | "duplicate_order_id" | "max_quantity" | "max_notional" | "pair_post_only" | "max_open_orders_total" | "stp_mode_not_allowed" | "pair_backlogged" | "mode_not_supported" | "market_quote_stale" | "market_quote_unhealthy" | "qty_invalid" | "limit_price_invalid" | "twap_interval_invalid" | "ladder_range_too_narrow" | "ladder_levels_invalid" | "attached_legs_exceeded" | "price_levels_exhausted" | "settlement_backlogged" | "client_order_ids_exhausted" | "invalid_order_id" | "order_id_conflict" | "invalid_side" | "invalid_order_type" | "invalid_stp_mode" | "invalid_order_flags" | "price_level_quantity_limit" | "child_qty_raise_not_allowed" | "triggers_exhausted" | "order_sequence_exhausted" | "fee_schedule_unavailable" | "policy_unavailable" | "account_routing_invalid" | "client_trigger_id_invalid" | "trigger_direction_invalid" | "fee_asset_invalid" | "fee_ceiling_invalid" | "unsupported_field_set" | "trigger_fire_limit_reached" | "condition_flags_invalid" | "condition_parameter_set" | "slippage_ticks_invalid" | "slippage_bps_invalid" | "slippage_bounds_conflict" | "limit_child_slippage_set" | "new_account_capacity_reached" | "order_type_not_allowed_in_auction" | "post_only_not_allowed_in_auction" | "twap_capacity_reached" | "order_limits_unavailable" | "child_order_inconsistent" | "index_price_unavailable" | "trigger_would_trigger_immediately" | "max_open_orders_per_pair" | "account_repairing" | "self_trade_prevented";
|
|
3954
3954
|
triggerId: string;
|
|
3955
3955
|
subaccountId: string;
|
|
3956
3956
|
symbolId: number;
|
|
3957
|
-
status: "unspecified" | "
|
|
3957
|
+
status: "unspecified" | "completed" | "canceled" | "armed" | "failed" | "paused" | "created" | "running";
|
|
3958
3958
|
parentOrderId: string | undefined;
|
|
3959
3959
|
orderListId: string | undefined;
|
|
3960
3960
|
qty: string;
|
|
@@ -4140,7 +4140,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
4140
4140
|
triggerId: string;
|
|
4141
4141
|
subaccountId: string;
|
|
4142
4142
|
symbolId: number;
|
|
4143
|
-
status: "unspecified" | "
|
|
4143
|
+
status: "unspecified" | "completed" | "canceled" | "armed" | "failed" | "paused" | "created" | "running";
|
|
4144
4144
|
parentOrderId: string | undefined;
|
|
4145
4145
|
orderListId: string | undefined;
|
|
4146
4146
|
qty: string;
|
|
@@ -4364,10 +4364,10 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
4364
4364
|
} | {
|
|
4365
4365
|
type: "price_chart";
|
|
4366
4366
|
symbolId: number;
|
|
4367
|
-
timeframe: "unspecified" | "
|
|
4367
|
+
timeframe: "unspecified" | "1s" | "1m" | "3m" | "5m" | "15m" | "30m" | "1h" | "2h" | "4h" | "6h" | "8h" | "12h" | "1d" | "3d" | "1w" | "1mo";
|
|
4368
4368
|
candles: {
|
|
4369
4369
|
symbolId: number;
|
|
4370
|
-
timeframe: DecodedEnum<"
|
|
4370
|
+
timeframe: DecodedEnum<"1s" | "1m" | "3m" | "5m" | "15m" | "30m" | "1h" | "2h" | "4h" | "6h" | "8h" | "12h" | "1d" | "3d" | "1w" | "1mo">;
|
|
4371
4371
|
time: number;
|
|
4372
4372
|
open: string;
|
|
4373
4373
|
high: string;
|
|
@@ -4420,7 +4420,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
4420
4420
|
price: string;
|
|
4421
4421
|
referencePrice: string;
|
|
4422
4422
|
armed: boolean;
|
|
4423
|
-
status: "unspecified" | "active" | "
|
|
4423
|
+
status: "unspecified" | "active" | "canceled" | "triggered";
|
|
4424
4424
|
channels: ("unspecified" | "in_app" | "telegram")[];
|
|
4425
4425
|
revision: string;
|
|
4426
4426
|
createdAt: number | null;
|
|
@@ -167,7 +167,7 @@ declare function formatMemory(m: Memory): {
|
|
|
167
167
|
createdAt: number | undefined;
|
|
168
168
|
/** Omitted when the conversation it was learned in is unknown. */
|
|
169
169
|
conversationId: string | undefined;
|
|
170
|
-
kind: "unspecified" | "
|
|
170
|
+
kind: "unspecified" | "fact" | "planning_figure" | "profile";
|
|
171
171
|
};
|
|
172
172
|
type AssistantMemory = ReturnType<typeof formatMemory>;
|
|
173
173
|
declare function formatAssistantKey(k: AssistantKey$1): {
|
|
@@ -500,7 +500,7 @@ declare const AutoWithdrawStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
500
500
|
readonly hi: v.BigintSchema<undefined>;
|
|
501
501
|
readonly lo: v.BigintSchema<undefined>;
|
|
502
502
|
}, undefined>, undefined>;
|
|
503
|
-
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
503
|
+
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "completed" | "pending" | "failed" | "submitted" | "skipped" | "submitting">]>;
|
|
504
504
|
readonly reason: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "">, v.TransformAction<string, AutoWithdrawStepReason | null>]>;
|
|
505
505
|
readonly intentId: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
506
506
|
readonly txHash: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
@@ -524,7 +524,7 @@ declare const AutoWithdrawStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
524
524
|
hi: bigint;
|
|
525
525
|
lo: bigint;
|
|
526
526
|
} | undefined;
|
|
527
|
-
state: "unspecified" | "
|
|
527
|
+
state: "unspecified" | "completed" | "pending" | "failed" | "submitted" | "skipped" | "submitting";
|
|
528
528
|
reason: AutoWithdrawStepReason | null;
|
|
529
529
|
intentId: string;
|
|
530
530
|
txHash: string;
|
|
@@ -538,7 +538,7 @@ declare const AutoWithdrawStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
538
538
|
txHash: string | null;
|
|
539
539
|
assetId: number;
|
|
540
540
|
destinationAddress: string;
|
|
541
|
-
state: "unspecified" | "
|
|
541
|
+
state: "unspecified" | "completed" | "pending" | "failed" | "submitted" | "skipped" | "submitting";
|
|
542
542
|
reason: AutoWithdrawStepReason | null;
|
|
543
543
|
}>]>;
|
|
544
544
|
/**
|
|
@@ -559,7 +559,7 @@ declare const AutoWithdrawRunSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
559
559
|
seconds: bigint;
|
|
560
560
|
nanos: number;
|
|
561
561
|
}, number>]>;
|
|
562
|
-
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
562
|
+
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "completed" | "failed" | "planned" | "paying" | "partially_failed" | "skipped">]>;
|
|
563
563
|
readonly reason: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "">, v.TransformAction<string, AutoWithdrawRunReason | null>]>;
|
|
564
564
|
readonly steps: v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
565
565
|
readonly assetId: v.NumberSchema<undefined>;
|
|
@@ -581,7 +581,7 @@ declare const AutoWithdrawRunSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
581
581
|
readonly hi: v.BigintSchema<undefined>;
|
|
582
582
|
readonly lo: v.BigintSchema<undefined>;
|
|
583
583
|
}, undefined>, undefined>;
|
|
584
|
-
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
584
|
+
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "completed" | "pending" | "failed" | "submitted" | "skipped" | "submitting">]>;
|
|
585
585
|
readonly reason: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "">, v.TransformAction<string, AutoWithdrawStepReason | null>]>;
|
|
586
586
|
readonly intentId: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
587
587
|
readonly txHash: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
@@ -605,7 +605,7 @@ declare const AutoWithdrawRunSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
605
605
|
hi: bigint;
|
|
606
606
|
lo: bigint;
|
|
607
607
|
} | undefined;
|
|
608
|
-
state: "unspecified" | "
|
|
608
|
+
state: "unspecified" | "completed" | "pending" | "failed" | "submitted" | "skipped" | "submitting";
|
|
609
609
|
reason: AutoWithdrawStepReason | null;
|
|
610
610
|
intentId: string;
|
|
611
611
|
txHash: string;
|
|
@@ -619,7 +619,7 @@ declare const AutoWithdrawRunSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
619
619
|
txHash: string | null;
|
|
620
620
|
assetId: number;
|
|
621
621
|
destinationAddress: string;
|
|
622
|
-
state: "unspecified" | "
|
|
622
|
+
state: "unspecified" | "completed" | "pending" | "failed" | "submitted" | "skipped" | "submitting";
|
|
623
623
|
reason: AutoWithdrawStepReason | null;
|
|
624
624
|
}>]>, undefined>;
|
|
625
625
|
readonly createdAt: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
@@ -640,7 +640,7 @@ declare const AutoWithdrawRunSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
640
640
|
runSeq: string;
|
|
641
641
|
ruleVersion: number;
|
|
642
642
|
scheduledFor: number;
|
|
643
|
-
state: "unspecified" | "
|
|
643
|
+
state: "unspecified" | "completed" | "failed" | "planned" | "paying" | "partially_failed" | "skipped";
|
|
644
644
|
reason: AutoWithdrawRunReason | null;
|
|
645
645
|
steps: {
|
|
646
646
|
destinationChainId: number;
|
|
@@ -652,7 +652,7 @@ declare const AutoWithdrawRunSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
652
652
|
txHash: string | null;
|
|
653
653
|
assetId: number;
|
|
654
654
|
destinationAddress: string;
|
|
655
|
-
state: "unspecified" | "
|
|
655
|
+
state: "unspecified" | "completed" | "pending" | "failed" | "submitted" | "skipped" | "submitting";
|
|
656
656
|
reason: AutoWithdrawStepReason | null;
|
|
657
657
|
}[];
|
|
658
658
|
createdAt: number;
|
|
@@ -662,7 +662,7 @@ declare const AutoWithdrawRunSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
662
662
|
runSeq: string;
|
|
663
663
|
ruleVersion: number;
|
|
664
664
|
scheduledFor: number;
|
|
665
|
-
state: "unspecified" | "
|
|
665
|
+
state: "unspecified" | "completed" | "failed" | "planned" | "paying" | "partially_failed" | "skipped";
|
|
666
666
|
reason: AutoWithdrawRunReason | null;
|
|
667
667
|
steps: {
|
|
668
668
|
destinationChainId: number;
|
|
@@ -674,7 +674,7 @@ declare const AutoWithdrawRunSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
674
674
|
txHash: string | null;
|
|
675
675
|
assetId: number;
|
|
676
676
|
destinationAddress: string;
|
|
677
|
-
state: "unspecified" | "
|
|
677
|
+
state: "unspecified" | "completed" | "pending" | "failed" | "submitted" | "skipped" | "submitting";
|
|
678
678
|
reason: AutoWithdrawStepReason | null;
|
|
679
679
|
}[];
|
|
680
680
|
createdAt: number;
|
|
@@ -692,7 +692,7 @@ declare const ListAutoWithdrawRunsResultSchema: v.ObjectSchema<{
|
|
|
692
692
|
seconds: bigint;
|
|
693
693
|
nanos: number;
|
|
694
694
|
}, number>]>;
|
|
695
|
-
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
695
|
+
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "completed" | "failed" | "planned" | "paying" | "partially_failed" | "skipped">]>;
|
|
696
696
|
readonly reason: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "">, v.TransformAction<string, AutoWithdrawRunReason | null>]>;
|
|
697
697
|
readonly steps: v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
698
698
|
readonly assetId: v.NumberSchema<undefined>;
|
|
@@ -714,7 +714,7 @@ declare const ListAutoWithdrawRunsResultSchema: v.ObjectSchema<{
|
|
|
714
714
|
readonly hi: v.BigintSchema<undefined>;
|
|
715
715
|
readonly lo: v.BigintSchema<undefined>;
|
|
716
716
|
}, undefined>, undefined>;
|
|
717
|
-
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
717
|
+
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "completed" | "pending" | "failed" | "submitted" | "skipped" | "submitting">]>;
|
|
718
718
|
readonly reason: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "">, v.TransformAction<string, AutoWithdrawStepReason | null>]>;
|
|
719
719
|
readonly intentId: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
720
720
|
readonly txHash: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
@@ -738,7 +738,7 @@ declare const ListAutoWithdrawRunsResultSchema: v.ObjectSchema<{
|
|
|
738
738
|
hi: bigint;
|
|
739
739
|
lo: bigint;
|
|
740
740
|
} | undefined;
|
|
741
|
-
state: "unspecified" | "
|
|
741
|
+
state: "unspecified" | "completed" | "pending" | "failed" | "submitted" | "skipped" | "submitting";
|
|
742
742
|
reason: AutoWithdrawStepReason | null;
|
|
743
743
|
intentId: string;
|
|
744
744
|
txHash: string;
|
|
@@ -752,7 +752,7 @@ declare const ListAutoWithdrawRunsResultSchema: v.ObjectSchema<{
|
|
|
752
752
|
txHash: string | null;
|
|
753
753
|
assetId: number;
|
|
754
754
|
destinationAddress: string;
|
|
755
|
-
state: "unspecified" | "
|
|
755
|
+
state: "unspecified" | "completed" | "pending" | "failed" | "submitted" | "skipped" | "submitting";
|
|
756
756
|
reason: AutoWithdrawStepReason | null;
|
|
757
757
|
}>]>, undefined>;
|
|
758
758
|
readonly createdAt: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
@@ -773,7 +773,7 @@ declare const ListAutoWithdrawRunsResultSchema: v.ObjectSchema<{
|
|
|
773
773
|
runSeq: string;
|
|
774
774
|
ruleVersion: number;
|
|
775
775
|
scheduledFor: number;
|
|
776
|
-
state: "unspecified" | "
|
|
776
|
+
state: "unspecified" | "completed" | "failed" | "planned" | "paying" | "partially_failed" | "skipped";
|
|
777
777
|
reason: AutoWithdrawRunReason | null;
|
|
778
778
|
steps: {
|
|
779
779
|
destinationChainId: number;
|
|
@@ -785,7 +785,7 @@ declare const ListAutoWithdrawRunsResultSchema: v.ObjectSchema<{
|
|
|
785
785
|
txHash: string | null;
|
|
786
786
|
assetId: number;
|
|
787
787
|
destinationAddress: string;
|
|
788
|
-
state: "unspecified" | "
|
|
788
|
+
state: "unspecified" | "completed" | "pending" | "failed" | "submitted" | "skipped" | "submitting";
|
|
789
789
|
reason: AutoWithdrawStepReason | null;
|
|
790
790
|
}[];
|
|
791
791
|
createdAt: number;
|
|
@@ -795,7 +795,7 @@ declare const ListAutoWithdrawRunsResultSchema: v.ObjectSchema<{
|
|
|
795
795
|
runSeq: string;
|
|
796
796
|
ruleVersion: number;
|
|
797
797
|
scheduledFor: number;
|
|
798
|
-
state: "unspecified" | "
|
|
798
|
+
state: "unspecified" | "completed" | "failed" | "planned" | "paying" | "partially_failed" | "skipped";
|
|
799
799
|
reason: AutoWithdrawRunReason | null;
|
|
800
800
|
steps: {
|
|
801
801
|
destinationChainId: number;
|
|
@@ -807,7 +807,7 @@ declare const ListAutoWithdrawRunsResultSchema: v.ObjectSchema<{
|
|
|
807
807
|
txHash: string | null;
|
|
808
808
|
assetId: number;
|
|
809
809
|
destinationAddress: string;
|
|
810
|
-
state: "unspecified" | "
|
|
810
|
+
state: "unspecified" | "completed" | "pending" | "failed" | "submitted" | "skipped" | "submitting";
|
|
811
811
|
reason: AutoWithdrawStepReason | null;
|
|
812
812
|
}[];
|
|
813
813
|
createdAt: number;
|