@polyester/sdk 0.36.0-devnet-20261119181946 → 0.36.0-devnet-20261119195411
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 +7 -1
- package/dist/realtime/client.js +7 -1
- package/dist/realtime/client.js.map +1 -1
- package/dist/services/account-activity/account-activity.schemas.d.ts +6 -6
- package/dist/services/assistant/assistant-events.schemas.d.ts +53 -24
- package/dist/services/assistant/assistant-events.schemas.d.ts.map +1 -1
- package/dist/services/assistant/assistant.schemas.d.ts +2 -2
- package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +13 -13
- package/dist/services/changelog/changelog.schemas.d.ts +38 -38
- package/dist/services/checkpoints/checkpoints.schemas.d.ts +1 -1
- package/dist/services/claims/claims.schemas.d.ts +2 -2
- package/dist/services/dust-conversion/dust-conversion.schemas.d.ts +6 -6
- package/dist/services/heatmap/heatmap.schemas.d.ts +4 -4
- package/dist/services/lifecycle/lifecycle.schemas.d.ts +79 -79
- package/dist/services/notifications/notifications.schemas.d.ts +4 -4
- package/dist/services/orderbook/orderbook.d.ts.map +1 -1
- package/dist/services/orderbook/orderbook.js +5 -19
- package/dist/services/orderbook/orderbook.js.map +1 -1
- package/dist/services/orders/orders-batch.schemas.d.ts +7 -7
- package/dist/services/orders/orders-output.schemas.d.ts +6 -6
- package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts +1 -1
- package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts.map +1 -1
- package/dist/services/policies/api-key-policies/api-key-policies.schemas.js +1 -1
- package/dist/services/policies/api-key-policies/api-key-policies.schemas.js.map +1 -1
- package/dist/services/price-alerts/price-alerts.schemas.d.ts +11 -11
- package/dist/services/rewards/rewards.schemas.d.ts +4 -4
- package/dist/services/social-verification/social-verification.schemas.d.ts +2 -2
- package/dist/services/statement-exports/statement-exports.schemas.d.ts +6 -6
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +3 -3
- 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 +2 -2
- package/dist/services/triggers/triggers-output.schemas.d.ts +28 -28
- package/dist/services/vip/vip.schemas.d.ts +3 -3
- package/package.json +1 -1
|
@@ -628,6 +628,7 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
|
|
|
628
628
|
maxSlippageBps?: undefined;
|
|
629
629
|
legs?: undefined;
|
|
630
630
|
quotedAt?: undefined;
|
|
631
|
+
/** Approving after this executes nothing. */
|
|
631
632
|
expiresAt?: undefined;
|
|
632
633
|
} | {
|
|
633
634
|
type: "place_orders";
|
|
@@ -966,6 +967,7 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
|
|
|
966
967
|
maxSlippageBps?: undefined;
|
|
967
968
|
legs?: undefined;
|
|
968
969
|
quotedAt?: undefined;
|
|
970
|
+
/** Approving after this executes nothing. */
|
|
969
971
|
expiresAt?: undefined;
|
|
970
972
|
} | {
|
|
971
973
|
type: "cancel_orders";
|
|
@@ -1013,6 +1015,7 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
|
|
|
1013
1015
|
maxSlippageBps?: undefined;
|
|
1014
1016
|
legs?: undefined;
|
|
1015
1017
|
quotedAt?: undefined;
|
|
1018
|
+
/** Approving after this executes nothing. */
|
|
1016
1019
|
expiresAt?: undefined;
|
|
1017
1020
|
} | {
|
|
1018
1021
|
type: "order_change";
|
|
@@ -1062,6 +1065,7 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
|
|
|
1062
1065
|
maxSlippageBps?: undefined;
|
|
1063
1066
|
legs?: undefined;
|
|
1064
1067
|
quotedAt?: undefined;
|
|
1068
|
+
/** Approving after this executes nothing. */
|
|
1065
1069
|
expiresAt?: undefined;
|
|
1066
1070
|
} | {
|
|
1067
1071
|
type: "trigger_change";
|
|
@@ -1075,7 +1079,7 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
|
|
|
1075
1079
|
quantity: string;
|
|
1076
1080
|
action: "unspecified" | "pause" | "modify" | "resume";
|
|
1077
1081
|
before: {
|
|
1078
|
-
status: "unspecified" | "
|
|
1082
|
+
status: "unspecified" | "failed" | "canceled" | "armed" | "completed" | "paused" | "created" | "running";
|
|
1079
1083
|
triggerPrice: string | undefined;
|
|
1080
1084
|
trailingDistance: {
|
|
1081
1085
|
kind: "distance";
|
|
@@ -1099,7 +1103,7 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
|
|
|
1099
1103
|
limitPrice: string | undefined;
|
|
1100
1104
|
} | undefined;
|
|
1101
1105
|
after: {
|
|
1102
|
-
status: "unspecified" | "
|
|
1106
|
+
status: "unspecified" | "failed" | "canceled" | "armed" | "completed" | "paused" | "created" | "running";
|
|
1103
1107
|
triggerPrice: string | undefined;
|
|
1104
1108
|
trailingDistance: {
|
|
1105
1109
|
kind: "distance";
|
|
@@ -1152,6 +1156,7 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
|
|
|
1152
1156
|
maxSlippageBps?: undefined;
|
|
1153
1157
|
legs?: undefined;
|
|
1154
1158
|
quotedAt?: undefined;
|
|
1159
|
+
/** Approving after this executes nothing. */
|
|
1155
1160
|
expiresAt?: undefined;
|
|
1156
1161
|
} | {
|
|
1157
1162
|
type: "cancel_trigger";
|
|
@@ -1192,6 +1197,7 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
|
|
|
1192
1197
|
maxSlippageBps?: undefined;
|
|
1193
1198
|
legs?: undefined;
|
|
1194
1199
|
quotedAt?: undefined;
|
|
1200
|
+
/** Approving after this executes nothing. */
|
|
1195
1201
|
expiresAt?: undefined;
|
|
1196
1202
|
} | {
|
|
1197
1203
|
type: "swap";
|
|
@@ -1281,6 +1287,7 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
|
|
|
1281
1287
|
maxSlippageBps?: undefined;
|
|
1282
1288
|
legs?: undefined;
|
|
1283
1289
|
quotedAt?: undefined;
|
|
1290
|
+
/** Approving after this executes nothing. */
|
|
1284
1291
|
expiresAt?: undefined;
|
|
1285
1292
|
};
|
|
1286
1293
|
type AssistantApprovalPreview = ReturnType<typeof formatApprovalPreview>;
|
|
@@ -1304,7 +1311,7 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1304
1311
|
attachedRisk: {
|
|
1305
1312
|
takeProfit: {
|
|
1306
1313
|
state: {
|
|
1307
|
-
status: "unspecified" | "
|
|
1314
|
+
status: "unspecified" | "failed" | "canceled" | "armed" | "completed" | "paused" | "created" | "running" | "not_configured";
|
|
1308
1315
|
armedTs: number | undefined;
|
|
1309
1316
|
armedTsNs: string | undefined;
|
|
1310
1317
|
terminalTs: number | undefined;
|
|
@@ -1324,7 +1331,7 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1324
1331
|
} | undefined;
|
|
1325
1332
|
stopLoss: {
|
|
1326
1333
|
state: {
|
|
1327
|
-
status: "unspecified" | "
|
|
1334
|
+
status: "unspecified" | "failed" | "canceled" | "armed" | "completed" | "paused" | "created" | "running" | "not_configured";
|
|
1328
1335
|
armedTs: number | undefined;
|
|
1329
1336
|
armedTsNs: string | undefined;
|
|
1330
1337
|
terminalTs: number | undefined;
|
|
@@ -1344,7 +1351,7 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1344
1351
|
} | undefined;
|
|
1345
1352
|
trailingStop: {
|
|
1346
1353
|
state: {
|
|
1347
|
-
status: "unspecified" | "
|
|
1354
|
+
status: "unspecified" | "failed" | "canceled" | "armed" | "completed" | "paused" | "created" | "running" | "not_configured";
|
|
1348
1355
|
armedTs: number | undefined;
|
|
1349
1356
|
armedTsNs: string | undefined;
|
|
1350
1357
|
terminalTs: number | undefined;
|
|
@@ -1429,12 +1436,12 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1429
1436
|
triggers: ({
|
|
1430
1437
|
runtimeDetails: TriggerDetailsOutput;
|
|
1431
1438
|
version: number;
|
|
1432
|
-
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" | "cancel_all" | "missing_reason_code" | "internal_error";
|
|
1433
1440
|
failureReason: undefined;
|
|
1434
1441
|
triggerId: string;
|
|
1435
1442
|
subaccountId: string;
|
|
1436
1443
|
symbolId: number;
|
|
1437
|
-
status: "unspecified" | "
|
|
1444
|
+
status: "unspecified" | "failed" | "canceled" | "armed" | "completed" | "paused" | "created" | "running";
|
|
1438
1445
|
parentOrderId: string | undefined;
|
|
1439
1446
|
orderListId: string | undefined;
|
|
1440
1447
|
qty: string;
|
|
@@ -1616,11 +1623,11 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1616
1623
|
runtimeDetails: TriggerDetailsOutput;
|
|
1617
1624
|
version: number;
|
|
1618
1625
|
cancelReason: undefined;
|
|
1619
|
-
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" | "trigger_stopping";
|
|
1620
1627
|
triggerId: string;
|
|
1621
1628
|
subaccountId: string;
|
|
1622
1629
|
symbolId: number;
|
|
1623
|
-
status: "unspecified" | "
|
|
1630
|
+
status: "unspecified" | "failed" | "canceled" | "armed" | "completed" | "paused" | "created" | "running";
|
|
1624
1631
|
parentOrderId: string | undefined;
|
|
1625
1632
|
orderListId: string | undefined;
|
|
1626
1633
|
qty: string;
|
|
@@ -1806,7 +1813,7 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1806
1813
|
triggerId: string;
|
|
1807
1814
|
subaccountId: string;
|
|
1808
1815
|
symbolId: number;
|
|
1809
|
-
status: "unspecified" | "
|
|
1816
|
+
status: "unspecified" | "failed" | "canceled" | "armed" | "completed" | "paused" | "created" | "running";
|
|
1810
1817
|
parentOrderId: string | undefined;
|
|
1811
1818
|
orderListId: string | undefined;
|
|
1812
1819
|
qty: string;
|
|
@@ -2087,7 +2094,7 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
2087
2094
|
referencePrice: string;
|
|
2088
2095
|
armed: boolean;
|
|
2089
2096
|
status: "unspecified" | "active" | "canceled" | "triggered";
|
|
2090
|
-
channels: ("unspecified" | "
|
|
2097
|
+
channels: ("unspecified" | "in_app" | "telegram")[];
|
|
2091
2098
|
revision: string;
|
|
2092
2099
|
createdAt: number | null;
|
|
2093
2100
|
updatedAt: number | null;
|
|
@@ -2272,6 +2279,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
2272
2279
|
subagentId?: undefined;
|
|
2273
2280
|
summary?: undefined;
|
|
2274
2281
|
approvalId?: undefined;
|
|
2282
|
+
/** Approving after this executes nothing. */
|
|
2275
2283
|
expiresAt?: undefined;
|
|
2276
2284
|
parameters?: undefined;
|
|
2277
2285
|
accountId?: undefined;
|
|
@@ -2301,6 +2309,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
2301
2309
|
subagentId?: undefined;
|
|
2302
2310
|
summary?: undefined;
|
|
2303
2311
|
approvalId?: undefined;
|
|
2312
|
+
/** Approving after this executes nothing. */
|
|
2304
2313
|
expiresAt?: undefined;
|
|
2305
2314
|
parameters?: undefined;
|
|
2306
2315
|
accountId?: undefined;
|
|
@@ -2330,6 +2339,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
2330
2339
|
subagentId?: undefined;
|
|
2331
2340
|
summary?: undefined;
|
|
2332
2341
|
approvalId?: undefined;
|
|
2342
|
+
/** Approving after this executes nothing. */
|
|
2333
2343
|
expiresAt?: undefined;
|
|
2334
2344
|
parameters?: undefined;
|
|
2335
2345
|
accountId?: undefined;
|
|
@@ -2359,6 +2369,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
2359
2369
|
subagentId?: undefined;
|
|
2360
2370
|
summary?: undefined;
|
|
2361
2371
|
approvalId?: undefined;
|
|
2372
|
+
/** Approving after this executes nothing. */
|
|
2362
2373
|
expiresAt?: undefined;
|
|
2363
2374
|
parameters?: undefined;
|
|
2364
2375
|
accountId?: undefined;
|
|
@@ -2378,7 +2389,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
2378
2389
|
memories: {
|
|
2379
2390
|
memoryId: string;
|
|
2380
2391
|
text: string;
|
|
2381
|
-
kind: "unspecified" | "
|
|
2392
|
+
kind: "unspecified" | "fact" | "planning_figure" | "profile";
|
|
2382
2393
|
}[];
|
|
2383
2394
|
text?: undefined;
|
|
2384
2395
|
fromSeq?: undefined;
|
|
@@ -2392,6 +2403,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
2392
2403
|
subagentId?: undefined;
|
|
2393
2404
|
summary?: undefined;
|
|
2394
2405
|
approvalId?: undefined;
|
|
2406
|
+
/** Approving after this executes nothing. */
|
|
2395
2407
|
expiresAt?: undefined;
|
|
2396
2408
|
parameters?: undefined;
|
|
2397
2409
|
accountId?: undefined;
|
|
@@ -2421,6 +2433,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
2421
2433
|
subagentId?: undefined;
|
|
2422
2434
|
summary?: undefined;
|
|
2423
2435
|
approvalId?: undefined;
|
|
2436
|
+
/** Approving after this executes nothing. */
|
|
2424
2437
|
expiresAt?: undefined;
|
|
2425
2438
|
parameters?: undefined;
|
|
2426
2439
|
accountId?: undefined;
|
|
@@ -2437,7 +2450,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
2437
2450
|
} | {
|
|
2438
2451
|
type: "display_setting_action";
|
|
2439
2452
|
toolCallId: string;
|
|
2440
|
-
setting: "unspecified" | "
|
|
2453
|
+
setting: "unspecified" | "appearance" | "language" | "currency" | "date_format" | "time_format" | "number_format" | "week_start" | "sounds";
|
|
2441
2454
|
value: string | undefined;
|
|
2442
2455
|
text?: undefined;
|
|
2443
2456
|
fromSeq?: undefined;
|
|
@@ -2450,6 +2463,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
2450
2463
|
subagentId?: undefined;
|
|
2451
2464
|
summary?: undefined;
|
|
2452
2465
|
approvalId?: undefined;
|
|
2466
|
+
/** Approving after this executes nothing. */
|
|
2453
2467
|
expiresAt?: undefined;
|
|
2454
2468
|
parameters?: undefined;
|
|
2455
2469
|
accountId?: undefined;
|
|
@@ -2479,6 +2493,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
2479
2493
|
subagentId?: undefined;
|
|
2480
2494
|
summary?: undefined;
|
|
2481
2495
|
approvalId?: undefined;
|
|
2496
|
+
/** Approving after this executes nothing. */
|
|
2482
2497
|
expiresAt?: undefined;
|
|
2483
2498
|
parameters?: undefined;
|
|
2484
2499
|
accountId?: undefined;
|
|
@@ -2508,6 +2523,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
2508
2523
|
value?: undefined;
|
|
2509
2524
|
summary?: undefined;
|
|
2510
2525
|
approvalId?: undefined;
|
|
2526
|
+
/** Approving after this executes nothing. */
|
|
2511
2527
|
expiresAt?: undefined;
|
|
2512
2528
|
parameters?: undefined;
|
|
2513
2529
|
accountId?: undefined;
|
|
@@ -2537,6 +2553,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
2537
2553
|
setting?: undefined;
|
|
2538
2554
|
value?: undefined;
|
|
2539
2555
|
approvalId?: undefined;
|
|
2556
|
+
/** Approving after this executes nothing. */
|
|
2540
2557
|
expiresAt?: undefined;
|
|
2541
2558
|
parameters?: undefined;
|
|
2542
2559
|
accountId?: undefined;
|
|
@@ -2887,6 +2904,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
2887
2904
|
maxSlippageBps?: undefined;
|
|
2888
2905
|
legs?: undefined;
|
|
2889
2906
|
quotedAt?: undefined;
|
|
2907
|
+
/** Approving after this executes nothing. */
|
|
2890
2908
|
expiresAt?: undefined;
|
|
2891
2909
|
} | {
|
|
2892
2910
|
type: "place_orders";
|
|
@@ -3225,6 +3243,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3225
3243
|
maxSlippageBps?: undefined;
|
|
3226
3244
|
legs?: undefined;
|
|
3227
3245
|
quotedAt?: undefined;
|
|
3246
|
+
/** Approving after this executes nothing. */
|
|
3228
3247
|
expiresAt?: undefined;
|
|
3229
3248
|
} | {
|
|
3230
3249
|
type: "cancel_orders";
|
|
@@ -3272,6 +3291,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3272
3291
|
maxSlippageBps?: undefined;
|
|
3273
3292
|
legs?: undefined;
|
|
3274
3293
|
quotedAt?: undefined;
|
|
3294
|
+
/** Approving after this executes nothing. */
|
|
3275
3295
|
expiresAt?: undefined;
|
|
3276
3296
|
} | {
|
|
3277
3297
|
type: "order_change";
|
|
@@ -3321,6 +3341,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3321
3341
|
maxSlippageBps?: undefined;
|
|
3322
3342
|
legs?: undefined;
|
|
3323
3343
|
quotedAt?: undefined;
|
|
3344
|
+
/** Approving after this executes nothing. */
|
|
3324
3345
|
expiresAt?: undefined;
|
|
3325
3346
|
} | {
|
|
3326
3347
|
type: "trigger_change";
|
|
@@ -3334,7 +3355,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3334
3355
|
quantity: string;
|
|
3335
3356
|
action: "unspecified" | "pause" | "modify" | "resume";
|
|
3336
3357
|
before: {
|
|
3337
|
-
status: "unspecified" | "
|
|
3358
|
+
status: "unspecified" | "failed" | "canceled" | "armed" | "completed" | "paused" | "created" | "running";
|
|
3338
3359
|
triggerPrice: string | undefined;
|
|
3339
3360
|
trailingDistance: {
|
|
3340
3361
|
kind: "distance";
|
|
@@ -3358,7 +3379,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3358
3379
|
limitPrice: string | undefined;
|
|
3359
3380
|
} | undefined;
|
|
3360
3381
|
after: {
|
|
3361
|
-
status: "unspecified" | "
|
|
3382
|
+
status: "unspecified" | "failed" | "canceled" | "armed" | "completed" | "paused" | "created" | "running";
|
|
3362
3383
|
triggerPrice: string | undefined;
|
|
3363
3384
|
trailingDistance: {
|
|
3364
3385
|
kind: "distance";
|
|
@@ -3411,6 +3432,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3411
3432
|
maxSlippageBps?: undefined;
|
|
3412
3433
|
legs?: undefined;
|
|
3413
3434
|
quotedAt?: undefined;
|
|
3435
|
+
/** Approving after this executes nothing. */
|
|
3414
3436
|
expiresAt?: undefined;
|
|
3415
3437
|
} | {
|
|
3416
3438
|
type: "cancel_trigger";
|
|
@@ -3451,6 +3473,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3451
3473
|
maxSlippageBps?: undefined;
|
|
3452
3474
|
legs?: undefined;
|
|
3453
3475
|
quotedAt?: undefined;
|
|
3476
|
+
/** Approving after this executes nothing. */
|
|
3454
3477
|
expiresAt?: undefined;
|
|
3455
3478
|
} | {
|
|
3456
3479
|
type: "swap";
|
|
@@ -3540,6 +3563,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3540
3563
|
maxSlippageBps?: undefined;
|
|
3541
3564
|
legs?: undefined;
|
|
3542
3565
|
quotedAt?: undefined;
|
|
3566
|
+
/** Approving after this executes nothing. */
|
|
3543
3567
|
expiresAt?: undefined;
|
|
3544
3568
|
};
|
|
3545
3569
|
text?: undefined;
|
|
@@ -3579,6 +3603,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3579
3603
|
value?: undefined;
|
|
3580
3604
|
subagentId?: undefined;
|
|
3581
3605
|
summary?: undefined;
|
|
3606
|
+
/** Approving after this executes nothing. */
|
|
3582
3607
|
expiresAt?: undefined;
|
|
3583
3608
|
parameters?: undefined;
|
|
3584
3609
|
accountId?: undefined;
|
|
@@ -3613,7 +3638,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3613
3638
|
attachedRisk: {
|
|
3614
3639
|
takeProfit: {
|
|
3615
3640
|
state: {
|
|
3616
|
-
status: "unspecified" | "
|
|
3641
|
+
status: "unspecified" | "failed" | "canceled" | "armed" | "completed" | "paused" | "created" | "running" | "not_configured";
|
|
3617
3642
|
armedTs: number | undefined;
|
|
3618
3643
|
armedTsNs: string | undefined;
|
|
3619
3644
|
terminalTs: number | undefined;
|
|
@@ -3633,7 +3658,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3633
3658
|
} | undefined;
|
|
3634
3659
|
stopLoss: {
|
|
3635
3660
|
state: {
|
|
3636
|
-
status: "unspecified" | "
|
|
3661
|
+
status: "unspecified" | "failed" | "canceled" | "armed" | "completed" | "paused" | "created" | "running" | "not_configured";
|
|
3637
3662
|
armedTs: number | undefined;
|
|
3638
3663
|
armedTsNs: string | undefined;
|
|
3639
3664
|
terminalTs: number | undefined;
|
|
@@ -3653,7 +3678,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3653
3678
|
} | undefined;
|
|
3654
3679
|
trailingStop: {
|
|
3655
3680
|
state: {
|
|
3656
|
-
status: "unspecified" | "
|
|
3681
|
+
status: "unspecified" | "failed" | "canceled" | "armed" | "completed" | "paused" | "created" | "running" | "not_configured";
|
|
3657
3682
|
armedTs: number | undefined;
|
|
3658
3683
|
armedTsNs: string | undefined;
|
|
3659
3684
|
terminalTs: number | undefined;
|
|
@@ -3738,12 +3763,12 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3738
3763
|
triggers: ({
|
|
3739
3764
|
runtimeDetails: TriggerDetailsOutput;
|
|
3740
3765
|
version: number;
|
|
3741
|
-
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" | "cancel_all" | "missing_reason_code" | "internal_error";
|
|
3742
3767
|
failureReason: undefined;
|
|
3743
3768
|
triggerId: string;
|
|
3744
3769
|
subaccountId: string;
|
|
3745
3770
|
symbolId: number;
|
|
3746
|
-
status: "unspecified" | "
|
|
3771
|
+
status: "unspecified" | "failed" | "canceled" | "armed" | "completed" | "paused" | "created" | "running";
|
|
3747
3772
|
parentOrderId: string | undefined;
|
|
3748
3773
|
orderListId: string | undefined;
|
|
3749
3774
|
qty: string;
|
|
@@ -3925,11 +3950,11 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3925
3950
|
runtimeDetails: TriggerDetailsOutput;
|
|
3926
3951
|
version: number;
|
|
3927
3952
|
cancelReason: undefined;
|
|
3928
|
-
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" | "trigger_stopping";
|
|
3929
3954
|
triggerId: string;
|
|
3930
3955
|
subaccountId: string;
|
|
3931
3956
|
symbolId: number;
|
|
3932
|
-
status: "unspecified" | "
|
|
3957
|
+
status: "unspecified" | "failed" | "canceled" | "armed" | "completed" | "paused" | "created" | "running";
|
|
3933
3958
|
parentOrderId: string | undefined;
|
|
3934
3959
|
orderListId: string | undefined;
|
|
3935
3960
|
qty: string;
|
|
@@ -4115,7 +4140,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
4115
4140
|
triggerId: string;
|
|
4116
4141
|
subaccountId: string;
|
|
4117
4142
|
symbolId: number;
|
|
4118
|
-
status: "unspecified" | "
|
|
4143
|
+
status: "unspecified" | "failed" | "canceled" | "armed" | "completed" | "paused" | "created" | "running";
|
|
4119
4144
|
parentOrderId: string | undefined;
|
|
4120
4145
|
orderListId: string | undefined;
|
|
4121
4146
|
qty: string;
|
|
@@ -4396,7 +4421,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
4396
4421
|
referencePrice: string;
|
|
4397
4422
|
armed: boolean;
|
|
4398
4423
|
status: "unspecified" | "active" | "canceled" | "triggered";
|
|
4399
|
-
channels: ("unspecified" | "
|
|
4424
|
+
channels: ("unspecified" | "in_app" | "telegram")[];
|
|
4400
4425
|
revision: string;
|
|
4401
4426
|
createdAt: number | null;
|
|
4402
4427
|
updatedAt: number | null;
|
|
@@ -4578,6 +4603,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
4578
4603
|
subagentId?: undefined;
|
|
4579
4604
|
summary?: undefined;
|
|
4580
4605
|
approvalId?: undefined;
|
|
4606
|
+
/** Approving after this executes nothing. */
|
|
4581
4607
|
expiresAt?: undefined;
|
|
4582
4608
|
parameters?: undefined;
|
|
4583
4609
|
accountId?: undefined;
|
|
@@ -4612,6 +4638,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
4612
4638
|
subagentId?: undefined;
|
|
4613
4639
|
summary?: undefined;
|
|
4614
4640
|
approvalId?: undefined;
|
|
4641
|
+
/** Approving after this executes nothing. */
|
|
4615
4642
|
expiresAt?: undefined;
|
|
4616
4643
|
parameters?: undefined;
|
|
4617
4644
|
accountId?: undefined;
|
|
@@ -4648,6 +4675,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
4648
4675
|
subagentId?: undefined;
|
|
4649
4676
|
summary?: undefined;
|
|
4650
4677
|
approvalId?: undefined;
|
|
4678
|
+
/** Approving after this executes nothing. */
|
|
4651
4679
|
expiresAt?: undefined;
|
|
4652
4680
|
parameters?: undefined;
|
|
4653
4681
|
accountId?: undefined;
|
|
@@ -4674,6 +4702,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
4674
4702
|
subagentId?: undefined;
|
|
4675
4703
|
summary?: undefined;
|
|
4676
4704
|
approvalId?: undefined;
|
|
4705
|
+
/** Approving after this executes nothing. */
|
|
4677
4706
|
expiresAt?: undefined;
|
|
4678
4707
|
parameters?: undefined;
|
|
4679
4708
|
accountId?: undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assistant-events.schemas.d.ts","names":[],"sources":["../../../src/services/assistant/assistant-events.schemas.ts"],"mappings":";;;;;;;iBAwLS,mBAAmB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAkBnB,wBAAwB,kBAAkB;iBA0B7C,sBAAsB,GAAG
|
|
1
|
+
{"version":3,"file":"assistant-events.schemas.d.ts","names":[],"sources":["../../../src/services/assistant/assistant-events.schemas.ts"],"mappings":";;;;;;;iBAwLS,mBAAmB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAkBnB,wBAAwB,kBAAkB;iBA0B7C,sBAAsB,G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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAUlD,oBAAoB,kBAAkB"}
|
|
@@ -72,7 +72,7 @@ declare const SendAssistantMessageInputSchema: v.SchemaWithPipe<readonly [v.Stri
|
|
|
72
72
|
* Display settings the client offers now and will change when a run's
|
|
73
73
|
* `display_setting_action` asks, each once. Omit for none.
|
|
74
74
|
*/
|
|
75
|
-
readonly displaySettings: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["appearance", "language", "currency", "date_format", "time_format", "number_format", "week_start", "sounds"], undefined>, undefined>, v.CheckAction<("
|
|
75
|
+
readonly displaySettings: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["appearance", "language", "currency", "date_format", "time_format", "number_format", "week_start", "sounds"], undefined>, undefined>, v.CheckAction<("appearance" | "language" | "currency" | "date_format" | "time_format" | "number_format" | "week_start" | "sounds")[], "Display settings must be distinct.">, v.TransformAction<("appearance" | "language" | "currency" | "date_format" | "time_format" | "number_format" | "week_start" | "sounds")[], (DisplaySetting.APPEARANCE | DisplaySetting.LANGUAGE | DisplaySetting.CURRENCY | DisplaySetting.DATE_FORMAT | DisplaySetting.TIME_FORMAT | DisplaySetting.NUMBER_FORMAT | DisplaySetting.WEEK_START | DisplaySetting.SOUNDS)[]>]>, undefined>;
|
|
76
76
|
}, undefined>, v.CheckAction<{
|
|
77
77
|
conversationId?: bigint | undefined;
|
|
78
78
|
text?: string | undefined;
|
|
@@ -242,7 +242,7 @@ declare function formatMemory(m: Memory): {
|
|
|
242
242
|
createdAt: number | undefined;
|
|
243
243
|
/** Omitted when the conversation it was learned in is unknown. */
|
|
244
244
|
conversationId: string | undefined;
|
|
245
|
-
kind: "unspecified" | "
|
|
245
|
+
kind: "unspecified" | "fact" | "planning_figure" | "profile";
|
|
246
246
|
};
|
|
247
247
|
type AssistantMemory = ReturnType<typeof formatMemory>;
|
|
248
248
|
declare function formatAssistantKey(k: AssistantKey$1): {
|
|
@@ -502,7 +502,7 @@ declare const AutoWithdrawStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
502
502
|
readonly hi: v.BigintSchema<undefined>;
|
|
503
503
|
readonly lo: v.BigintSchema<undefined>;
|
|
504
504
|
}, undefined>, undefined>;
|
|
505
|
-
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "failed" | "
|
|
505
|
+
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "failed" | "pending" | "completed" | "skipped" | "submitting" | "submitted">]>;
|
|
506
506
|
readonly reason: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "">, v.TransformAction<string, AutoWithdrawStepReason | null>]>;
|
|
507
507
|
readonly intentId: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
508
508
|
readonly txHash: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
@@ -526,7 +526,7 @@ declare const AutoWithdrawStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
526
526
|
hi: bigint;
|
|
527
527
|
lo: bigint;
|
|
528
528
|
} | undefined;
|
|
529
|
-
state: "unspecified" | "failed" | "
|
|
529
|
+
state: "unspecified" | "failed" | "pending" | "completed" | "skipped" | "submitting" | "submitted";
|
|
530
530
|
reason: AutoWithdrawStepReason | null;
|
|
531
531
|
intentId: string;
|
|
532
532
|
txHash: string;
|
|
@@ -540,7 +540,7 @@ declare const AutoWithdrawStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
540
540
|
txHash: string | null;
|
|
541
541
|
assetId: number;
|
|
542
542
|
destinationAddress: string;
|
|
543
|
-
state: "unspecified" | "failed" | "
|
|
543
|
+
state: "unspecified" | "failed" | "pending" | "completed" | "skipped" | "submitting" | "submitted";
|
|
544
544
|
reason: AutoWithdrawStepReason | null;
|
|
545
545
|
}>]>;
|
|
546
546
|
/**
|
|
@@ -583,7 +583,7 @@ declare const AutoWithdrawRunSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
583
583
|
readonly hi: v.BigintSchema<undefined>;
|
|
584
584
|
readonly lo: v.BigintSchema<undefined>;
|
|
585
585
|
}, undefined>, undefined>;
|
|
586
|
-
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "failed" | "
|
|
586
|
+
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "failed" | "pending" | "completed" | "skipped" | "submitting" | "submitted">]>;
|
|
587
587
|
readonly reason: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "">, v.TransformAction<string, AutoWithdrawStepReason | null>]>;
|
|
588
588
|
readonly intentId: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
589
589
|
readonly txHash: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
@@ -607,7 +607,7 @@ declare const AutoWithdrawRunSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
607
607
|
hi: bigint;
|
|
608
608
|
lo: bigint;
|
|
609
609
|
} | undefined;
|
|
610
|
-
state: "unspecified" | "failed" | "
|
|
610
|
+
state: "unspecified" | "failed" | "pending" | "completed" | "skipped" | "submitting" | "submitted";
|
|
611
611
|
reason: AutoWithdrawStepReason | null;
|
|
612
612
|
intentId: string;
|
|
613
613
|
txHash: string;
|
|
@@ -621,7 +621,7 @@ declare const AutoWithdrawRunSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
621
621
|
txHash: string | null;
|
|
622
622
|
assetId: number;
|
|
623
623
|
destinationAddress: string;
|
|
624
|
-
state: "unspecified" | "failed" | "
|
|
624
|
+
state: "unspecified" | "failed" | "pending" | "completed" | "skipped" | "submitting" | "submitted";
|
|
625
625
|
reason: AutoWithdrawStepReason | null;
|
|
626
626
|
}>]>, undefined>;
|
|
627
627
|
readonly createdAt: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
@@ -654,7 +654,7 @@ declare const AutoWithdrawRunSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
654
654
|
txHash: string | null;
|
|
655
655
|
assetId: number;
|
|
656
656
|
destinationAddress: string;
|
|
657
|
-
state: "unspecified" | "failed" | "
|
|
657
|
+
state: "unspecified" | "failed" | "pending" | "completed" | "skipped" | "submitting" | "submitted";
|
|
658
658
|
reason: AutoWithdrawStepReason | null;
|
|
659
659
|
}[];
|
|
660
660
|
createdAt: number;
|
|
@@ -676,7 +676,7 @@ declare const AutoWithdrawRunSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
676
676
|
txHash: string | null;
|
|
677
677
|
assetId: number;
|
|
678
678
|
destinationAddress: string;
|
|
679
|
-
state: "unspecified" | "failed" | "
|
|
679
|
+
state: "unspecified" | "failed" | "pending" | "completed" | "skipped" | "submitting" | "submitted";
|
|
680
680
|
reason: AutoWithdrawStepReason | null;
|
|
681
681
|
}[];
|
|
682
682
|
createdAt: number;
|
|
@@ -716,7 +716,7 @@ declare const ListAutoWithdrawRunsResultSchema: v.ObjectSchema<{
|
|
|
716
716
|
readonly hi: v.BigintSchema<undefined>;
|
|
717
717
|
readonly lo: v.BigintSchema<undefined>;
|
|
718
718
|
}, undefined>, undefined>;
|
|
719
|
-
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "failed" | "
|
|
719
|
+
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "failed" | "pending" | "completed" | "skipped" | "submitting" | "submitted">]>;
|
|
720
720
|
readonly reason: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "">, v.TransformAction<string, AutoWithdrawStepReason | null>]>;
|
|
721
721
|
readonly intentId: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
722
722
|
readonly txHash: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
@@ -740,7 +740,7 @@ declare const ListAutoWithdrawRunsResultSchema: v.ObjectSchema<{
|
|
|
740
740
|
hi: bigint;
|
|
741
741
|
lo: bigint;
|
|
742
742
|
} | undefined;
|
|
743
|
-
state: "unspecified" | "failed" | "
|
|
743
|
+
state: "unspecified" | "failed" | "pending" | "completed" | "skipped" | "submitting" | "submitted";
|
|
744
744
|
reason: AutoWithdrawStepReason | null;
|
|
745
745
|
intentId: string;
|
|
746
746
|
txHash: string;
|
|
@@ -754,7 +754,7 @@ declare const ListAutoWithdrawRunsResultSchema: v.ObjectSchema<{
|
|
|
754
754
|
txHash: string | null;
|
|
755
755
|
assetId: number;
|
|
756
756
|
destinationAddress: string;
|
|
757
|
-
state: "unspecified" | "failed" | "
|
|
757
|
+
state: "unspecified" | "failed" | "pending" | "completed" | "skipped" | "submitting" | "submitted";
|
|
758
758
|
reason: AutoWithdrawStepReason | null;
|
|
759
759
|
}>]>, undefined>;
|
|
760
760
|
readonly createdAt: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
@@ -787,7 +787,7 @@ declare const ListAutoWithdrawRunsResultSchema: v.ObjectSchema<{
|
|
|
787
787
|
txHash: string | null;
|
|
788
788
|
assetId: number;
|
|
789
789
|
destinationAddress: string;
|
|
790
|
-
state: "unspecified" | "failed" | "
|
|
790
|
+
state: "unspecified" | "failed" | "pending" | "completed" | "skipped" | "submitting" | "submitted";
|
|
791
791
|
reason: AutoWithdrawStepReason | null;
|
|
792
792
|
}[];
|
|
793
793
|
createdAt: number;
|
|
@@ -809,7 +809,7 @@ declare const ListAutoWithdrawRunsResultSchema: v.ObjectSchema<{
|
|
|
809
809
|
txHash: string | null;
|
|
810
810
|
assetId: number;
|
|
811
811
|
destinationAddress: string;
|
|
812
|
-
state: "unspecified" | "failed" | "
|
|
812
|
+
state: "unspecified" | "failed" | "pending" | "completed" | "skipped" | "submitting" | "submitted";
|
|
813
813
|
reason: AutoWithdrawStepReason | null;
|
|
814
814
|
}[];
|
|
815
815
|
createdAt: number;
|