@polyester/sdk 0.35.0-devnet-20261111161451 → 0.35.0-devnet-20261112024759

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.
Files changed (65) hide show
  1. package/CHANGELOG.md +3 -1
  2. package/dist/services/accounts/accounts.d.ts +1 -1
  3. package/dist/services/accounts/accounts.js +1 -1
  4. package/dist/services/accounts/accounts.js.map +1 -1
  5. package/dist/services/address-book/address-book.schemas.d.ts +2 -2
  6. package/dist/services/api-keys/api-keys.d.ts +2 -2
  7. package/dist/services/api-keys/api-keys.js +2 -2
  8. package/dist/services/api-keys/api-keys.js.map +1 -1
  9. package/dist/services/assistant/assistant-events.schemas.d.ts +144 -116
  10. package/dist/services/assistant/assistant-events.schemas.d.ts.map +1 -1
  11. package/dist/services/assistant/assistant.schemas.d.ts +1 -1
  12. package/dist/services/auth/profile/profile.d.ts +2 -2
  13. package/dist/services/auth/profile/profile.js +2 -2
  14. package/dist/services/auth/profile/profile.js.map +1 -1
  15. package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +22 -22
  16. package/dist/services/balances/balances.schemas.d.ts +3 -3
  17. package/dist/services/candles/candles.schemas.d.ts +10 -10
  18. package/dist/services/changelog/changelog.schemas.d.ts +17 -17
  19. package/dist/services/checkpoints/checkpoints.d.ts +2 -2
  20. package/dist/services/checkpoints/checkpoints.js +2 -2
  21. package/dist/services/checkpoints/checkpoints.js.map +1 -1
  22. package/dist/services/checkpoints/checkpoints.schemas.d.ts +1 -1
  23. package/dist/services/deposit/deposit.d.ts +2 -2
  24. package/dist/services/deposit/deposit.js +2 -2
  25. package/dist/services/deposit/deposit.js.map +1 -1
  26. package/dist/services/guard-signer/guard-signer.d.ts +1 -1
  27. package/dist/services/guard-signer/guard-signer.js +1 -1
  28. package/dist/services/guard-signer/guard-signer.js.map +1 -1
  29. package/dist/services/heatmap/heatmap.schemas.d.ts +13 -13
  30. package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +3 -3
  31. package/dist/services/lifecycle/lifecycle.schemas.d.ts +160 -160
  32. package/dist/services/market-overview/market-overview.schemas.d.ts +3 -3
  33. package/dist/services/orderbook/orderbook.schemas.d.ts +1 -1
  34. package/dist/services/orders/order-errors.schemas.d.ts +2 -2
  35. package/dist/services/orders/orders-batch.schemas.d.ts +59 -59
  36. package/dist/services/orders/orders-input.schemas.d.ts +7 -7
  37. package/dist/services/orders/orders-output.schemas.d.ts +24 -24
  38. package/dist/services/policies/api-key-policies/api-key-policies.d.ts +2 -2
  39. package/dist/services/policies/api-key-policies/api-key-policies.js +2 -2
  40. package/dist/services/policies/api-key-policies/api-key-policies.js.map +1 -1
  41. package/dist/services/policies/subaccount-policies/subaccount-policies.d.ts +2 -2
  42. package/dist/services/policies/subaccount-policies/subaccount-policies.js +2 -2
  43. package/dist/services/policies/subaccount-policies/subaccount-policies.js.map +1 -1
  44. package/dist/services/price-alerts/price-alerts.schemas.d.ts +11 -11
  45. package/dist/services/rewards/rewards.schemas.d.ts +4 -4
  46. package/dist/services/social-verification/social-verification.d.ts +1 -1
  47. package/dist/services/social-verification/social-verification.js +1 -1
  48. package/dist/services/social-verification/social-verification.js.map +1 -1
  49. package/dist/services/social-verification/social-verification.schemas.d.ts +1 -1
  50. package/dist/services/subaccounts/subaccounts.d.ts +6 -6
  51. package/dist/services/subaccounts/subaccounts.js +6 -6
  52. package/dist/services/subaccounts/subaccounts.js.map +1 -1
  53. package/dist/services/subaccounts/subaccounts.schemas.d.ts +22 -22
  54. package/dist/services/trades/trades.schemas.d.ts +1 -1
  55. package/dist/services/trading-withdraws/trading-withdraws.d.ts +1 -1
  56. package/dist/services/trading-withdraws/trading-withdraws.js +1 -1
  57. package/dist/services/trading-withdraws/trading-withdraws.js.map +1 -1
  58. package/dist/services/transfers/transfers.schemas.d.ts +1 -1
  59. package/dist/services/triggers/trigger-input.schemas.d.ts +2 -2
  60. package/dist/services/triggers/triggers-output.schemas.d.ts +37 -37
  61. package/dist/services/vip/vip.d.ts +1 -1
  62. package/dist/services/vip/vip.js +1 -1
  63. package/dist/services/vip/vip.js.map +1 -1
  64. package/dist/shared/rate-limit.schemas.d.ts +1 -1
  65. package/package.json +1 -1
@@ -17,7 +17,7 @@ declare function formatOrderPreview(o: OrderPreview): {
17
17
  reservedAmount: string | undefined;
18
18
  referencePrice: {
19
19
  price: string;
20
- source: "unspecified" | "last_price" | "index_price" | "best_bid" | "best_ask";
20
+ source: "unspecified" | "best_bid" | "best_ask" | "last_price" | "index_price";
21
21
  observedAt: number | undefined;
22
22
  } | undefined;
23
23
  /** The order type and its own values; `type: "unspecified"` means show the summary only. */
@@ -52,7 +52,7 @@ declare function formatOrderPreview(o: OrderPreview): {
52
52
  } | undefined;
53
53
  oco: boolean;
54
54
  } | undefined;
55
- readonly price?: undefined;
55
+ price?: undefined;
56
56
  timeInForce?: undefined;
57
57
  expireAt?: undefined;
58
58
  postOnly?: undefined;
@@ -132,7 +132,7 @@ declare function formatOrderPreview(o: OrderPreview): {
132
132
  fundsReserved: boolean;
133
133
  type: "stop_loss";
134
134
  attached?: undefined;
135
- readonly price?: undefined;
135
+ price?: undefined;
136
136
  expireAt?: undefined;
137
137
  trailingDistance?: undefined;
138
138
  activationPrice?: undefined;
@@ -157,7 +157,7 @@ declare function formatOrderPreview(o: OrderPreview): {
157
157
  fundsReserved: boolean;
158
158
  type: "take_profit";
159
159
  attached?: undefined;
160
- readonly price?: undefined;
160
+ price?: undefined;
161
161
  expireAt?: undefined;
162
162
  trailingDistance?: undefined;
163
163
  activationPrice?: undefined;
@@ -192,7 +192,7 @@ declare function formatOrderPreview(o: OrderPreview): {
192
192
  maxSlippageBps: number | undefined;
193
193
  fundsReserved: boolean;
194
194
  attached?: undefined;
195
- readonly price?: undefined;
195
+ price?: undefined;
196
196
  timeInForce?: undefined;
197
197
  expireAt?: undefined;
198
198
  postOnly?: undefined;
@@ -217,7 +217,7 @@ declare function formatOrderPreview(o: OrderPreview): {
217
217
  unfilledSlicePolicy: "unspecified" | "cancel_before_next";
218
218
  firstSliceImmediate: boolean;
219
219
  attached?: undefined;
220
- readonly price?: undefined;
220
+ price?: undefined;
221
221
  timeInForce?: undefined;
222
222
  expireAt?: undefined;
223
223
  postOnly?: undefined;
@@ -242,7 +242,7 @@ declare function formatOrderPreview(o: OrderPreview): {
242
242
  allLevelsAtOnce: boolean;
243
243
  maxSlippageBps?: undefined;
244
244
  attached?: undefined;
245
- readonly price?: undefined;
245
+ price?: undefined;
246
246
  expireAt?: undefined;
247
247
  trailingDistance?: undefined;
248
248
  activationPrice?: undefined;
@@ -259,7 +259,7 @@ declare function formatOrderPreview(o: OrderPreview): {
259
259
  type: "unspecified";
260
260
  maxSlippageBps?: undefined;
261
261
  attached?: undefined;
262
- readonly price?: undefined;
262
+ price?: undefined;
263
263
  timeInForce?: undefined;
264
264
  expireAt?: undefined;
265
265
  postOnly?: undefined;
@@ -287,7 +287,7 @@ declare function formatOrderPreview(o: OrderPreview): {
287
287
  offsetBps: number;
288
288
  reference: {
289
289
  price: string;
290
- source: "unspecified" | "last_price" | "index_price" | "best_bid" | "best_ask";
290
+ source: "unspecified" | "best_bid" | "best_ask" | "last_price" | "index_price";
291
291
  observedAt: number | undefined;
292
292
  type: "market";
293
293
  } | {
@@ -295,7 +295,7 @@ declare function formatOrderPreview(o: OrderPreview): {
295
295
  price: string;
296
296
  } | {
297
297
  type: "unspecified";
298
- readonly price?: undefined;
298
+ price?: undefined;
299
299
  };
300
300
  rounding: "unspecified" | "down" | "up";
301
301
  tickSize: string;
@@ -314,7 +314,7 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
314
314
  reservedAmount: string | undefined;
315
315
  referencePrice: {
316
316
  price: string;
317
- source: "unspecified" | "last_price" | "index_price" | "best_bid" | "best_ask";
317
+ source: "unspecified" | "best_bid" | "best_ask" | "last_price" | "index_price";
318
318
  observedAt: number | undefined;
319
319
  } | undefined;
320
320
  /** The order type and its own values; `type: "unspecified"` means show the summary only. */
@@ -349,7 +349,7 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
349
349
  } | undefined;
350
350
  oco: boolean;
351
351
  } | undefined;
352
- readonly price?: undefined;
352
+ price?: undefined;
353
353
  timeInForce?: undefined;
354
354
  expireAt?: undefined;
355
355
  postOnly?: undefined;
@@ -429,7 +429,7 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
429
429
  fundsReserved: boolean;
430
430
  type: "stop_loss";
431
431
  attached?: undefined;
432
- readonly price?: undefined;
432
+ price?: undefined;
433
433
  expireAt?: undefined;
434
434
  trailingDistance?: undefined;
435
435
  activationPrice?: undefined;
@@ -454,7 +454,7 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
454
454
  fundsReserved: boolean;
455
455
  type: "take_profit";
456
456
  attached?: undefined;
457
- readonly price?: undefined;
457
+ price?: undefined;
458
458
  expireAt?: undefined;
459
459
  trailingDistance?: undefined;
460
460
  activationPrice?: undefined;
@@ -489,7 +489,7 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
489
489
  maxSlippageBps: number | undefined;
490
490
  fundsReserved: boolean;
491
491
  attached?: undefined;
492
- readonly price?: undefined;
492
+ price?: undefined;
493
493
  timeInForce?: undefined;
494
494
  expireAt?: undefined;
495
495
  postOnly?: undefined;
@@ -514,7 +514,7 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
514
514
  unfilledSlicePolicy: "unspecified" | "cancel_before_next";
515
515
  firstSliceImmediate: boolean;
516
516
  attached?: undefined;
517
- readonly price?: undefined;
517
+ price?: undefined;
518
518
  timeInForce?: undefined;
519
519
  expireAt?: undefined;
520
520
  postOnly?: undefined;
@@ -539,7 +539,7 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
539
539
  allLevelsAtOnce: boolean;
540
540
  maxSlippageBps?: undefined;
541
541
  attached?: undefined;
542
- readonly price?: undefined;
542
+ price?: undefined;
543
543
  expireAt?: undefined;
544
544
  trailingDistance?: undefined;
545
545
  activationPrice?: undefined;
@@ -556,7 +556,7 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
556
556
  type: "unspecified";
557
557
  maxSlippageBps?: undefined;
558
558
  attached?: undefined;
559
- readonly price?: undefined;
559
+ price?: undefined;
560
560
  timeInForce?: undefined;
561
561
  expireAt?: undefined;
562
562
  postOnly?: undefined;
@@ -584,7 +584,7 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
584
584
  offsetBps: number;
585
585
  reference: {
586
586
  price: string;
587
- source: "unspecified" | "last_price" | "index_price" | "best_bid" | "best_ask";
587
+ source: "unspecified" | "best_bid" | "best_ask" | "last_price" | "index_price";
588
588
  observedAt: number | undefined;
589
589
  type: "market";
590
590
  } | {
@@ -592,7 +592,7 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
592
592
  price: string;
593
593
  } | {
594
594
  type: "unspecified";
595
- readonly price?: undefined;
595
+ price?: undefined;
596
596
  };
597
597
  rounding: "unspecified" | "down" | "up";
598
598
  tickSize: string;
@@ -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";
@@ -643,7 +644,7 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
643
644
  reservedAmount: string | undefined;
644
645
  referencePrice: {
645
646
  price: string;
646
- source: "unspecified" | "last_price" | "index_price" | "best_bid" | "best_ask";
647
+ source: "unspecified" | "best_bid" | "best_ask" | "last_price" | "index_price";
647
648
  observedAt: number | undefined;
648
649
  } | undefined;
649
650
  /** The order type and its own values; `type: "unspecified"` means show the summary only. */
@@ -678,7 +679,7 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
678
679
  } | undefined;
679
680
  oco: boolean;
680
681
  } | undefined;
681
- readonly price?: undefined;
682
+ price?: undefined;
682
683
  timeInForce?: undefined;
683
684
  expireAt?: undefined;
684
685
  postOnly?: undefined;
@@ -758,7 +759,7 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
758
759
  fundsReserved: boolean;
759
760
  type: "stop_loss";
760
761
  attached?: undefined;
761
- readonly price?: undefined;
762
+ price?: undefined;
762
763
  expireAt?: undefined;
763
764
  trailingDistance?: undefined;
764
765
  activationPrice?: undefined;
@@ -783,7 +784,7 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
783
784
  fundsReserved: boolean;
784
785
  type: "take_profit";
785
786
  attached?: undefined;
786
- readonly price?: undefined;
787
+ price?: undefined;
787
788
  expireAt?: undefined;
788
789
  trailingDistance?: undefined;
789
790
  activationPrice?: undefined;
@@ -818,7 +819,7 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
818
819
  maxSlippageBps: number | undefined;
819
820
  fundsReserved: boolean;
820
821
  attached?: undefined;
821
- readonly price?: undefined;
822
+ price?: undefined;
822
823
  timeInForce?: undefined;
823
824
  expireAt?: undefined;
824
825
  postOnly?: undefined;
@@ -843,7 +844,7 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
843
844
  unfilledSlicePolicy: "unspecified" | "cancel_before_next";
844
845
  firstSliceImmediate: boolean;
845
846
  attached?: undefined;
846
- readonly price?: undefined;
847
+ price?: undefined;
847
848
  timeInForce?: undefined;
848
849
  expireAt?: undefined;
849
850
  postOnly?: undefined;
@@ -868,7 +869,7 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
868
869
  allLevelsAtOnce: boolean;
869
870
  maxSlippageBps?: undefined;
870
871
  attached?: undefined;
871
- readonly price?: undefined;
872
+ price?: undefined;
872
873
  expireAt?: undefined;
873
874
  trailingDistance?: undefined;
874
875
  activationPrice?: undefined;
@@ -885,7 +886,7 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
885
886
  type: "unspecified";
886
887
  maxSlippageBps?: undefined;
887
888
  attached?: undefined;
888
- readonly price?: undefined;
889
+ price?: undefined;
889
890
  timeInForce?: undefined;
890
891
  expireAt?: undefined;
891
892
  postOnly?: undefined;
@@ -913,7 +914,7 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
913
914
  offsetBps: number;
914
915
  reference: {
915
916
  price: string;
916
- source: "unspecified" | "last_price" | "index_price" | "best_bid" | "best_ask";
917
+ source: "unspecified" | "best_bid" | "best_ask" | "last_price" | "index_price";
917
918
  observedAt: number | undefined;
918
919
  type: "market";
919
920
  } | {
@@ -921,7 +922,7 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
921
922
  price: string;
922
923
  } | {
923
924
  type: "unspecified";
924
- readonly price?: undefined;
925
+ price?: undefined;
925
926
  };
926
927
  rounding: "unspecified" | "down" | "up";
927
928
  tickSize: string;
@@ -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" | "failed" | "armed" | "canceled" | "completed" | "created" | "running" | "paused";
1082
+ status: "unspecified" | "completed" | "failed" | "paused" | "canceled" | "created" | "armed" | "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" | "failed" | "armed" | "canceled" | "completed" | "created" | "running" | "paused";
1106
+ status: "unspecified" | "completed" | "failed" | "paused" | "canceled" | "created" | "armed" | "running";
1103
1107
  triggerPrice: string | undefined;
1104
1108
  trailingDistance: {
1105
1109
  kind: "distance";
@@ -1124,7 +1128,7 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
1124
1128
  } | undefined;
1125
1129
  referencePrice: {
1126
1130
  price: string;
1127
- source: "unspecified" | "last_price" | "index_price" | "best_bid" | "best_ask";
1131
+ source: "unspecified" | "best_bid" | "best_ask" | "last_price" | "index_price";
1128
1132
  observedAt: number | undefined;
1129
1133
  } | undefined;
1130
1134
  direction: "unspecified" | "at_or_above" | "at_or_below";
@@ -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>;
@@ -1303,7 +1310,7 @@ declare function formatView(view: View, scales: SdkScales): {
1303
1310
  attachedRisk: {
1304
1311
  takeProfit: {
1305
1312
  state: {
1306
- status: "unspecified" | "failed" | "armed" | "canceled" | "completed" | "created" | "not_configured" | "running" | "paused";
1313
+ status: "unspecified" | "completed" | "failed" | "paused" | "canceled" | "created" | "armed" | "running" | "not_configured";
1307
1314
  armedTs: number | undefined;
1308
1315
  armedTsNs: string | undefined;
1309
1316
  terminalTs: number | undefined;
@@ -1314,7 +1321,7 @@ declare function formatView(view: View, scales: SdkScales): {
1314
1321
  triggerPrice?: string | undefined;
1315
1322
  execution?: {
1316
1323
  readonly type: "market_ioc";
1317
- readonly price?: undefined;
1324
+ price?: undefined;
1318
1325
  } | {
1319
1326
  readonly type: "limit_gtc";
1320
1327
  readonly price: string;
@@ -1323,7 +1330,7 @@ declare function formatView(view: View, scales: SdkScales): {
1323
1330
  } | undefined;
1324
1331
  stopLoss: {
1325
1332
  state: {
1326
- status: "unspecified" | "failed" | "armed" | "canceled" | "completed" | "created" | "not_configured" | "running" | "paused";
1333
+ status: "unspecified" | "completed" | "failed" | "paused" | "canceled" | "created" | "armed" | "running" | "not_configured";
1327
1334
  armedTs: number | undefined;
1328
1335
  armedTsNs: string | undefined;
1329
1336
  terminalTs: number | undefined;
@@ -1334,7 +1341,7 @@ declare function formatView(view: View, scales: SdkScales): {
1334
1341
  triggerPrice?: string | undefined;
1335
1342
  execution?: {
1336
1343
  readonly type: "market_ioc";
1337
- readonly price?: undefined;
1344
+ price?: undefined;
1338
1345
  } | {
1339
1346
  readonly type: "limit_gtc";
1340
1347
  readonly price: string;
@@ -1343,7 +1350,7 @@ declare function formatView(view: View, scales: SdkScales): {
1343
1350
  } | undefined;
1344
1351
  trailingStop: {
1345
1352
  state: {
1346
- status: "unspecified" | "failed" | "armed" | "canceled" | "completed" | "created" | "not_configured" | "running" | "paused";
1353
+ status: "unspecified" | "completed" | "failed" | "paused" | "canceled" | "created" | "armed" | "running" | "not_configured";
1347
1354
  armedTs: number | undefined;
1348
1355
  armedTsNs: string | undefined;
1349
1356
  terminalTs: number | undefined;
@@ -1374,7 +1381,7 @@ declare function formatView(view: View, scales: SdkScales): {
1374
1381
  oco: boolean;
1375
1382
  } | undefined;
1376
1383
  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" | undefined;
1377
- rejectReason?: "STALE_QUOTE" | "UNSPECIFIED" | "UNAUTHENTICATED" | "RATE_LIMIT_EXCEEDED" | "INTERNAL_ERROR" | "PERMISSION_DENIED" | "SUBACCOUNT_INACTIVE" | "BAD_REQUEST" | "INVALID_ARGUMENT" | "INSUFFICIENT_FUNDS" | "UNKNOWN_SYMBOL" | "BAD_PRICE" | "BAD_QTY" | "MIN_NOTIONAL" | "QTY_STEP_SIZE" | "CONFLICT_DUPLICATE_CLIENT_ORDER_ID" | "UNAVAILABLE" | "NOT_FOUND" | "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" | "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" | "MAX_QUOTE_DEBIT_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" | undefined;
1384
+ rejectReason?: "STALE_QUOTE" | "UNSPECIFIED" | "BAD_REQUEST" | "INVALID_ARGUMENT" | "INSUFFICIENT_FUNDS" | "UNKNOWN_SYMBOL" | "BAD_PRICE" | "BAD_QTY" | "MIN_NOTIONAL" | "QTY_STEP_SIZE" | "CONFLICT_DUPLICATE_CLIENT_ORDER_ID" | "UNAVAILABLE" | "UNAUTHENTICATED" | "PERMISSION_DENIED" | "NOT_FOUND" | "UPSTREAM_ERROR" | "FEE_ASSET_NOT_ALLOWED" | "PAIR_DISABLED" | "ORDER_UNKNOWN" | "INTERNAL_ERROR" | "SUBACCOUNT_INACTIVE" | "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" | "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" | "MAX_QUOTE_DEBIT_TOO_SMALL" | "RATE_LIMIT_EXCEEDED" | "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" | undefined;
1378
1385
  price: string;
1379
1386
  createdTs: number;
1380
1387
  terminalTs: number;
@@ -1385,7 +1392,7 @@ declare function formatView(view: View, scales: SdkScales): {
1385
1392
  } | undefined;
1386
1393
  symbolId: number;
1387
1394
  clientOrderId: string;
1388
- status: "unspecified" | "rejected" | "canceled" | "pending" | "pending_cancel" | "working" | "filled" | "partial";
1395
+ status: "unspecified" | "pending" | "canceled" | "rejected" | "pending_cancel" | "working" | "filled" | "partial";
1389
1396
  side: "unspecified" | "buy" | "sell";
1390
1397
  orderType: "unspecified" | "limit" | "market";
1391
1398
  timeInForce: "unspecified" | "gtc" | "ioc" | "fok" | "gtd";
@@ -1426,12 +1433,12 @@ declare function formatView(view: View, scales: SdkScales): {
1426
1433
  triggers: ({
1427
1434
  runtimeDetails: TriggerDetailsOutput;
1428
1435
  version: number;
1429
- cancelReason: "unspecified" | "oco" | "user_request" | "account_repair" | "market_halted" | "internal_error" | "parent_canceled_no_fill" | "self_trade_prevention" | "pair_drain_trigger" | "pair_drain_twap" | "pair_drain_ladder" | "pair_drain_attached_leg" | "missing_reason_code";
1436
+ cancelReason: "unspecified" | "internal_error" | "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";
1430
1437
  failureReason: undefined;
1431
1438
  triggerId: string;
1432
1439
  subaccountId: string;
1433
1440
  symbolId: number;
1434
- status: "unspecified" | "failed" | "armed" | "canceled" | "completed" | "created" | "running" | "paused";
1441
+ status: "unspecified" | "completed" | "failed" | "paused" | "canceled" | "created" | "armed" | "running";
1435
1442
  parentOrderId: string | undefined;
1436
1443
  qty: string;
1437
1444
  feeAsset: "unspecified" | "quote" | "base";
@@ -1456,7 +1463,7 @@ declare function formatView(view: View, scales: SdkScales): {
1456
1463
  slippage?: undefined;
1457
1464
  bps?: undefined;
1458
1465
  };
1459
- readonly price?: undefined;
1466
+ price?: undefined;
1460
1467
  postOnly?: undefined;
1461
1468
  } | {
1462
1469
  readonly type: "limit_gtc";
@@ -1476,7 +1483,7 @@ declare function formatView(view: View, scales: SdkScales): {
1476
1483
  } | {
1477
1484
  readonly type: "unspecified";
1478
1485
  readonly maxSlippage?: undefined;
1479
- readonly price?: undefined;
1486
+ price?: undefined;
1480
1487
  postOnly?: undefined;
1481
1488
  };
1482
1489
  trailingDistance?: undefined;
@@ -1549,7 +1556,7 @@ declare function formatView(view: View, scales: SdkScales): {
1549
1556
  slippage?: undefined;
1550
1557
  bps?: undefined;
1551
1558
  };
1552
- readonly price?: undefined;
1559
+ price?: undefined;
1553
1560
  } | {
1554
1561
  readonly type: "limit_gtc";
1555
1562
  readonly price: string;
@@ -1557,7 +1564,7 @@ declare function formatView(view: View, scales: SdkScales): {
1557
1564
  } | {
1558
1565
  readonly type: "unspecified";
1559
1566
  readonly maxSlippage?: undefined;
1560
- readonly price?: undefined;
1567
+ price?: undefined;
1561
1568
  };
1562
1569
  triggerPrice?: undefined;
1563
1570
  triggerPriceSource?: undefined;
@@ -1611,11 +1618,11 @@ declare function formatView(view: View, scales: SdkScales): {
1611
1618
  runtimeDetails: TriggerDetailsOutput;
1612
1619
  version: number;
1613
1620
  cancelReason: undefined;
1614
- failureReason: "unspecified" | "market_halted" | "internal_error" | "missing_reason_code" | "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" | "max_quote_debit_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";
1621
+ failureReason: "unspecified" | "internal_error" | "market_halted" | "missing_reason_code" | "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" | "max_quote_debit_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";
1615
1622
  triggerId: string;
1616
1623
  subaccountId: string;
1617
1624
  symbolId: number;
1618
- status: "unspecified" | "failed" | "armed" | "canceled" | "completed" | "created" | "running" | "paused";
1625
+ status: "unspecified" | "completed" | "failed" | "paused" | "canceled" | "created" | "armed" | "running";
1619
1626
  parentOrderId: string | undefined;
1620
1627
  qty: string;
1621
1628
  feeAsset: "unspecified" | "quote" | "base";
@@ -1640,7 +1647,7 @@ declare function formatView(view: View, scales: SdkScales): {
1640
1647
  slippage?: undefined;
1641
1648
  bps?: undefined;
1642
1649
  };
1643
- readonly price?: undefined;
1650
+ price?: undefined;
1644
1651
  postOnly?: undefined;
1645
1652
  } | {
1646
1653
  readonly type: "limit_gtc";
@@ -1660,7 +1667,7 @@ declare function formatView(view: View, scales: SdkScales): {
1660
1667
  } | {
1661
1668
  readonly type: "unspecified";
1662
1669
  readonly maxSlippage?: undefined;
1663
- readonly price?: undefined;
1670
+ price?: undefined;
1664
1671
  postOnly?: undefined;
1665
1672
  };
1666
1673
  trailingDistance?: undefined;
@@ -1733,7 +1740,7 @@ declare function formatView(view: View, scales: SdkScales): {
1733
1740
  slippage?: undefined;
1734
1741
  bps?: undefined;
1735
1742
  };
1736
- readonly price?: undefined;
1743
+ price?: undefined;
1737
1744
  } | {
1738
1745
  readonly type: "limit_gtc";
1739
1746
  readonly price: string;
@@ -1741,7 +1748,7 @@ declare function formatView(view: View, scales: SdkScales): {
1741
1748
  } | {
1742
1749
  readonly type: "unspecified";
1743
1750
  readonly maxSlippage?: undefined;
1744
- readonly price?: undefined;
1751
+ price?: undefined;
1745
1752
  };
1746
1753
  triggerPrice?: undefined;
1747
1754
  triggerPriceSource?: undefined;
@@ -1799,7 +1806,7 @@ declare function formatView(view: View, scales: SdkScales): {
1799
1806
  triggerId: string;
1800
1807
  subaccountId: string;
1801
1808
  symbolId: number;
1802
- status: "unspecified" | "failed" | "armed" | "canceled" | "completed" | "created" | "running" | "paused";
1809
+ status: "unspecified" | "completed" | "failed" | "paused" | "canceled" | "created" | "armed" | "running";
1803
1810
  parentOrderId: string | undefined;
1804
1811
  qty: string;
1805
1812
  feeAsset: "unspecified" | "quote" | "base";
@@ -1824,7 +1831,7 @@ declare function formatView(view: View, scales: SdkScales): {
1824
1831
  slippage?: undefined;
1825
1832
  bps?: undefined;
1826
1833
  };
1827
- readonly price?: undefined;
1834
+ price?: undefined;
1828
1835
  postOnly?: undefined;
1829
1836
  } | {
1830
1837
  readonly type: "limit_gtc";
@@ -1844,7 +1851,7 @@ declare function formatView(view: View, scales: SdkScales): {
1844
1851
  } | {
1845
1852
  readonly type: "unspecified";
1846
1853
  readonly maxSlippage?: undefined;
1847
- readonly price?: undefined;
1854
+ price?: undefined;
1848
1855
  postOnly?: undefined;
1849
1856
  };
1850
1857
  trailingDistance?: undefined;
@@ -1917,7 +1924,7 @@ declare function formatView(view: View, scales: SdkScales): {
1917
1924
  slippage?: undefined;
1918
1925
  bps?: undefined;
1919
1926
  };
1920
- readonly price?: undefined;
1927
+ price?: undefined;
1921
1928
  } | {
1922
1929
  readonly type: "limit_gtc";
1923
1930
  readonly price: string;
@@ -1925,7 +1932,7 @@ declare function formatView(view: View, scales: SdkScales): {
1925
1932
  } | {
1926
1933
  readonly type: "unspecified";
1927
1934
  readonly maxSlippage?: undefined;
1928
- readonly price?: undefined;
1935
+ price?: undefined;
1929
1936
  };
1930
1937
  triggerPrice?: undefined;
1931
1938
  triggerPriceSource?: undefined;
@@ -2021,10 +2028,10 @@ declare function formatView(view: View, scales: SdkScales): {
2021
2028
  } | {
2022
2029
  type: "price_chart";
2023
2030
  symbolId: number;
2024
- timeframe: "unspecified" | "1d" | "1h" | "1w" | "1m" | "1s" | "5m" | "3m" | "15m" | "30m" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1mo";
2031
+ timeframe: "unspecified" | "1d" | "1s" | "1m" | "3m" | "5m" | "15m" | "30m" | "1h" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1w" | "1mo";
2025
2032
  candles: {
2026
2033
  symbolId: number;
2027
- timeframe: DecodedEnum<"1d" | "1h" | "1w" | "1m" | "1s" | "5m" | "3m" | "15m" | "30m" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1mo">;
2034
+ timeframe: DecodedEnum<"1d" | "1s" | "1m" | "3m" | "5m" | "15m" | "30m" | "1h" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1w" | "1mo">;
2028
2035
  time: number;
2029
2036
  open: string;
2030
2037
  high: string;
@@ -2078,7 +2085,7 @@ declare function formatView(view: View, scales: SdkScales): {
2078
2085
  referencePrice: string;
2079
2086
  armed: boolean;
2080
2087
  status: "unspecified" | "active" | "triggered" | "cancelled";
2081
- channels: ("unspecified" | "in_app" | "telegram")[];
2088
+ channels: ("unspecified" | "telegram" | "in_app")[];
2082
2089
  revision: string;
2083
2090
  createdAt: number | null;
2084
2091
  updatedAt: number | null;
@@ -2133,7 +2140,7 @@ declare function formatView(view: View, scales: SdkScales): {
2133
2140
  points: number;
2134
2141
  series: {
2135
2142
  assetId: number;
2136
- accountCode: "unspecified" | "funding" | "trading";
2143
+ accountCode: "unspecified" | "trading" | "funding";
2137
2144
  balance: string[];
2138
2145
  }[];
2139
2146
  } | undefined;
@@ -2204,7 +2211,7 @@ declare function formatView(view: View, scales: SdkScales): {
2204
2211
  amount: string;
2205
2212
  balanceAfter: string | undefined;
2206
2213
  type: "unspecified" | "internal_transfer" | "deposit" | "withdraw" | "maker_fee" | "taker_fee" | "trade_base" | "trade_quote" | "rebate" | "funding_to_trading" | "trading_to_funding" | "trading_withdraw_reserve" | "funding_user_transfer" | "trading_withdraw_request_fee" | "trading_withdraw_fee_leg" | "quickswap_polyester_fee" | "quickswap_broker_fee" | "quickswap_affiliate_fee" | "fee_sweep" | "fee_refill" | "system_adjustment" | "withdraw_failed";
2207
- accountCode: "unspecified" | "funding" | "trading";
2214
+ accountCode: "unspecified" | "trading" | "funding";
2208
2215
  timestamp: number;
2209
2216
  isDebit: boolean;
2210
2217
  linkId: string | undefined;
@@ -2261,6 +2268,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
2261
2268
  subagentId?: undefined;
2262
2269
  summary?: undefined;
2263
2270
  approvalId?: undefined;
2271
+ /** Approving after this executes nothing. */
2264
2272
  expiresAt?: undefined;
2265
2273
  parameters?: undefined;
2266
2274
  accountId?: undefined;
@@ -2288,6 +2296,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
2288
2296
  subagentId?: undefined;
2289
2297
  summary?: undefined;
2290
2298
  approvalId?: undefined;
2299
+ /** Approving after this executes nothing. */
2291
2300
  expiresAt?: undefined;
2292
2301
  parameters?: undefined;
2293
2302
  accountId?: undefined;
@@ -2315,6 +2324,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
2315
2324
  subagentId?: undefined;
2316
2325
  summary?: undefined;
2317
2326
  approvalId?: undefined;
2327
+ /** Approving after this executes nothing. */
2318
2328
  expiresAt?: undefined;
2319
2329
  parameters?: undefined;
2320
2330
  accountId?: undefined;
@@ -2342,6 +2352,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
2342
2352
  subagentId?: undefined;
2343
2353
  summary?: undefined;
2344
2354
  approvalId?: undefined;
2355
+ /** Approving after this executes nothing. */
2345
2356
  expiresAt?: undefined;
2346
2357
  parameters?: undefined;
2347
2358
  accountId?: undefined;
@@ -2361,7 +2372,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
2361
2372
  memories: {
2362
2373
  memoryId: string;
2363
2374
  text: string;
2364
- kind: "unspecified" | "fact" | "planning_figure" | "profile";
2375
+ kind: "unspecified" | "profile" | "fact" | "planning_figure";
2365
2376
  }[];
2366
2377
  text?: undefined;
2367
2378
  fromSeq?: undefined;
@@ -2373,6 +2384,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
2373
2384
  subagentId?: undefined;
2374
2385
  summary?: undefined;
2375
2386
  approvalId?: undefined;
2387
+ /** Approving after this executes nothing. */
2376
2388
  expiresAt?: undefined;
2377
2389
  parameters?: undefined;
2378
2390
  accountId?: undefined;
@@ -2400,6 +2412,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
2400
2412
  subagentId?: undefined;
2401
2413
  summary?: undefined;
2402
2414
  approvalId?: undefined;
2415
+ /** Approving after this executes nothing. */
2403
2416
  expiresAt?: undefined;
2404
2417
  parameters?: undefined;
2405
2418
  accountId?: undefined;
@@ -2427,6 +2440,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
2427
2440
  subagentId?: undefined;
2428
2441
  summary?: undefined;
2429
2442
  approvalId?: undefined;
2443
+ /** Approving after this executes nothing. */
2430
2444
  expiresAt?: undefined;
2431
2445
  parameters?: undefined;
2432
2446
  accountId?: undefined;
@@ -2454,6 +2468,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
2454
2468
  destinationIds?: undefined;
2455
2469
  summary?: undefined;
2456
2470
  approvalId?: undefined;
2471
+ /** Approving after this executes nothing. */
2457
2472
  expiresAt?: undefined;
2458
2473
  parameters?: undefined;
2459
2474
  accountId?: undefined;
@@ -2481,6 +2496,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
2481
2496
  memories?: undefined;
2482
2497
  destinationIds?: undefined;
2483
2498
  approvalId?: undefined;
2499
+ /** Approving after this executes nothing. */
2484
2500
  expiresAt?: undefined;
2485
2501
  parameters?: undefined;
2486
2502
  accountId?: undefined;
@@ -2517,7 +2533,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
2517
2533
  reservedAmount: string | undefined;
2518
2534
  referencePrice: {
2519
2535
  price: string;
2520
- source: "unspecified" | "last_price" | "index_price" | "best_bid" | "best_ask";
2536
+ source: "unspecified" | "best_bid" | "best_ask" | "last_price" | "index_price";
2521
2537
  observedAt: number | undefined;
2522
2538
  } | undefined;
2523
2539
  /** The order type and its own values; `type: "unspecified"` means show the summary only. */
@@ -2552,7 +2568,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
2552
2568
  } | undefined;
2553
2569
  oco: boolean;
2554
2570
  } | undefined;
2555
- readonly price?: undefined;
2571
+ price?: undefined;
2556
2572
  timeInForce?: undefined;
2557
2573
  expireAt?: undefined;
2558
2574
  postOnly?: undefined;
@@ -2632,7 +2648,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
2632
2648
  fundsReserved: boolean;
2633
2649
  type: "stop_loss";
2634
2650
  attached?: undefined;
2635
- readonly price?: undefined;
2651
+ price?: undefined;
2636
2652
  expireAt?: undefined;
2637
2653
  trailingDistance?: undefined;
2638
2654
  activationPrice?: undefined;
@@ -2657,7 +2673,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
2657
2673
  fundsReserved: boolean;
2658
2674
  type: "take_profit";
2659
2675
  attached?: undefined;
2660
- readonly price?: undefined;
2676
+ price?: undefined;
2661
2677
  expireAt?: undefined;
2662
2678
  trailingDistance?: undefined;
2663
2679
  activationPrice?: undefined;
@@ -2692,7 +2708,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
2692
2708
  maxSlippageBps: number | undefined;
2693
2709
  fundsReserved: boolean;
2694
2710
  attached?: undefined;
2695
- readonly price?: undefined;
2711
+ price?: undefined;
2696
2712
  timeInForce?: undefined;
2697
2713
  expireAt?: undefined;
2698
2714
  postOnly?: undefined;
@@ -2717,7 +2733,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
2717
2733
  unfilledSlicePolicy: "unspecified" | "cancel_before_next";
2718
2734
  firstSliceImmediate: boolean;
2719
2735
  attached?: undefined;
2720
- readonly price?: undefined;
2736
+ price?: undefined;
2721
2737
  timeInForce?: undefined;
2722
2738
  expireAt?: undefined;
2723
2739
  postOnly?: undefined;
@@ -2742,7 +2758,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
2742
2758
  allLevelsAtOnce: boolean;
2743
2759
  maxSlippageBps?: undefined;
2744
2760
  attached?: undefined;
2745
- readonly price?: undefined;
2761
+ price?: undefined;
2746
2762
  expireAt?: undefined;
2747
2763
  trailingDistance?: undefined;
2748
2764
  activationPrice?: undefined;
@@ -2759,7 +2775,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
2759
2775
  type: "unspecified";
2760
2776
  maxSlippageBps?: undefined;
2761
2777
  attached?: undefined;
2762
- readonly price?: undefined;
2778
+ price?: undefined;
2763
2779
  timeInForce?: undefined;
2764
2780
  expireAt?: undefined;
2765
2781
  postOnly?: undefined;
@@ -2787,7 +2803,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
2787
2803
  offsetBps: number;
2788
2804
  reference: {
2789
2805
  price: string;
2790
- source: "unspecified" | "last_price" | "index_price" | "best_bid" | "best_ask";
2806
+ source: "unspecified" | "best_bid" | "best_ask" | "last_price" | "index_price";
2791
2807
  observedAt: number | undefined;
2792
2808
  type: "market";
2793
2809
  } | {
@@ -2795,7 +2811,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
2795
2811
  price: string;
2796
2812
  } | {
2797
2813
  type: "unspecified";
2798
- readonly price?: undefined;
2814
+ price?: undefined;
2799
2815
  };
2800
2816
  rounding: "unspecified" | "down" | "up";
2801
2817
  tickSize: string;
@@ -2831,6 +2847,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
2831
2847
  maxSlippageBps?: undefined;
2832
2848
  legs?: undefined;
2833
2849
  quotedAt?: undefined;
2850
+ /** Approving after this executes nothing. */
2834
2851
  expiresAt?: undefined;
2835
2852
  } | {
2836
2853
  type: "place_orders";
@@ -2846,7 +2863,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
2846
2863
  reservedAmount: string | undefined;
2847
2864
  referencePrice: {
2848
2865
  price: string;
2849
- source: "unspecified" | "last_price" | "index_price" | "best_bid" | "best_ask";
2866
+ source: "unspecified" | "best_bid" | "best_ask" | "last_price" | "index_price";
2850
2867
  observedAt: number | undefined;
2851
2868
  } | undefined;
2852
2869
  /** The order type and its own values; `type: "unspecified"` means show the summary only. */
@@ -2881,7 +2898,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
2881
2898
  } | undefined;
2882
2899
  oco: boolean;
2883
2900
  } | undefined;
2884
- readonly price?: undefined;
2901
+ price?: undefined;
2885
2902
  timeInForce?: undefined;
2886
2903
  expireAt?: undefined;
2887
2904
  postOnly?: undefined;
@@ -2961,7 +2978,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
2961
2978
  fundsReserved: boolean;
2962
2979
  type: "stop_loss";
2963
2980
  attached?: undefined;
2964
- readonly price?: undefined;
2981
+ price?: undefined;
2965
2982
  expireAt?: undefined;
2966
2983
  trailingDistance?: undefined;
2967
2984
  activationPrice?: undefined;
@@ -2986,7 +3003,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
2986
3003
  fundsReserved: boolean;
2987
3004
  type: "take_profit";
2988
3005
  attached?: undefined;
2989
- readonly price?: undefined;
3006
+ price?: undefined;
2990
3007
  expireAt?: undefined;
2991
3008
  trailingDistance?: undefined;
2992
3009
  activationPrice?: undefined;
@@ -3021,7 +3038,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
3021
3038
  maxSlippageBps: number | undefined;
3022
3039
  fundsReserved: boolean;
3023
3040
  attached?: undefined;
3024
- readonly price?: undefined;
3041
+ price?: undefined;
3025
3042
  timeInForce?: undefined;
3026
3043
  expireAt?: undefined;
3027
3044
  postOnly?: undefined;
@@ -3046,7 +3063,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
3046
3063
  unfilledSlicePolicy: "unspecified" | "cancel_before_next";
3047
3064
  firstSliceImmediate: boolean;
3048
3065
  attached?: undefined;
3049
- readonly price?: undefined;
3066
+ price?: undefined;
3050
3067
  timeInForce?: undefined;
3051
3068
  expireAt?: undefined;
3052
3069
  postOnly?: undefined;
@@ -3071,7 +3088,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
3071
3088
  allLevelsAtOnce: boolean;
3072
3089
  maxSlippageBps?: undefined;
3073
3090
  attached?: undefined;
3074
- readonly price?: undefined;
3091
+ price?: undefined;
3075
3092
  expireAt?: undefined;
3076
3093
  trailingDistance?: undefined;
3077
3094
  activationPrice?: undefined;
@@ -3088,7 +3105,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
3088
3105
  type: "unspecified";
3089
3106
  maxSlippageBps?: undefined;
3090
3107
  attached?: undefined;
3091
- readonly price?: undefined;
3108
+ price?: undefined;
3092
3109
  timeInForce?: undefined;
3093
3110
  expireAt?: undefined;
3094
3111
  postOnly?: undefined;
@@ -3116,7 +3133,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
3116
3133
  offsetBps: number;
3117
3134
  reference: {
3118
3135
  price: string;
3119
- source: "unspecified" | "last_price" | "index_price" | "best_bid" | "best_ask";
3136
+ source: "unspecified" | "best_bid" | "best_ask" | "last_price" | "index_price";
3120
3137
  observedAt: number | undefined;
3121
3138
  type: "market";
3122
3139
  } | {
@@ -3124,7 +3141,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
3124
3141
  price: string;
3125
3142
  } | {
3126
3143
  type: "unspecified";
3127
- readonly price?: undefined;
3144
+ price?: undefined;
3128
3145
  };
3129
3146
  rounding: "unspecified" | "down" | "up";
3130
3147
  tickSize: string;
@@ -3169,6 +3186,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
3169
3186
  maxSlippageBps?: undefined;
3170
3187
  legs?: undefined;
3171
3188
  quotedAt?: undefined;
3189
+ /** Approving after this executes nothing. */
3172
3190
  expiresAt?: undefined;
3173
3191
  } | {
3174
3192
  type: "cancel_orders";
@@ -3216,6 +3234,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
3216
3234
  maxSlippageBps?: undefined;
3217
3235
  legs?: undefined;
3218
3236
  quotedAt?: undefined;
3237
+ /** Approving after this executes nothing. */
3219
3238
  expiresAt?: undefined;
3220
3239
  } | {
3221
3240
  type: "order_change";
@@ -3265,6 +3284,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
3265
3284
  maxSlippageBps?: undefined;
3266
3285
  legs?: undefined;
3267
3286
  quotedAt?: undefined;
3287
+ /** Approving after this executes nothing. */
3268
3288
  expiresAt?: undefined;
3269
3289
  } | {
3270
3290
  type: "trigger_change";
@@ -3278,7 +3298,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
3278
3298
  quantity: string;
3279
3299
  action: "unspecified" | "pause" | "modify" | "resume";
3280
3300
  before: {
3281
- status: "unspecified" | "failed" | "armed" | "canceled" | "completed" | "created" | "running" | "paused";
3301
+ status: "unspecified" | "completed" | "failed" | "paused" | "canceled" | "created" | "armed" | "running";
3282
3302
  triggerPrice: string | undefined;
3283
3303
  trailingDistance: {
3284
3304
  kind: "distance";
@@ -3302,7 +3322,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
3302
3322
  limitPrice: string | undefined;
3303
3323
  } | undefined;
3304
3324
  after: {
3305
- status: "unspecified" | "failed" | "armed" | "canceled" | "completed" | "created" | "running" | "paused";
3325
+ status: "unspecified" | "completed" | "failed" | "paused" | "canceled" | "created" | "armed" | "running";
3306
3326
  triggerPrice: string | undefined;
3307
3327
  trailingDistance: {
3308
3328
  kind: "distance";
@@ -3327,7 +3347,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
3327
3347
  } | undefined;
3328
3348
  referencePrice: {
3329
3349
  price: string;
3330
- source: "unspecified" | "last_price" | "index_price" | "best_bid" | "best_ask";
3350
+ source: "unspecified" | "best_bid" | "best_ask" | "last_price" | "index_price";
3331
3351
  observedAt: number | undefined;
3332
3352
  } | undefined;
3333
3353
  direction: "unspecified" | "at_or_above" | "at_or_below";
@@ -3355,6 +3375,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
3355
3375
  maxSlippageBps?: undefined;
3356
3376
  legs?: undefined;
3357
3377
  quotedAt?: undefined;
3378
+ /** Approving after this executes nothing. */
3358
3379
  expiresAt?: undefined;
3359
3380
  } | {
3360
3381
  type: "cancel_trigger";
@@ -3395,6 +3416,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
3395
3416
  maxSlippageBps?: undefined;
3396
3417
  legs?: undefined;
3397
3418
  quotedAt?: undefined;
3419
+ /** Approving after this executes nothing. */
3398
3420
  expiresAt?: undefined;
3399
3421
  } | {
3400
3422
  type: "swap";
@@ -3484,6 +3506,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
3484
3506
  maxSlippageBps?: undefined;
3485
3507
  legs?: undefined;
3486
3508
  quotedAt?: undefined;
3509
+ /** Approving after this executes nothing. */
3487
3510
  expiresAt?: undefined;
3488
3511
  };
3489
3512
  text?: undefined;
@@ -3507,7 +3530,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
3507
3530
  } | {
3508
3531
  type: "approval_resolved";
3509
3532
  approvalId: string;
3510
- status: "unspecified" | "rejected" | "pending" | "expired" | "approved";
3533
+ status: "unspecified" | "pending" | "expired" | "approved" | "rejected";
3511
3534
  text?: undefined;
3512
3535
  fromSeq?: undefined;
3513
3536
  toolCallId?: undefined;
@@ -3519,6 +3542,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
3519
3542
  destinationIds?: undefined;
3520
3543
  subagentId?: undefined;
3521
3544
  summary?: undefined;
3545
+ /** Approving after this executes nothing. */
3522
3546
  expiresAt?: undefined;
3523
3547
  parameters?: undefined;
3524
3548
  accountId?: undefined;
@@ -3552,7 +3576,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
3552
3576
  attachedRisk: {
3553
3577
  takeProfit: {
3554
3578
  state: {
3555
- status: "unspecified" | "failed" | "armed" | "canceled" | "completed" | "created" | "not_configured" | "running" | "paused";
3579
+ status: "unspecified" | "completed" | "failed" | "paused" | "canceled" | "created" | "armed" | "running" | "not_configured";
3556
3580
  armedTs: number | undefined;
3557
3581
  armedTsNs: string | undefined;
3558
3582
  terminalTs: number | undefined;
@@ -3563,7 +3587,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
3563
3587
  triggerPrice?: string | undefined;
3564
3588
  execution?: {
3565
3589
  readonly type: "market_ioc";
3566
- readonly price?: undefined;
3590
+ price?: undefined;
3567
3591
  } | {
3568
3592
  readonly type: "limit_gtc";
3569
3593
  readonly price: string;
@@ -3572,7 +3596,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
3572
3596
  } | undefined;
3573
3597
  stopLoss: {
3574
3598
  state: {
3575
- status: "unspecified" | "failed" | "armed" | "canceled" | "completed" | "created" | "not_configured" | "running" | "paused";
3599
+ status: "unspecified" | "completed" | "failed" | "paused" | "canceled" | "created" | "armed" | "running" | "not_configured";
3576
3600
  armedTs: number | undefined;
3577
3601
  armedTsNs: string | undefined;
3578
3602
  terminalTs: number | undefined;
@@ -3583,7 +3607,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
3583
3607
  triggerPrice?: string | undefined;
3584
3608
  execution?: {
3585
3609
  readonly type: "market_ioc";
3586
- readonly price?: undefined;
3610
+ price?: undefined;
3587
3611
  } | {
3588
3612
  readonly type: "limit_gtc";
3589
3613
  readonly price: string;
@@ -3592,7 +3616,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
3592
3616
  } | undefined;
3593
3617
  trailingStop: {
3594
3618
  state: {
3595
- status: "unspecified" | "failed" | "armed" | "canceled" | "completed" | "created" | "not_configured" | "running" | "paused";
3619
+ status: "unspecified" | "completed" | "failed" | "paused" | "canceled" | "created" | "armed" | "running" | "not_configured";
3596
3620
  armedTs: number | undefined;
3597
3621
  armedTsNs: string | undefined;
3598
3622
  terminalTs: number | undefined;
@@ -3623,7 +3647,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
3623
3647
  oco: boolean;
3624
3648
  } | undefined;
3625
3649
  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" | undefined;
3626
- rejectReason?: "STALE_QUOTE" | "UNSPECIFIED" | "UNAUTHENTICATED" | "RATE_LIMIT_EXCEEDED" | "INTERNAL_ERROR" | "PERMISSION_DENIED" | "SUBACCOUNT_INACTIVE" | "BAD_REQUEST" | "INVALID_ARGUMENT" | "INSUFFICIENT_FUNDS" | "UNKNOWN_SYMBOL" | "BAD_PRICE" | "BAD_QTY" | "MIN_NOTIONAL" | "QTY_STEP_SIZE" | "CONFLICT_DUPLICATE_CLIENT_ORDER_ID" | "UNAVAILABLE" | "NOT_FOUND" | "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" | "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" | "MAX_QUOTE_DEBIT_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" | undefined;
3650
+ rejectReason?: "STALE_QUOTE" | "UNSPECIFIED" | "BAD_REQUEST" | "INVALID_ARGUMENT" | "INSUFFICIENT_FUNDS" | "UNKNOWN_SYMBOL" | "BAD_PRICE" | "BAD_QTY" | "MIN_NOTIONAL" | "QTY_STEP_SIZE" | "CONFLICT_DUPLICATE_CLIENT_ORDER_ID" | "UNAVAILABLE" | "UNAUTHENTICATED" | "PERMISSION_DENIED" | "NOT_FOUND" | "UPSTREAM_ERROR" | "FEE_ASSET_NOT_ALLOWED" | "PAIR_DISABLED" | "ORDER_UNKNOWN" | "INTERNAL_ERROR" | "SUBACCOUNT_INACTIVE" | "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" | "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" | "MAX_QUOTE_DEBIT_TOO_SMALL" | "RATE_LIMIT_EXCEEDED" | "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" | undefined;
3627
3651
  price: string;
3628
3652
  createdTs: number;
3629
3653
  terminalTs: number;
@@ -3634,7 +3658,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
3634
3658
  } | undefined;
3635
3659
  symbolId: number;
3636
3660
  clientOrderId: string;
3637
- status: "unspecified" | "rejected" | "canceled" | "pending" | "pending_cancel" | "working" | "filled" | "partial";
3661
+ status: "unspecified" | "pending" | "canceled" | "rejected" | "pending_cancel" | "working" | "filled" | "partial";
3638
3662
  side: "unspecified" | "buy" | "sell";
3639
3663
  orderType: "unspecified" | "limit" | "market";
3640
3664
  timeInForce: "unspecified" | "gtc" | "ioc" | "fok" | "gtd";
@@ -3675,12 +3699,12 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
3675
3699
  triggers: ({
3676
3700
  runtimeDetails: TriggerDetailsOutput;
3677
3701
  version: number;
3678
- cancelReason: "unspecified" | "oco" | "user_request" | "account_repair" | "market_halted" | "internal_error" | "parent_canceled_no_fill" | "self_trade_prevention" | "pair_drain_trigger" | "pair_drain_twap" | "pair_drain_ladder" | "pair_drain_attached_leg" | "missing_reason_code";
3702
+ cancelReason: "unspecified" | "internal_error" | "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";
3679
3703
  failureReason: undefined;
3680
3704
  triggerId: string;
3681
3705
  subaccountId: string;
3682
3706
  symbolId: number;
3683
- status: "unspecified" | "failed" | "armed" | "canceled" | "completed" | "created" | "running" | "paused";
3707
+ status: "unspecified" | "completed" | "failed" | "paused" | "canceled" | "created" | "armed" | "running";
3684
3708
  parentOrderId: string | undefined;
3685
3709
  qty: string;
3686
3710
  feeAsset: "unspecified" | "quote" | "base";
@@ -3705,7 +3729,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
3705
3729
  slippage?: undefined;
3706
3730
  bps?: undefined;
3707
3731
  };
3708
- readonly price?: undefined;
3732
+ price?: undefined;
3709
3733
  postOnly?: undefined;
3710
3734
  } | {
3711
3735
  readonly type: "limit_gtc";
@@ -3725,7 +3749,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
3725
3749
  } | {
3726
3750
  readonly type: "unspecified";
3727
3751
  readonly maxSlippage?: undefined;
3728
- readonly price?: undefined;
3752
+ price?: undefined;
3729
3753
  postOnly?: undefined;
3730
3754
  };
3731
3755
  trailingDistance?: undefined;
@@ -3798,7 +3822,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
3798
3822
  slippage?: undefined;
3799
3823
  bps?: undefined;
3800
3824
  };
3801
- readonly price?: undefined;
3825
+ price?: undefined;
3802
3826
  } | {
3803
3827
  readonly type: "limit_gtc";
3804
3828
  readonly price: string;
@@ -3806,7 +3830,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
3806
3830
  } | {
3807
3831
  readonly type: "unspecified";
3808
3832
  readonly maxSlippage?: undefined;
3809
- readonly price?: undefined;
3833
+ price?: undefined;
3810
3834
  };
3811
3835
  triggerPrice?: undefined;
3812
3836
  triggerPriceSource?: undefined;
@@ -3860,11 +3884,11 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
3860
3884
  runtimeDetails: TriggerDetailsOutput;
3861
3885
  version: number;
3862
3886
  cancelReason: undefined;
3863
- failureReason: "unspecified" | "market_halted" | "internal_error" | "missing_reason_code" | "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" | "max_quote_debit_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";
3887
+ failureReason: "unspecified" | "internal_error" | "market_halted" | "missing_reason_code" | "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" | "max_quote_debit_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";
3864
3888
  triggerId: string;
3865
3889
  subaccountId: string;
3866
3890
  symbolId: number;
3867
- status: "unspecified" | "failed" | "armed" | "canceled" | "completed" | "created" | "running" | "paused";
3891
+ status: "unspecified" | "completed" | "failed" | "paused" | "canceled" | "created" | "armed" | "running";
3868
3892
  parentOrderId: string | undefined;
3869
3893
  qty: string;
3870
3894
  feeAsset: "unspecified" | "quote" | "base";
@@ -3889,7 +3913,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
3889
3913
  slippage?: undefined;
3890
3914
  bps?: undefined;
3891
3915
  };
3892
- readonly price?: undefined;
3916
+ price?: undefined;
3893
3917
  postOnly?: undefined;
3894
3918
  } | {
3895
3919
  readonly type: "limit_gtc";
@@ -3909,7 +3933,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
3909
3933
  } | {
3910
3934
  readonly type: "unspecified";
3911
3935
  readonly maxSlippage?: undefined;
3912
- readonly price?: undefined;
3936
+ price?: undefined;
3913
3937
  postOnly?: undefined;
3914
3938
  };
3915
3939
  trailingDistance?: undefined;
@@ -3982,7 +4006,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
3982
4006
  slippage?: undefined;
3983
4007
  bps?: undefined;
3984
4008
  };
3985
- readonly price?: undefined;
4009
+ price?: undefined;
3986
4010
  } | {
3987
4011
  readonly type: "limit_gtc";
3988
4012
  readonly price: string;
@@ -3990,7 +4014,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
3990
4014
  } | {
3991
4015
  readonly type: "unspecified";
3992
4016
  readonly maxSlippage?: undefined;
3993
- readonly price?: undefined;
4017
+ price?: undefined;
3994
4018
  };
3995
4019
  triggerPrice?: undefined;
3996
4020
  triggerPriceSource?: undefined;
@@ -4048,7 +4072,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
4048
4072
  triggerId: string;
4049
4073
  subaccountId: string;
4050
4074
  symbolId: number;
4051
- status: "unspecified" | "failed" | "armed" | "canceled" | "completed" | "created" | "running" | "paused";
4075
+ status: "unspecified" | "completed" | "failed" | "paused" | "canceled" | "created" | "armed" | "running";
4052
4076
  parentOrderId: string | undefined;
4053
4077
  qty: string;
4054
4078
  feeAsset: "unspecified" | "quote" | "base";
@@ -4073,7 +4097,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
4073
4097
  slippage?: undefined;
4074
4098
  bps?: undefined;
4075
4099
  };
4076
- readonly price?: undefined;
4100
+ price?: undefined;
4077
4101
  postOnly?: undefined;
4078
4102
  } | {
4079
4103
  readonly type: "limit_gtc";
@@ -4093,7 +4117,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
4093
4117
  } | {
4094
4118
  readonly type: "unspecified";
4095
4119
  readonly maxSlippage?: undefined;
4096
- readonly price?: undefined;
4120
+ price?: undefined;
4097
4121
  postOnly?: undefined;
4098
4122
  };
4099
4123
  trailingDistance?: undefined;
@@ -4166,7 +4190,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
4166
4190
  slippage?: undefined;
4167
4191
  bps?: undefined;
4168
4192
  };
4169
- readonly price?: undefined;
4193
+ price?: undefined;
4170
4194
  } | {
4171
4195
  readonly type: "limit_gtc";
4172
4196
  readonly price: string;
@@ -4174,7 +4198,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
4174
4198
  } | {
4175
4199
  readonly type: "unspecified";
4176
4200
  readonly maxSlippage?: undefined;
4177
- readonly price?: undefined;
4201
+ price?: undefined;
4178
4202
  };
4179
4203
  triggerPrice?: undefined;
4180
4204
  triggerPriceSource?: undefined;
@@ -4270,10 +4294,10 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
4270
4294
  } | {
4271
4295
  type: "price_chart";
4272
4296
  symbolId: number;
4273
- timeframe: "unspecified" | "1d" | "1h" | "1w" | "1m" | "1s" | "5m" | "3m" | "15m" | "30m" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1mo";
4297
+ timeframe: "unspecified" | "1d" | "1s" | "1m" | "3m" | "5m" | "15m" | "30m" | "1h" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1w" | "1mo";
4274
4298
  candles: {
4275
4299
  symbolId: number;
4276
- timeframe: DecodedEnum<"1d" | "1h" | "1w" | "1m" | "1s" | "5m" | "3m" | "15m" | "30m" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1mo">;
4300
+ timeframe: DecodedEnum<"1d" | "1s" | "1m" | "3m" | "5m" | "15m" | "30m" | "1h" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1w" | "1mo">;
4277
4301
  time: number;
4278
4302
  open: string;
4279
4303
  high: string;
@@ -4327,7 +4351,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
4327
4351
  referencePrice: string;
4328
4352
  armed: boolean;
4329
4353
  status: "unspecified" | "active" | "triggered" | "cancelled";
4330
- channels: ("unspecified" | "in_app" | "telegram")[];
4354
+ channels: ("unspecified" | "telegram" | "in_app")[];
4331
4355
  revision: string;
4332
4356
  createdAt: number | null;
4333
4357
  updatedAt: number | null;
@@ -4382,7 +4406,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
4382
4406
  points: number;
4383
4407
  series: {
4384
4408
  assetId: number;
4385
- accountCode: "unspecified" | "funding" | "trading";
4409
+ accountCode: "unspecified" | "trading" | "funding";
4386
4410
  balance: string[];
4387
4411
  }[];
4388
4412
  } | undefined;
@@ -4453,7 +4477,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
4453
4477
  amount: string;
4454
4478
  balanceAfter: string | undefined;
4455
4479
  type: "unspecified" | "internal_transfer" | "deposit" | "withdraw" | "maker_fee" | "taker_fee" | "trade_base" | "trade_quote" | "rebate" | "funding_to_trading" | "trading_to_funding" | "trading_withdraw_reserve" | "funding_user_transfer" | "trading_withdraw_request_fee" | "trading_withdraw_fee_leg" | "quickswap_polyester_fee" | "quickswap_broker_fee" | "quickswap_affiliate_fee" | "fee_sweep" | "fee_refill" | "system_adjustment" | "withdraw_failed";
4456
- accountCode: "unspecified" | "funding" | "trading";
4480
+ accountCode: "unspecified" | "trading" | "funding";
4457
4481
  timestamp: number;
4458
4482
  isDebit: boolean;
4459
4483
  linkId: string | undefined;
@@ -4507,6 +4531,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
4507
4531
  subagentId?: undefined;
4508
4532
  summary?: undefined;
4509
4533
  approvalId?: undefined;
4534
+ /** Approving after this executes nothing. */
4510
4535
  expiresAt?: undefined;
4511
4536
  parameters?: undefined;
4512
4537
  accountId?: undefined;
@@ -4539,6 +4564,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
4539
4564
  subagentId?: undefined;
4540
4565
  summary?: undefined;
4541
4566
  approvalId?: undefined;
4567
+ /** Approving after this executes nothing. */
4542
4568
  expiresAt?: undefined;
4543
4569
  parameters?: undefined;
4544
4570
  accountId?: undefined;
@@ -4573,6 +4599,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
4573
4599
  subagentId?: undefined;
4574
4600
  summary?: undefined;
4575
4601
  approvalId?: undefined;
4602
+ /** Approving after this executes nothing. */
4576
4603
  expiresAt?: undefined;
4577
4604
  parameters?: undefined;
4578
4605
  accountId?: undefined;
@@ -4597,6 +4624,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
4597
4624
  subagentId?: undefined;
4598
4625
  summary?: undefined;
4599
4626
  approvalId?: undefined;
4627
+ /** Approving after this executes nothing. */
4600
4628
  expiresAt?: undefined;
4601
4629
  parameters?: undefined;
4602
4630
  accountId?: undefined;