@illalabs/interfaces 0.19.0 → 0.20.0-canary-beta-bcc83bb2

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 (49) hide show
  1. package/dist/interfaces/hyperliquid/exchange.d.ts +3248 -0
  2. package/dist/interfaces/hyperliquid/exchange.d.ts.map +1 -0
  3. package/dist/interfaces/hyperliquid/exchange.js +61 -0
  4. package/dist/interfaces/hyperliquid/exchange.js.map +1 -0
  5. package/dist/interfaces/hyperliquid/index.d.ts +2 -0
  6. package/dist/interfaces/hyperliquid/index.d.ts.map +1 -0
  7. package/dist/interfaces/hyperliquid/index.js +2 -0
  8. package/dist/interfaces/hyperliquid/index.js.map +1 -0
  9. package/dist/interfaces/index.d.ts +1 -0
  10. package/dist/interfaces/index.d.ts.map +1 -1
  11. package/dist/interfaces/index.js +1 -0
  12. package/dist/interfaces/index.js.map +1 -1
  13. package/dist/schemas/messages.d.ts +2300 -0
  14. package/dist/schemas/messages.d.ts.map +1 -1
  15. package/dist/schemas/messages.js +53 -0
  16. package/dist/schemas/messages.js.map +1 -1
  17. package/dist/schemas/telemetryEvents.d.ts +5412 -0
  18. package/dist/schemas/telemetryEvents.d.ts.map +1 -1
  19. package/dist/types/actions/inputs.d.ts +7 -2
  20. package/dist/types/actions/inputs.d.ts.map +1 -1
  21. package/dist/types/actions/outputs.d.ts +9 -0
  22. package/dist/types/actions/outputs.d.ts.map +1 -1
  23. package/dist/types/actions/tools/hyperliquidClosePositionAction.d.ts +23 -0
  24. package/dist/types/actions/tools/hyperliquidClosePositionAction.d.ts.map +1 -0
  25. package/dist/types/actions/tools/hyperliquidClosePositionAction.js +2 -0
  26. package/dist/types/actions/tools/hyperliquidClosePositionAction.js.map +1 -0
  27. package/dist/types/actions/tools/hyperliquidGetAccountSummaryAction.d.ts +16 -0
  28. package/dist/types/actions/tools/hyperliquidGetAccountSummaryAction.d.ts.map +1 -0
  29. package/dist/types/actions/tools/hyperliquidGetAccountSummaryAction.js +2 -0
  30. package/dist/types/actions/tools/hyperliquidGetAccountSummaryAction.js.map +1 -0
  31. package/dist/types/actions/tools/hyperliquidGetPositionsAction.d.ts +16 -0
  32. package/dist/types/actions/tools/hyperliquidGetPositionsAction.d.ts.map +1 -0
  33. package/dist/types/actions/tools/hyperliquidGetPositionsAction.js +2 -0
  34. package/dist/types/actions/tools/hyperliquidGetPositionsAction.js.map +1 -0
  35. package/dist/types/actions/tools/hyperliquidPlaceOrderAction.d.ts +33 -0
  36. package/dist/types/actions/tools/hyperliquidPlaceOrderAction.d.ts.map +1 -0
  37. package/dist/types/actions/tools/hyperliquidPlaceOrderAction.js +2 -0
  38. package/dist/types/actions/tools/hyperliquidPlaceOrderAction.js.map +1 -0
  39. package/dist/types/actions/tools/hyperliquidUpdateLeverageAction.d.ts +25 -0
  40. package/dist/types/actions/tools/hyperliquidUpdateLeverageAction.d.ts.map +1 -0
  41. package/dist/types/actions/tools/hyperliquidUpdateLeverageAction.js +2 -0
  42. package/dist/types/actions/tools/hyperliquidUpdateLeverageAction.js.map +1 -0
  43. package/dist/types/actions/tools/index.d.ts +15 -0
  44. package/dist/types/actions/tools/index.d.ts.map +1 -1
  45. package/dist/utils/constants.d.ts +1 -1
  46. package/dist/utils/constants.d.ts.map +1 -1
  47. package/dist/utils/constants.js +5 -0
  48. package/dist/utils/constants.js.map +1 -1
  49. package/package.json +1 -1
@@ -1806,6 +1806,132 @@ export declare const TransactionActionMetadataSchema: z.ZodDiscriminatedUnion<"a
1806
1806
  amount: string;
1807
1807
  fromAddress: string;
1808
1808
  amountUSDValue?: string | undefined;
1809
+ }>, z.ZodObject<{
1810
+ action: z.ZodLiteral<"hyperliquidOrder">;
1811
+ network: z.ZodEnum<["mainnet", "testnet"]>;
1812
+ endpoint: z.ZodString;
1813
+ unsignedAction: z.ZodUnknown;
1814
+ nonce: z.ZodNumber;
1815
+ coin: z.ZodString;
1816
+ side: z.ZodEnum<["buy", "sell"]>;
1817
+ size: z.ZodString;
1818
+ notionalUsd: z.ZodOptional<z.ZodString>;
1819
+ markPx: z.ZodString;
1820
+ leverage: z.ZodOptional<z.ZodObject<{
1821
+ type: z.ZodEnum<["cross", "isolated"]>;
1822
+ value: z.ZodNumber;
1823
+ }, "strip", z.ZodTypeAny, {
1824
+ type: "cross" | "isolated";
1825
+ value: number;
1826
+ }, {
1827
+ type: "cross" | "isolated";
1828
+ value: number;
1829
+ }>>;
1830
+ reduceOnly: z.ZodBoolean;
1831
+ }, "strip", z.ZodTypeAny, {
1832
+ nonce: number;
1833
+ action: "hyperliquidOrder";
1834
+ size: string;
1835
+ side: "buy" | "sell";
1836
+ network: "testnet" | "mainnet";
1837
+ endpoint: string;
1838
+ coin: string;
1839
+ markPx: string;
1840
+ reduceOnly: boolean;
1841
+ unsignedAction?: unknown;
1842
+ notionalUsd?: string | undefined;
1843
+ leverage?: {
1844
+ type: "cross" | "isolated";
1845
+ value: number;
1846
+ } | undefined;
1847
+ }, {
1848
+ nonce: number;
1849
+ action: "hyperliquidOrder";
1850
+ size: string;
1851
+ side: "buy" | "sell";
1852
+ network: "testnet" | "mainnet";
1853
+ endpoint: string;
1854
+ coin: string;
1855
+ markPx: string;
1856
+ reduceOnly: boolean;
1857
+ unsignedAction?: unknown;
1858
+ notionalUsd?: string | undefined;
1859
+ leverage?: {
1860
+ type: "cross" | "isolated";
1861
+ value: number;
1862
+ } | undefined;
1863
+ }>, z.ZodObject<{
1864
+ action: z.ZodLiteral<"hyperliquidUpdateLeverage">;
1865
+ network: z.ZodEnum<["mainnet", "testnet"]>;
1866
+ endpoint: z.ZodString;
1867
+ unsignedAction: z.ZodUnknown;
1868
+ nonce: z.ZodNumber;
1869
+ coin: z.ZodString;
1870
+ leverage: z.ZodObject<{
1871
+ type: z.ZodEnum<["cross", "isolated"]>;
1872
+ value: z.ZodNumber;
1873
+ }, "strip", z.ZodTypeAny, {
1874
+ type: "cross" | "isolated";
1875
+ value: number;
1876
+ }, {
1877
+ type: "cross" | "isolated";
1878
+ value: number;
1879
+ }>;
1880
+ }, "strip", z.ZodTypeAny, {
1881
+ nonce: number;
1882
+ action: "hyperliquidUpdateLeverage";
1883
+ network: "testnet" | "mainnet";
1884
+ endpoint: string;
1885
+ coin: string;
1886
+ leverage: {
1887
+ type: "cross" | "isolated";
1888
+ value: number;
1889
+ };
1890
+ unsignedAction?: unknown;
1891
+ }, {
1892
+ nonce: number;
1893
+ action: "hyperliquidUpdateLeverage";
1894
+ network: "testnet" | "mainnet";
1895
+ endpoint: string;
1896
+ coin: string;
1897
+ leverage: {
1898
+ type: "cross" | "isolated";
1899
+ value: number;
1900
+ };
1901
+ unsignedAction?: unknown;
1902
+ }>, z.ZodObject<{
1903
+ action: z.ZodLiteral<"hyperliquidClosePosition">;
1904
+ network: z.ZodEnum<["mainnet", "testnet"]>;
1905
+ endpoint: z.ZodString;
1906
+ unsignedAction: z.ZodUnknown;
1907
+ nonce: z.ZodNumber;
1908
+ coin: z.ZodString;
1909
+ size: z.ZodString;
1910
+ side: z.ZodEnum<["buy", "sell"]>;
1911
+ markPx: z.ZodString;
1912
+ reduceOnly: z.ZodLiteral<true>;
1913
+ }, "strip", z.ZodTypeAny, {
1914
+ nonce: number;
1915
+ action: "hyperliquidClosePosition";
1916
+ size: string;
1917
+ side: "buy" | "sell";
1918
+ network: "testnet" | "mainnet";
1919
+ endpoint: string;
1920
+ coin: string;
1921
+ markPx: string;
1922
+ reduceOnly: true;
1923
+ unsignedAction?: unknown;
1924
+ }, {
1925
+ nonce: number;
1926
+ action: "hyperliquidClosePosition";
1927
+ size: string;
1928
+ side: "buy" | "sell";
1929
+ network: "testnet" | "mainnet";
1930
+ endpoint: string;
1931
+ coin: string;
1932
+ markPx: string;
1933
+ reduceOnly: true;
1934
+ unsignedAction?: unknown;
1809
1935
  }>]>;
1810
1936
  export type TransactionActionMetadata = z.infer<typeof TransactionActionMetadataSchema>;
1811
1937
  /**
@@ -3070,6 +3196,132 @@ export declare const PendingToolCallSchema: z.ZodObject<{
3070
3196
  amount: string;
3071
3197
  fromAddress: string;
3072
3198
  amountUSDValue?: string | undefined;
3199
+ }>, z.ZodObject<{
3200
+ action: z.ZodLiteral<"hyperliquidOrder">;
3201
+ network: z.ZodEnum<["mainnet", "testnet"]>;
3202
+ endpoint: z.ZodString;
3203
+ unsignedAction: z.ZodUnknown;
3204
+ nonce: z.ZodNumber;
3205
+ coin: z.ZodString;
3206
+ side: z.ZodEnum<["buy", "sell"]>;
3207
+ size: z.ZodString;
3208
+ notionalUsd: z.ZodOptional<z.ZodString>;
3209
+ markPx: z.ZodString;
3210
+ leverage: z.ZodOptional<z.ZodObject<{
3211
+ type: z.ZodEnum<["cross", "isolated"]>;
3212
+ value: z.ZodNumber;
3213
+ }, "strip", z.ZodTypeAny, {
3214
+ type: "cross" | "isolated";
3215
+ value: number;
3216
+ }, {
3217
+ type: "cross" | "isolated";
3218
+ value: number;
3219
+ }>>;
3220
+ reduceOnly: z.ZodBoolean;
3221
+ }, "strip", z.ZodTypeAny, {
3222
+ nonce: number;
3223
+ action: "hyperliquidOrder";
3224
+ size: string;
3225
+ side: "buy" | "sell";
3226
+ network: "testnet" | "mainnet";
3227
+ endpoint: string;
3228
+ coin: string;
3229
+ markPx: string;
3230
+ reduceOnly: boolean;
3231
+ unsignedAction?: unknown;
3232
+ notionalUsd?: string | undefined;
3233
+ leverage?: {
3234
+ type: "cross" | "isolated";
3235
+ value: number;
3236
+ } | undefined;
3237
+ }, {
3238
+ nonce: number;
3239
+ action: "hyperliquidOrder";
3240
+ size: string;
3241
+ side: "buy" | "sell";
3242
+ network: "testnet" | "mainnet";
3243
+ endpoint: string;
3244
+ coin: string;
3245
+ markPx: string;
3246
+ reduceOnly: boolean;
3247
+ unsignedAction?: unknown;
3248
+ notionalUsd?: string | undefined;
3249
+ leverage?: {
3250
+ type: "cross" | "isolated";
3251
+ value: number;
3252
+ } | undefined;
3253
+ }>, z.ZodObject<{
3254
+ action: z.ZodLiteral<"hyperliquidUpdateLeverage">;
3255
+ network: z.ZodEnum<["mainnet", "testnet"]>;
3256
+ endpoint: z.ZodString;
3257
+ unsignedAction: z.ZodUnknown;
3258
+ nonce: z.ZodNumber;
3259
+ coin: z.ZodString;
3260
+ leverage: z.ZodObject<{
3261
+ type: z.ZodEnum<["cross", "isolated"]>;
3262
+ value: z.ZodNumber;
3263
+ }, "strip", z.ZodTypeAny, {
3264
+ type: "cross" | "isolated";
3265
+ value: number;
3266
+ }, {
3267
+ type: "cross" | "isolated";
3268
+ value: number;
3269
+ }>;
3270
+ }, "strip", z.ZodTypeAny, {
3271
+ nonce: number;
3272
+ action: "hyperliquidUpdateLeverage";
3273
+ network: "testnet" | "mainnet";
3274
+ endpoint: string;
3275
+ coin: string;
3276
+ leverage: {
3277
+ type: "cross" | "isolated";
3278
+ value: number;
3279
+ };
3280
+ unsignedAction?: unknown;
3281
+ }, {
3282
+ nonce: number;
3283
+ action: "hyperliquidUpdateLeverage";
3284
+ network: "testnet" | "mainnet";
3285
+ endpoint: string;
3286
+ coin: string;
3287
+ leverage: {
3288
+ type: "cross" | "isolated";
3289
+ value: number;
3290
+ };
3291
+ unsignedAction?: unknown;
3292
+ }>, z.ZodObject<{
3293
+ action: z.ZodLiteral<"hyperliquidClosePosition">;
3294
+ network: z.ZodEnum<["mainnet", "testnet"]>;
3295
+ endpoint: z.ZodString;
3296
+ unsignedAction: z.ZodUnknown;
3297
+ nonce: z.ZodNumber;
3298
+ coin: z.ZodString;
3299
+ size: z.ZodString;
3300
+ side: z.ZodEnum<["buy", "sell"]>;
3301
+ markPx: z.ZodString;
3302
+ reduceOnly: z.ZodLiteral<true>;
3303
+ }, "strip", z.ZodTypeAny, {
3304
+ nonce: number;
3305
+ action: "hyperliquidClosePosition";
3306
+ size: string;
3307
+ side: "buy" | "sell";
3308
+ network: "testnet" | "mainnet";
3309
+ endpoint: string;
3310
+ coin: string;
3311
+ markPx: string;
3312
+ reduceOnly: true;
3313
+ unsignedAction?: unknown;
3314
+ }, {
3315
+ nonce: number;
3316
+ action: "hyperliquidClosePosition";
3317
+ size: string;
3318
+ side: "buy" | "sell";
3319
+ network: "testnet" | "mainnet";
3320
+ endpoint: string;
3321
+ coin: string;
3322
+ markPx: string;
3323
+ reduceOnly: true;
3324
+ unsignedAction?: unknown;
3073
3325
  }>]>>;
3074
3326
  }, "strip", z.ZodTypeAny, {
3075
3327
  type: "BatchTransactions";
@@ -3191,6 +3443,44 @@ export declare const PendingToolCallSchema: z.ZodObject<{
3191
3443
  amount: string;
3192
3444
  fromAddress: string;
3193
3445
  amountUSDValue?: string | undefined;
3446
+ } | {
3447
+ nonce: number;
3448
+ action: "hyperliquidOrder";
3449
+ size: string;
3450
+ side: "buy" | "sell";
3451
+ network: "testnet" | "mainnet";
3452
+ endpoint: string;
3453
+ coin: string;
3454
+ markPx: string;
3455
+ reduceOnly: boolean;
3456
+ unsignedAction?: unknown;
3457
+ notionalUsd?: string | undefined;
3458
+ leverage?: {
3459
+ type: "cross" | "isolated";
3460
+ value: number;
3461
+ } | undefined;
3462
+ } | {
3463
+ nonce: number;
3464
+ action: "hyperliquidUpdateLeverage";
3465
+ network: "testnet" | "mainnet";
3466
+ endpoint: string;
3467
+ coin: string;
3468
+ leverage: {
3469
+ type: "cross" | "isolated";
3470
+ value: number;
3471
+ };
3472
+ unsignedAction?: unknown;
3473
+ } | {
3474
+ nonce: number;
3475
+ action: "hyperliquidClosePosition";
3476
+ size: string;
3477
+ side: "buy" | "sell";
3478
+ network: "testnet" | "mainnet";
3479
+ endpoint: string;
3480
+ coin: string;
3481
+ markPx: string;
3482
+ reduceOnly: true;
3483
+ unsignedAction?: unknown;
3194
3484
  } | undefined;
3195
3485
  }, {
3196
3486
  type: "BatchTransactions";
@@ -3312,6 +3602,44 @@ export declare const PendingToolCallSchema: z.ZodObject<{
3312
3602
  amount: string;
3313
3603
  fromAddress: string;
3314
3604
  amountUSDValue?: string | undefined;
3605
+ } | {
3606
+ nonce: number;
3607
+ action: "hyperliquidOrder";
3608
+ size: string;
3609
+ side: "buy" | "sell";
3610
+ network: "testnet" | "mainnet";
3611
+ endpoint: string;
3612
+ coin: string;
3613
+ markPx: string;
3614
+ reduceOnly: boolean;
3615
+ unsignedAction?: unknown;
3616
+ notionalUsd?: string | undefined;
3617
+ leverage?: {
3618
+ type: "cross" | "isolated";
3619
+ value: number;
3620
+ } | undefined;
3621
+ } | {
3622
+ nonce: number;
3623
+ action: "hyperliquidUpdateLeverage";
3624
+ network: "testnet" | "mainnet";
3625
+ endpoint: string;
3626
+ coin: string;
3627
+ leverage: {
3628
+ type: "cross" | "isolated";
3629
+ value: number;
3630
+ };
3631
+ unsignedAction?: unknown;
3632
+ } | {
3633
+ nonce: number;
3634
+ action: "hyperliquidClosePosition";
3635
+ size: string;
3636
+ side: "buy" | "sell";
3637
+ network: "testnet" | "mainnet";
3638
+ endpoint: string;
3639
+ coin: string;
3640
+ markPx: string;
3641
+ reduceOnly: true;
3642
+ unsignedAction?: unknown;
3315
3643
  } | undefined;
3316
3644
  }>, z.ZodObject<{
3317
3645
  type: z.ZodLiteral<"SingleTransaction">;
@@ -3755,6 +4083,132 @@ export declare const PendingToolCallSchema: z.ZodObject<{
3755
4083
  amount: string;
3756
4084
  fromAddress: string;
3757
4085
  amountUSDValue?: string | undefined;
4086
+ }>, z.ZodObject<{
4087
+ action: z.ZodLiteral<"hyperliquidOrder">;
4088
+ network: z.ZodEnum<["mainnet", "testnet"]>;
4089
+ endpoint: z.ZodString;
4090
+ unsignedAction: z.ZodUnknown;
4091
+ nonce: z.ZodNumber;
4092
+ coin: z.ZodString;
4093
+ side: z.ZodEnum<["buy", "sell"]>;
4094
+ size: z.ZodString;
4095
+ notionalUsd: z.ZodOptional<z.ZodString>;
4096
+ markPx: z.ZodString;
4097
+ leverage: z.ZodOptional<z.ZodObject<{
4098
+ type: z.ZodEnum<["cross", "isolated"]>;
4099
+ value: z.ZodNumber;
4100
+ }, "strip", z.ZodTypeAny, {
4101
+ type: "cross" | "isolated";
4102
+ value: number;
4103
+ }, {
4104
+ type: "cross" | "isolated";
4105
+ value: number;
4106
+ }>>;
4107
+ reduceOnly: z.ZodBoolean;
4108
+ }, "strip", z.ZodTypeAny, {
4109
+ nonce: number;
4110
+ action: "hyperliquidOrder";
4111
+ size: string;
4112
+ side: "buy" | "sell";
4113
+ network: "testnet" | "mainnet";
4114
+ endpoint: string;
4115
+ coin: string;
4116
+ markPx: string;
4117
+ reduceOnly: boolean;
4118
+ unsignedAction?: unknown;
4119
+ notionalUsd?: string | undefined;
4120
+ leverage?: {
4121
+ type: "cross" | "isolated";
4122
+ value: number;
4123
+ } | undefined;
4124
+ }, {
4125
+ nonce: number;
4126
+ action: "hyperliquidOrder";
4127
+ size: string;
4128
+ side: "buy" | "sell";
4129
+ network: "testnet" | "mainnet";
4130
+ endpoint: string;
4131
+ coin: string;
4132
+ markPx: string;
4133
+ reduceOnly: boolean;
4134
+ unsignedAction?: unknown;
4135
+ notionalUsd?: string | undefined;
4136
+ leverage?: {
4137
+ type: "cross" | "isolated";
4138
+ value: number;
4139
+ } | undefined;
4140
+ }>, z.ZodObject<{
4141
+ action: z.ZodLiteral<"hyperliquidUpdateLeverage">;
4142
+ network: z.ZodEnum<["mainnet", "testnet"]>;
4143
+ endpoint: z.ZodString;
4144
+ unsignedAction: z.ZodUnknown;
4145
+ nonce: z.ZodNumber;
4146
+ coin: z.ZodString;
4147
+ leverage: z.ZodObject<{
4148
+ type: z.ZodEnum<["cross", "isolated"]>;
4149
+ value: z.ZodNumber;
4150
+ }, "strip", z.ZodTypeAny, {
4151
+ type: "cross" | "isolated";
4152
+ value: number;
4153
+ }, {
4154
+ type: "cross" | "isolated";
4155
+ value: number;
4156
+ }>;
4157
+ }, "strip", z.ZodTypeAny, {
4158
+ nonce: number;
4159
+ action: "hyperliquidUpdateLeverage";
4160
+ network: "testnet" | "mainnet";
4161
+ endpoint: string;
4162
+ coin: string;
4163
+ leverage: {
4164
+ type: "cross" | "isolated";
4165
+ value: number;
4166
+ };
4167
+ unsignedAction?: unknown;
4168
+ }, {
4169
+ nonce: number;
4170
+ action: "hyperliquidUpdateLeverage";
4171
+ network: "testnet" | "mainnet";
4172
+ endpoint: string;
4173
+ coin: string;
4174
+ leverage: {
4175
+ type: "cross" | "isolated";
4176
+ value: number;
4177
+ };
4178
+ unsignedAction?: unknown;
4179
+ }>, z.ZodObject<{
4180
+ action: z.ZodLiteral<"hyperliquidClosePosition">;
4181
+ network: z.ZodEnum<["mainnet", "testnet"]>;
4182
+ endpoint: z.ZodString;
4183
+ unsignedAction: z.ZodUnknown;
4184
+ nonce: z.ZodNumber;
4185
+ coin: z.ZodString;
4186
+ size: z.ZodString;
4187
+ side: z.ZodEnum<["buy", "sell"]>;
4188
+ markPx: z.ZodString;
4189
+ reduceOnly: z.ZodLiteral<true>;
4190
+ }, "strip", z.ZodTypeAny, {
4191
+ nonce: number;
4192
+ action: "hyperliquidClosePosition";
4193
+ size: string;
4194
+ side: "buy" | "sell";
4195
+ network: "testnet" | "mainnet";
4196
+ endpoint: string;
4197
+ coin: string;
4198
+ markPx: string;
4199
+ reduceOnly: true;
4200
+ unsignedAction?: unknown;
4201
+ }, {
4202
+ nonce: number;
4203
+ action: "hyperliquidClosePosition";
4204
+ size: string;
4205
+ side: "buy" | "sell";
4206
+ network: "testnet" | "mainnet";
4207
+ endpoint: string;
4208
+ coin: string;
4209
+ markPx: string;
4210
+ reduceOnly: true;
4211
+ unsignedAction?: unknown;
3758
4212
  }>]>>;
3759
4213
  }, "strip", z.ZodTypeAny, {
3760
4214
  type: "SingleTransaction";
@@ -3876,6 +4330,44 @@ export declare const PendingToolCallSchema: z.ZodObject<{
3876
4330
  amount: string;
3877
4331
  fromAddress: string;
3878
4332
  amountUSDValue?: string | undefined;
4333
+ } | {
4334
+ nonce: number;
4335
+ action: "hyperliquidOrder";
4336
+ size: string;
4337
+ side: "buy" | "sell";
4338
+ network: "testnet" | "mainnet";
4339
+ endpoint: string;
4340
+ coin: string;
4341
+ markPx: string;
4342
+ reduceOnly: boolean;
4343
+ unsignedAction?: unknown;
4344
+ notionalUsd?: string | undefined;
4345
+ leverage?: {
4346
+ type: "cross" | "isolated";
4347
+ value: number;
4348
+ } | undefined;
4349
+ } | {
4350
+ nonce: number;
4351
+ action: "hyperliquidUpdateLeverage";
4352
+ network: "testnet" | "mainnet";
4353
+ endpoint: string;
4354
+ coin: string;
4355
+ leverage: {
4356
+ type: "cross" | "isolated";
4357
+ value: number;
4358
+ };
4359
+ unsignedAction?: unknown;
4360
+ } | {
4361
+ nonce: number;
4362
+ action: "hyperliquidClosePosition";
4363
+ size: string;
4364
+ side: "buy" | "sell";
4365
+ network: "testnet" | "mainnet";
4366
+ endpoint: string;
4367
+ coin: string;
4368
+ markPx: string;
4369
+ reduceOnly: true;
4370
+ unsignedAction?: unknown;
3879
4371
  } | undefined;
3880
4372
  }, {
3881
4373
  type: "SingleTransaction";
@@ -3997,6 +4489,44 @@ export declare const PendingToolCallSchema: z.ZodObject<{
3997
4489
  amount: string;
3998
4490
  fromAddress: string;
3999
4491
  amountUSDValue?: string | undefined;
4492
+ } | {
4493
+ nonce: number;
4494
+ action: "hyperliquidOrder";
4495
+ size: string;
4496
+ side: "buy" | "sell";
4497
+ network: "testnet" | "mainnet";
4498
+ endpoint: string;
4499
+ coin: string;
4500
+ markPx: string;
4501
+ reduceOnly: boolean;
4502
+ unsignedAction?: unknown;
4503
+ notionalUsd?: string | undefined;
4504
+ leverage?: {
4505
+ type: "cross" | "isolated";
4506
+ value: number;
4507
+ } | undefined;
4508
+ } | {
4509
+ nonce: number;
4510
+ action: "hyperliquidUpdateLeverage";
4511
+ network: "testnet" | "mainnet";
4512
+ endpoint: string;
4513
+ coin: string;
4514
+ leverage: {
4515
+ type: "cross" | "isolated";
4516
+ value: number;
4517
+ };
4518
+ unsignedAction?: unknown;
4519
+ } | {
4520
+ nonce: number;
4521
+ action: "hyperliquidClosePosition";
4522
+ size: string;
4523
+ side: "buy" | "sell";
4524
+ network: "testnet" | "mainnet";
4525
+ endpoint: string;
4526
+ coin: string;
4527
+ markPx: string;
4528
+ reduceOnly: true;
4529
+ unsignedAction?: unknown;
4000
4530
  } | undefined;
4001
4531
  }>, z.ZodObject<{
4002
4532
  type: z.ZodLiteral<"SignatureRequests">;
@@ -5785,6 +6315,132 @@ export declare const PendingToolCallSchema: z.ZodObject<{
5785
6315
  amount: string;
5786
6316
  fromAddress: string;
5787
6317
  amountUSDValue?: string | undefined;
6318
+ }>, z.ZodObject<{
6319
+ action: z.ZodLiteral<"hyperliquidOrder">;
6320
+ network: z.ZodEnum<["mainnet", "testnet"]>;
6321
+ endpoint: z.ZodString;
6322
+ unsignedAction: z.ZodUnknown;
6323
+ nonce: z.ZodNumber;
6324
+ coin: z.ZodString;
6325
+ side: z.ZodEnum<["buy", "sell"]>;
6326
+ size: z.ZodString;
6327
+ notionalUsd: z.ZodOptional<z.ZodString>;
6328
+ markPx: z.ZodString;
6329
+ leverage: z.ZodOptional<z.ZodObject<{
6330
+ type: z.ZodEnum<["cross", "isolated"]>;
6331
+ value: z.ZodNumber;
6332
+ }, "strip", z.ZodTypeAny, {
6333
+ type: "cross" | "isolated";
6334
+ value: number;
6335
+ }, {
6336
+ type: "cross" | "isolated";
6337
+ value: number;
6338
+ }>>;
6339
+ reduceOnly: z.ZodBoolean;
6340
+ }, "strip", z.ZodTypeAny, {
6341
+ nonce: number;
6342
+ action: "hyperliquidOrder";
6343
+ size: string;
6344
+ side: "buy" | "sell";
6345
+ network: "testnet" | "mainnet";
6346
+ endpoint: string;
6347
+ coin: string;
6348
+ markPx: string;
6349
+ reduceOnly: boolean;
6350
+ unsignedAction?: unknown;
6351
+ notionalUsd?: string | undefined;
6352
+ leverage?: {
6353
+ type: "cross" | "isolated";
6354
+ value: number;
6355
+ } | undefined;
6356
+ }, {
6357
+ nonce: number;
6358
+ action: "hyperliquidOrder";
6359
+ size: string;
6360
+ side: "buy" | "sell";
6361
+ network: "testnet" | "mainnet";
6362
+ endpoint: string;
6363
+ coin: string;
6364
+ markPx: string;
6365
+ reduceOnly: boolean;
6366
+ unsignedAction?: unknown;
6367
+ notionalUsd?: string | undefined;
6368
+ leverage?: {
6369
+ type: "cross" | "isolated";
6370
+ value: number;
6371
+ } | undefined;
6372
+ }>, z.ZodObject<{
6373
+ action: z.ZodLiteral<"hyperliquidUpdateLeverage">;
6374
+ network: z.ZodEnum<["mainnet", "testnet"]>;
6375
+ endpoint: z.ZodString;
6376
+ unsignedAction: z.ZodUnknown;
6377
+ nonce: z.ZodNumber;
6378
+ coin: z.ZodString;
6379
+ leverage: z.ZodObject<{
6380
+ type: z.ZodEnum<["cross", "isolated"]>;
6381
+ value: z.ZodNumber;
6382
+ }, "strip", z.ZodTypeAny, {
6383
+ type: "cross" | "isolated";
6384
+ value: number;
6385
+ }, {
6386
+ type: "cross" | "isolated";
6387
+ value: number;
6388
+ }>;
6389
+ }, "strip", z.ZodTypeAny, {
6390
+ nonce: number;
6391
+ action: "hyperliquidUpdateLeverage";
6392
+ network: "testnet" | "mainnet";
6393
+ endpoint: string;
6394
+ coin: string;
6395
+ leverage: {
6396
+ type: "cross" | "isolated";
6397
+ value: number;
6398
+ };
6399
+ unsignedAction?: unknown;
6400
+ }, {
6401
+ nonce: number;
6402
+ action: "hyperliquidUpdateLeverage";
6403
+ network: "testnet" | "mainnet";
6404
+ endpoint: string;
6405
+ coin: string;
6406
+ leverage: {
6407
+ type: "cross" | "isolated";
6408
+ value: number;
6409
+ };
6410
+ unsignedAction?: unknown;
6411
+ }>, z.ZodObject<{
6412
+ action: z.ZodLiteral<"hyperliquidClosePosition">;
6413
+ network: z.ZodEnum<["mainnet", "testnet"]>;
6414
+ endpoint: z.ZodString;
6415
+ unsignedAction: z.ZodUnknown;
6416
+ nonce: z.ZodNumber;
6417
+ coin: z.ZodString;
6418
+ size: z.ZodString;
6419
+ side: z.ZodEnum<["buy", "sell"]>;
6420
+ markPx: z.ZodString;
6421
+ reduceOnly: z.ZodLiteral<true>;
6422
+ }, "strip", z.ZodTypeAny, {
6423
+ nonce: number;
6424
+ action: "hyperliquidClosePosition";
6425
+ size: string;
6426
+ side: "buy" | "sell";
6427
+ network: "testnet" | "mainnet";
6428
+ endpoint: string;
6429
+ coin: string;
6430
+ markPx: string;
6431
+ reduceOnly: true;
6432
+ unsignedAction?: unknown;
6433
+ }, {
6434
+ nonce: number;
6435
+ action: "hyperliquidClosePosition";
6436
+ size: string;
6437
+ side: "buy" | "sell";
6438
+ network: "testnet" | "mainnet";
6439
+ endpoint: string;
6440
+ coin: string;
6441
+ markPx: string;
6442
+ reduceOnly: true;
6443
+ unsignedAction?: unknown;
5788
6444
  }>]>>;
5789
6445
  }, "strip", z.ZodTypeAny, {
5790
6446
  type: "SignatureRequests";
@@ -6097,6 +6753,44 @@ export declare const PendingToolCallSchema: z.ZodObject<{
6097
6753
  amount: string;
6098
6754
  fromAddress: string;
6099
6755
  amountUSDValue?: string | undefined;
6756
+ } | {
6757
+ nonce: number;
6758
+ action: "hyperliquidOrder";
6759
+ size: string;
6760
+ side: "buy" | "sell";
6761
+ network: "testnet" | "mainnet";
6762
+ endpoint: string;
6763
+ coin: string;
6764
+ markPx: string;
6765
+ reduceOnly: boolean;
6766
+ unsignedAction?: unknown;
6767
+ notionalUsd?: string | undefined;
6768
+ leverage?: {
6769
+ type: "cross" | "isolated";
6770
+ value: number;
6771
+ } | undefined;
6772
+ } | {
6773
+ nonce: number;
6774
+ action: "hyperliquidUpdateLeverage";
6775
+ network: "testnet" | "mainnet";
6776
+ endpoint: string;
6777
+ coin: string;
6778
+ leverage: {
6779
+ type: "cross" | "isolated";
6780
+ value: number;
6781
+ };
6782
+ unsignedAction?: unknown;
6783
+ } | {
6784
+ nonce: number;
6785
+ action: "hyperliquidClosePosition";
6786
+ size: string;
6787
+ side: "buy" | "sell";
6788
+ network: "testnet" | "mainnet";
6789
+ endpoint: string;
6790
+ coin: string;
6791
+ markPx: string;
6792
+ reduceOnly: true;
6793
+ unsignedAction?: unknown;
6100
6794
  } | undefined;
6101
6795
  }, {
6102
6796
  type: "SignatureRequests";
@@ -6409,6 +7103,44 @@ export declare const PendingToolCallSchema: z.ZodObject<{
6409
7103
  amount: string;
6410
7104
  fromAddress: string;
6411
7105
  amountUSDValue?: string | undefined;
7106
+ } | {
7107
+ nonce: number;
7108
+ action: "hyperliquidOrder";
7109
+ size: string;
7110
+ side: "buy" | "sell";
7111
+ network: "testnet" | "mainnet";
7112
+ endpoint: string;
7113
+ coin: string;
7114
+ markPx: string;
7115
+ reduceOnly: boolean;
7116
+ unsignedAction?: unknown;
7117
+ notionalUsd?: string | undefined;
7118
+ leverage?: {
7119
+ type: "cross" | "isolated";
7120
+ value: number;
7121
+ } | undefined;
7122
+ } | {
7123
+ nonce: number;
7124
+ action: "hyperliquidUpdateLeverage";
7125
+ network: "testnet" | "mainnet";
7126
+ endpoint: string;
7127
+ coin: string;
7128
+ leverage: {
7129
+ type: "cross" | "isolated";
7130
+ value: number;
7131
+ };
7132
+ unsignedAction?: unknown;
7133
+ } | {
7134
+ nonce: number;
7135
+ action: "hyperliquidClosePosition";
7136
+ size: string;
7137
+ side: "buy" | "sell";
7138
+ network: "testnet" | "mainnet";
7139
+ endpoint: string;
7140
+ coin: string;
7141
+ markPx: string;
7142
+ reduceOnly: true;
7143
+ unsignedAction?: unknown;
6412
7144
  } | undefined;
6413
7145
  }>, z.ZodObject<{
6414
7146
  type: z.ZodLiteral<"ActionSequence">;
@@ -6854,6 +7586,132 @@ export declare const PendingToolCallSchema: z.ZodObject<{
6854
7586
  amount: string;
6855
7587
  fromAddress: string;
6856
7588
  amountUSDValue?: string | undefined;
7589
+ }>, z.ZodObject<{
7590
+ action: z.ZodLiteral<"hyperliquidOrder">;
7591
+ network: z.ZodEnum<["mainnet", "testnet"]>;
7592
+ endpoint: z.ZodString;
7593
+ unsignedAction: z.ZodUnknown;
7594
+ nonce: z.ZodNumber;
7595
+ coin: z.ZodString;
7596
+ side: z.ZodEnum<["buy", "sell"]>;
7597
+ size: z.ZodString;
7598
+ notionalUsd: z.ZodOptional<z.ZodString>;
7599
+ markPx: z.ZodString;
7600
+ leverage: z.ZodOptional<z.ZodObject<{
7601
+ type: z.ZodEnum<["cross", "isolated"]>;
7602
+ value: z.ZodNumber;
7603
+ }, "strip", z.ZodTypeAny, {
7604
+ type: "cross" | "isolated";
7605
+ value: number;
7606
+ }, {
7607
+ type: "cross" | "isolated";
7608
+ value: number;
7609
+ }>>;
7610
+ reduceOnly: z.ZodBoolean;
7611
+ }, "strip", z.ZodTypeAny, {
7612
+ nonce: number;
7613
+ action: "hyperliquidOrder";
7614
+ size: string;
7615
+ side: "buy" | "sell";
7616
+ network: "testnet" | "mainnet";
7617
+ endpoint: string;
7618
+ coin: string;
7619
+ markPx: string;
7620
+ reduceOnly: boolean;
7621
+ unsignedAction?: unknown;
7622
+ notionalUsd?: string | undefined;
7623
+ leverage?: {
7624
+ type: "cross" | "isolated";
7625
+ value: number;
7626
+ } | undefined;
7627
+ }, {
7628
+ nonce: number;
7629
+ action: "hyperliquidOrder";
7630
+ size: string;
7631
+ side: "buy" | "sell";
7632
+ network: "testnet" | "mainnet";
7633
+ endpoint: string;
7634
+ coin: string;
7635
+ markPx: string;
7636
+ reduceOnly: boolean;
7637
+ unsignedAction?: unknown;
7638
+ notionalUsd?: string | undefined;
7639
+ leverage?: {
7640
+ type: "cross" | "isolated";
7641
+ value: number;
7642
+ } | undefined;
7643
+ }>, z.ZodObject<{
7644
+ action: z.ZodLiteral<"hyperliquidUpdateLeverage">;
7645
+ network: z.ZodEnum<["mainnet", "testnet"]>;
7646
+ endpoint: z.ZodString;
7647
+ unsignedAction: z.ZodUnknown;
7648
+ nonce: z.ZodNumber;
7649
+ coin: z.ZodString;
7650
+ leverage: z.ZodObject<{
7651
+ type: z.ZodEnum<["cross", "isolated"]>;
7652
+ value: z.ZodNumber;
7653
+ }, "strip", z.ZodTypeAny, {
7654
+ type: "cross" | "isolated";
7655
+ value: number;
7656
+ }, {
7657
+ type: "cross" | "isolated";
7658
+ value: number;
7659
+ }>;
7660
+ }, "strip", z.ZodTypeAny, {
7661
+ nonce: number;
7662
+ action: "hyperliquidUpdateLeverage";
7663
+ network: "testnet" | "mainnet";
7664
+ endpoint: string;
7665
+ coin: string;
7666
+ leverage: {
7667
+ type: "cross" | "isolated";
7668
+ value: number;
7669
+ };
7670
+ unsignedAction?: unknown;
7671
+ }, {
7672
+ nonce: number;
7673
+ action: "hyperliquidUpdateLeverage";
7674
+ network: "testnet" | "mainnet";
7675
+ endpoint: string;
7676
+ coin: string;
7677
+ leverage: {
7678
+ type: "cross" | "isolated";
7679
+ value: number;
7680
+ };
7681
+ unsignedAction?: unknown;
7682
+ }>, z.ZodObject<{
7683
+ action: z.ZodLiteral<"hyperliquidClosePosition">;
7684
+ network: z.ZodEnum<["mainnet", "testnet"]>;
7685
+ endpoint: z.ZodString;
7686
+ unsignedAction: z.ZodUnknown;
7687
+ nonce: z.ZodNumber;
7688
+ coin: z.ZodString;
7689
+ size: z.ZodString;
7690
+ side: z.ZodEnum<["buy", "sell"]>;
7691
+ markPx: z.ZodString;
7692
+ reduceOnly: z.ZodLiteral<true>;
7693
+ }, "strip", z.ZodTypeAny, {
7694
+ nonce: number;
7695
+ action: "hyperliquidClosePosition";
7696
+ size: string;
7697
+ side: "buy" | "sell";
7698
+ network: "testnet" | "mainnet";
7699
+ endpoint: string;
7700
+ coin: string;
7701
+ markPx: string;
7702
+ reduceOnly: true;
7703
+ unsignedAction?: unknown;
7704
+ }, {
7705
+ nonce: number;
7706
+ action: "hyperliquidClosePosition";
7707
+ size: string;
7708
+ side: "buy" | "sell";
7709
+ network: "testnet" | "mainnet";
7710
+ endpoint: string;
7711
+ coin: string;
7712
+ markPx: string;
7713
+ reduceOnly: true;
7714
+ unsignedAction?: unknown;
6857
7715
  }>]>>;
6858
7716
  }, "strip", z.ZodTypeAny, {
6859
7717
  type: "SingleTransaction";
@@ -6975,6 +7833,44 @@ export declare const PendingToolCallSchema: z.ZodObject<{
6975
7833
  amount: string;
6976
7834
  fromAddress: string;
6977
7835
  amountUSDValue?: string | undefined;
7836
+ } | {
7837
+ nonce: number;
7838
+ action: "hyperliquidOrder";
7839
+ size: string;
7840
+ side: "buy" | "sell";
7841
+ network: "testnet" | "mainnet";
7842
+ endpoint: string;
7843
+ coin: string;
7844
+ markPx: string;
7845
+ reduceOnly: boolean;
7846
+ unsignedAction?: unknown;
7847
+ notionalUsd?: string | undefined;
7848
+ leverage?: {
7849
+ type: "cross" | "isolated";
7850
+ value: number;
7851
+ } | undefined;
7852
+ } | {
7853
+ nonce: number;
7854
+ action: "hyperliquidUpdateLeverage";
7855
+ network: "testnet" | "mainnet";
7856
+ endpoint: string;
7857
+ coin: string;
7858
+ leverage: {
7859
+ type: "cross" | "isolated";
7860
+ value: number;
7861
+ };
7862
+ unsignedAction?: unknown;
7863
+ } | {
7864
+ nonce: number;
7865
+ action: "hyperliquidClosePosition";
7866
+ size: string;
7867
+ side: "buy" | "sell";
7868
+ network: "testnet" | "mainnet";
7869
+ endpoint: string;
7870
+ coin: string;
7871
+ markPx: string;
7872
+ reduceOnly: true;
7873
+ unsignedAction?: unknown;
6978
7874
  } | undefined;
6979
7875
  }, {
6980
7876
  type: "SingleTransaction";
@@ -7096,6 +7992,44 @@ export declare const PendingToolCallSchema: z.ZodObject<{
7096
7992
  amount: string;
7097
7993
  fromAddress: string;
7098
7994
  amountUSDValue?: string | undefined;
7995
+ } | {
7996
+ nonce: number;
7997
+ action: "hyperliquidOrder";
7998
+ size: string;
7999
+ side: "buy" | "sell";
8000
+ network: "testnet" | "mainnet";
8001
+ endpoint: string;
8002
+ coin: string;
8003
+ markPx: string;
8004
+ reduceOnly: boolean;
8005
+ unsignedAction?: unknown;
8006
+ notionalUsd?: string | undefined;
8007
+ leverage?: {
8008
+ type: "cross" | "isolated";
8009
+ value: number;
8010
+ } | undefined;
8011
+ } | {
8012
+ nonce: number;
8013
+ action: "hyperliquidUpdateLeverage";
8014
+ network: "testnet" | "mainnet";
8015
+ endpoint: string;
8016
+ coin: string;
8017
+ leverage: {
8018
+ type: "cross" | "isolated";
8019
+ value: number;
8020
+ };
8021
+ unsignedAction?: unknown;
8022
+ } | {
8023
+ nonce: number;
8024
+ action: "hyperliquidClosePosition";
8025
+ size: string;
8026
+ side: "buy" | "sell";
8027
+ network: "testnet" | "mainnet";
8028
+ endpoint: string;
8029
+ coin: string;
8030
+ markPx: string;
8031
+ reduceOnly: true;
8032
+ unsignedAction?: unknown;
7099
8033
  } | undefined;
7100
8034
  }>, z.ZodObject<{
7101
8035
  type: z.ZodLiteral<"BatchTransactions">;
@@ -7539,6 +8473,132 @@ export declare const PendingToolCallSchema: z.ZodObject<{
7539
8473
  amount: string;
7540
8474
  fromAddress: string;
7541
8475
  amountUSDValue?: string | undefined;
8476
+ }>, z.ZodObject<{
8477
+ action: z.ZodLiteral<"hyperliquidOrder">;
8478
+ network: z.ZodEnum<["mainnet", "testnet"]>;
8479
+ endpoint: z.ZodString;
8480
+ unsignedAction: z.ZodUnknown;
8481
+ nonce: z.ZodNumber;
8482
+ coin: z.ZodString;
8483
+ side: z.ZodEnum<["buy", "sell"]>;
8484
+ size: z.ZodString;
8485
+ notionalUsd: z.ZodOptional<z.ZodString>;
8486
+ markPx: z.ZodString;
8487
+ leverage: z.ZodOptional<z.ZodObject<{
8488
+ type: z.ZodEnum<["cross", "isolated"]>;
8489
+ value: z.ZodNumber;
8490
+ }, "strip", z.ZodTypeAny, {
8491
+ type: "cross" | "isolated";
8492
+ value: number;
8493
+ }, {
8494
+ type: "cross" | "isolated";
8495
+ value: number;
8496
+ }>>;
8497
+ reduceOnly: z.ZodBoolean;
8498
+ }, "strip", z.ZodTypeAny, {
8499
+ nonce: number;
8500
+ action: "hyperliquidOrder";
8501
+ size: string;
8502
+ side: "buy" | "sell";
8503
+ network: "testnet" | "mainnet";
8504
+ endpoint: string;
8505
+ coin: string;
8506
+ markPx: string;
8507
+ reduceOnly: boolean;
8508
+ unsignedAction?: unknown;
8509
+ notionalUsd?: string | undefined;
8510
+ leverage?: {
8511
+ type: "cross" | "isolated";
8512
+ value: number;
8513
+ } | undefined;
8514
+ }, {
8515
+ nonce: number;
8516
+ action: "hyperliquidOrder";
8517
+ size: string;
8518
+ side: "buy" | "sell";
8519
+ network: "testnet" | "mainnet";
8520
+ endpoint: string;
8521
+ coin: string;
8522
+ markPx: string;
8523
+ reduceOnly: boolean;
8524
+ unsignedAction?: unknown;
8525
+ notionalUsd?: string | undefined;
8526
+ leverage?: {
8527
+ type: "cross" | "isolated";
8528
+ value: number;
8529
+ } | undefined;
8530
+ }>, z.ZodObject<{
8531
+ action: z.ZodLiteral<"hyperliquidUpdateLeverage">;
8532
+ network: z.ZodEnum<["mainnet", "testnet"]>;
8533
+ endpoint: z.ZodString;
8534
+ unsignedAction: z.ZodUnknown;
8535
+ nonce: z.ZodNumber;
8536
+ coin: z.ZodString;
8537
+ leverage: z.ZodObject<{
8538
+ type: z.ZodEnum<["cross", "isolated"]>;
8539
+ value: z.ZodNumber;
8540
+ }, "strip", z.ZodTypeAny, {
8541
+ type: "cross" | "isolated";
8542
+ value: number;
8543
+ }, {
8544
+ type: "cross" | "isolated";
8545
+ value: number;
8546
+ }>;
8547
+ }, "strip", z.ZodTypeAny, {
8548
+ nonce: number;
8549
+ action: "hyperliquidUpdateLeverage";
8550
+ network: "testnet" | "mainnet";
8551
+ endpoint: string;
8552
+ coin: string;
8553
+ leverage: {
8554
+ type: "cross" | "isolated";
8555
+ value: number;
8556
+ };
8557
+ unsignedAction?: unknown;
8558
+ }, {
8559
+ nonce: number;
8560
+ action: "hyperliquidUpdateLeverage";
8561
+ network: "testnet" | "mainnet";
8562
+ endpoint: string;
8563
+ coin: string;
8564
+ leverage: {
8565
+ type: "cross" | "isolated";
8566
+ value: number;
8567
+ };
8568
+ unsignedAction?: unknown;
8569
+ }>, z.ZodObject<{
8570
+ action: z.ZodLiteral<"hyperliquidClosePosition">;
8571
+ network: z.ZodEnum<["mainnet", "testnet"]>;
8572
+ endpoint: z.ZodString;
8573
+ unsignedAction: z.ZodUnknown;
8574
+ nonce: z.ZodNumber;
8575
+ coin: z.ZodString;
8576
+ size: z.ZodString;
8577
+ side: z.ZodEnum<["buy", "sell"]>;
8578
+ markPx: z.ZodString;
8579
+ reduceOnly: z.ZodLiteral<true>;
8580
+ }, "strip", z.ZodTypeAny, {
8581
+ nonce: number;
8582
+ action: "hyperliquidClosePosition";
8583
+ size: string;
8584
+ side: "buy" | "sell";
8585
+ network: "testnet" | "mainnet";
8586
+ endpoint: string;
8587
+ coin: string;
8588
+ markPx: string;
8589
+ reduceOnly: true;
8590
+ unsignedAction?: unknown;
8591
+ }, {
8592
+ nonce: number;
8593
+ action: "hyperliquidClosePosition";
8594
+ size: string;
8595
+ side: "buy" | "sell";
8596
+ network: "testnet" | "mainnet";
8597
+ endpoint: string;
8598
+ coin: string;
8599
+ markPx: string;
8600
+ reduceOnly: true;
8601
+ unsignedAction?: unknown;
7542
8602
  }>]>>;
7543
8603
  }, "strip", z.ZodTypeAny, {
7544
8604
  type: "BatchTransactions";
@@ -7660,6 +8720,44 @@ export declare const PendingToolCallSchema: z.ZodObject<{
7660
8720
  amount: string;
7661
8721
  fromAddress: string;
7662
8722
  amountUSDValue?: string | undefined;
8723
+ } | {
8724
+ nonce: number;
8725
+ action: "hyperliquidOrder";
8726
+ size: string;
8727
+ side: "buy" | "sell";
8728
+ network: "testnet" | "mainnet";
8729
+ endpoint: string;
8730
+ coin: string;
8731
+ markPx: string;
8732
+ reduceOnly: boolean;
8733
+ unsignedAction?: unknown;
8734
+ notionalUsd?: string | undefined;
8735
+ leverage?: {
8736
+ type: "cross" | "isolated";
8737
+ value: number;
8738
+ } | undefined;
8739
+ } | {
8740
+ nonce: number;
8741
+ action: "hyperliquidUpdateLeverage";
8742
+ network: "testnet" | "mainnet";
8743
+ endpoint: string;
8744
+ coin: string;
8745
+ leverage: {
8746
+ type: "cross" | "isolated";
8747
+ value: number;
8748
+ };
8749
+ unsignedAction?: unknown;
8750
+ } | {
8751
+ nonce: number;
8752
+ action: "hyperliquidClosePosition";
8753
+ size: string;
8754
+ side: "buy" | "sell";
8755
+ network: "testnet" | "mainnet";
8756
+ endpoint: string;
8757
+ coin: string;
8758
+ markPx: string;
8759
+ reduceOnly: true;
8760
+ unsignedAction?: unknown;
7663
8761
  } | undefined;
7664
8762
  }, {
7665
8763
  type: "BatchTransactions";
@@ -7781,6 +8879,44 @@ export declare const PendingToolCallSchema: z.ZodObject<{
7781
8879
  amount: string;
7782
8880
  fromAddress: string;
7783
8881
  amountUSDValue?: string | undefined;
8882
+ } | {
8883
+ nonce: number;
8884
+ action: "hyperliquidOrder";
8885
+ size: string;
8886
+ side: "buy" | "sell";
8887
+ network: "testnet" | "mainnet";
8888
+ endpoint: string;
8889
+ coin: string;
8890
+ markPx: string;
8891
+ reduceOnly: boolean;
8892
+ unsignedAction?: unknown;
8893
+ notionalUsd?: string | undefined;
8894
+ leverage?: {
8895
+ type: "cross" | "isolated";
8896
+ value: number;
8897
+ } | undefined;
8898
+ } | {
8899
+ nonce: number;
8900
+ action: "hyperliquidUpdateLeverage";
8901
+ network: "testnet" | "mainnet";
8902
+ endpoint: string;
8903
+ coin: string;
8904
+ leverage: {
8905
+ type: "cross" | "isolated";
8906
+ value: number;
8907
+ };
8908
+ unsignedAction?: unknown;
8909
+ } | {
8910
+ nonce: number;
8911
+ action: "hyperliquidClosePosition";
8912
+ size: string;
8913
+ side: "buy" | "sell";
8914
+ network: "testnet" | "mainnet";
8915
+ endpoint: string;
8916
+ coin: string;
8917
+ markPx: string;
8918
+ reduceOnly: true;
8919
+ unsignedAction?: unknown;
7784
8920
  } | undefined;
7785
8921
  }>, z.ZodObject<{
7786
8922
  type: z.ZodLiteral<"SignatureRequests">;
@@ -9569,6 +10705,132 @@ export declare const PendingToolCallSchema: z.ZodObject<{
9569
10705
  amount: string;
9570
10706
  fromAddress: string;
9571
10707
  amountUSDValue?: string | undefined;
10708
+ }>, z.ZodObject<{
10709
+ action: z.ZodLiteral<"hyperliquidOrder">;
10710
+ network: z.ZodEnum<["mainnet", "testnet"]>;
10711
+ endpoint: z.ZodString;
10712
+ unsignedAction: z.ZodUnknown;
10713
+ nonce: z.ZodNumber;
10714
+ coin: z.ZodString;
10715
+ side: z.ZodEnum<["buy", "sell"]>;
10716
+ size: z.ZodString;
10717
+ notionalUsd: z.ZodOptional<z.ZodString>;
10718
+ markPx: z.ZodString;
10719
+ leverage: z.ZodOptional<z.ZodObject<{
10720
+ type: z.ZodEnum<["cross", "isolated"]>;
10721
+ value: z.ZodNumber;
10722
+ }, "strip", z.ZodTypeAny, {
10723
+ type: "cross" | "isolated";
10724
+ value: number;
10725
+ }, {
10726
+ type: "cross" | "isolated";
10727
+ value: number;
10728
+ }>>;
10729
+ reduceOnly: z.ZodBoolean;
10730
+ }, "strip", z.ZodTypeAny, {
10731
+ nonce: number;
10732
+ action: "hyperliquidOrder";
10733
+ size: string;
10734
+ side: "buy" | "sell";
10735
+ network: "testnet" | "mainnet";
10736
+ endpoint: string;
10737
+ coin: string;
10738
+ markPx: string;
10739
+ reduceOnly: boolean;
10740
+ unsignedAction?: unknown;
10741
+ notionalUsd?: string | undefined;
10742
+ leverage?: {
10743
+ type: "cross" | "isolated";
10744
+ value: number;
10745
+ } | undefined;
10746
+ }, {
10747
+ nonce: number;
10748
+ action: "hyperliquidOrder";
10749
+ size: string;
10750
+ side: "buy" | "sell";
10751
+ network: "testnet" | "mainnet";
10752
+ endpoint: string;
10753
+ coin: string;
10754
+ markPx: string;
10755
+ reduceOnly: boolean;
10756
+ unsignedAction?: unknown;
10757
+ notionalUsd?: string | undefined;
10758
+ leverage?: {
10759
+ type: "cross" | "isolated";
10760
+ value: number;
10761
+ } | undefined;
10762
+ }>, z.ZodObject<{
10763
+ action: z.ZodLiteral<"hyperliquidUpdateLeverage">;
10764
+ network: z.ZodEnum<["mainnet", "testnet"]>;
10765
+ endpoint: z.ZodString;
10766
+ unsignedAction: z.ZodUnknown;
10767
+ nonce: z.ZodNumber;
10768
+ coin: z.ZodString;
10769
+ leverage: z.ZodObject<{
10770
+ type: z.ZodEnum<["cross", "isolated"]>;
10771
+ value: z.ZodNumber;
10772
+ }, "strip", z.ZodTypeAny, {
10773
+ type: "cross" | "isolated";
10774
+ value: number;
10775
+ }, {
10776
+ type: "cross" | "isolated";
10777
+ value: number;
10778
+ }>;
10779
+ }, "strip", z.ZodTypeAny, {
10780
+ nonce: number;
10781
+ action: "hyperliquidUpdateLeverage";
10782
+ network: "testnet" | "mainnet";
10783
+ endpoint: string;
10784
+ coin: string;
10785
+ leverage: {
10786
+ type: "cross" | "isolated";
10787
+ value: number;
10788
+ };
10789
+ unsignedAction?: unknown;
10790
+ }, {
10791
+ nonce: number;
10792
+ action: "hyperliquidUpdateLeverage";
10793
+ network: "testnet" | "mainnet";
10794
+ endpoint: string;
10795
+ coin: string;
10796
+ leverage: {
10797
+ type: "cross" | "isolated";
10798
+ value: number;
10799
+ };
10800
+ unsignedAction?: unknown;
10801
+ }>, z.ZodObject<{
10802
+ action: z.ZodLiteral<"hyperliquidClosePosition">;
10803
+ network: z.ZodEnum<["mainnet", "testnet"]>;
10804
+ endpoint: z.ZodString;
10805
+ unsignedAction: z.ZodUnknown;
10806
+ nonce: z.ZodNumber;
10807
+ coin: z.ZodString;
10808
+ size: z.ZodString;
10809
+ side: z.ZodEnum<["buy", "sell"]>;
10810
+ markPx: z.ZodString;
10811
+ reduceOnly: z.ZodLiteral<true>;
10812
+ }, "strip", z.ZodTypeAny, {
10813
+ nonce: number;
10814
+ action: "hyperliquidClosePosition";
10815
+ size: string;
10816
+ side: "buy" | "sell";
10817
+ network: "testnet" | "mainnet";
10818
+ endpoint: string;
10819
+ coin: string;
10820
+ markPx: string;
10821
+ reduceOnly: true;
10822
+ unsignedAction?: unknown;
10823
+ }, {
10824
+ nonce: number;
10825
+ action: "hyperliquidClosePosition";
10826
+ size: string;
10827
+ side: "buy" | "sell";
10828
+ network: "testnet" | "mainnet";
10829
+ endpoint: string;
10830
+ coin: string;
10831
+ markPx: string;
10832
+ reduceOnly: true;
10833
+ unsignedAction?: unknown;
9572
10834
  }>]>>;
9573
10835
  }, "strip", z.ZodTypeAny, {
9574
10836
  type: "SignatureRequests";
@@ -9881,6 +11143,44 @@ export declare const PendingToolCallSchema: z.ZodObject<{
9881
11143
  amount: string;
9882
11144
  fromAddress: string;
9883
11145
  amountUSDValue?: string | undefined;
11146
+ } | {
11147
+ nonce: number;
11148
+ action: "hyperliquidOrder";
11149
+ size: string;
11150
+ side: "buy" | "sell";
11151
+ network: "testnet" | "mainnet";
11152
+ endpoint: string;
11153
+ coin: string;
11154
+ markPx: string;
11155
+ reduceOnly: boolean;
11156
+ unsignedAction?: unknown;
11157
+ notionalUsd?: string | undefined;
11158
+ leverage?: {
11159
+ type: "cross" | "isolated";
11160
+ value: number;
11161
+ } | undefined;
11162
+ } | {
11163
+ nonce: number;
11164
+ action: "hyperliquidUpdateLeverage";
11165
+ network: "testnet" | "mainnet";
11166
+ endpoint: string;
11167
+ coin: string;
11168
+ leverage: {
11169
+ type: "cross" | "isolated";
11170
+ value: number;
11171
+ };
11172
+ unsignedAction?: unknown;
11173
+ } | {
11174
+ nonce: number;
11175
+ action: "hyperliquidClosePosition";
11176
+ size: string;
11177
+ side: "buy" | "sell";
11178
+ network: "testnet" | "mainnet";
11179
+ endpoint: string;
11180
+ coin: string;
11181
+ markPx: string;
11182
+ reduceOnly: true;
11183
+ unsignedAction?: unknown;
9884
11184
  } | undefined;
9885
11185
  }, {
9886
11186
  type: "SignatureRequests";
@@ -10193,6 +11493,44 @@ export declare const PendingToolCallSchema: z.ZodObject<{
10193
11493
  amount: string;
10194
11494
  fromAddress: string;
10195
11495
  amountUSDValue?: string | undefined;
11496
+ } | {
11497
+ nonce: number;
11498
+ action: "hyperliquidOrder";
11499
+ size: string;
11500
+ side: "buy" | "sell";
11501
+ network: "testnet" | "mainnet";
11502
+ endpoint: string;
11503
+ coin: string;
11504
+ markPx: string;
11505
+ reduceOnly: boolean;
11506
+ unsignedAction?: unknown;
11507
+ notionalUsd?: string | undefined;
11508
+ leverage?: {
11509
+ type: "cross" | "isolated";
11510
+ value: number;
11511
+ } | undefined;
11512
+ } | {
11513
+ nonce: number;
11514
+ action: "hyperliquidUpdateLeverage";
11515
+ network: "testnet" | "mainnet";
11516
+ endpoint: string;
11517
+ coin: string;
11518
+ leverage: {
11519
+ type: "cross" | "isolated";
11520
+ value: number;
11521
+ };
11522
+ unsignedAction?: unknown;
11523
+ } | {
11524
+ nonce: number;
11525
+ action: "hyperliquidClosePosition";
11526
+ size: string;
11527
+ side: "buy" | "sell";
11528
+ network: "testnet" | "mainnet";
11529
+ endpoint: string;
11530
+ coin: string;
11531
+ markPx: string;
11532
+ reduceOnly: true;
11533
+ unsignedAction?: unknown;
10196
11534
  } | undefined;
10197
11535
  }>]>, "many">;
10198
11536
  actionMetadata: z.ZodOptional<z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
@@ -10599,6 +11937,132 @@ export declare const PendingToolCallSchema: z.ZodObject<{
10599
11937
  amount: string;
10600
11938
  fromAddress: string;
10601
11939
  amountUSDValue?: string | undefined;
11940
+ }>, z.ZodObject<{
11941
+ action: z.ZodLiteral<"hyperliquidOrder">;
11942
+ network: z.ZodEnum<["mainnet", "testnet"]>;
11943
+ endpoint: z.ZodString;
11944
+ unsignedAction: z.ZodUnknown;
11945
+ nonce: z.ZodNumber;
11946
+ coin: z.ZodString;
11947
+ side: z.ZodEnum<["buy", "sell"]>;
11948
+ size: z.ZodString;
11949
+ notionalUsd: z.ZodOptional<z.ZodString>;
11950
+ markPx: z.ZodString;
11951
+ leverage: z.ZodOptional<z.ZodObject<{
11952
+ type: z.ZodEnum<["cross", "isolated"]>;
11953
+ value: z.ZodNumber;
11954
+ }, "strip", z.ZodTypeAny, {
11955
+ type: "cross" | "isolated";
11956
+ value: number;
11957
+ }, {
11958
+ type: "cross" | "isolated";
11959
+ value: number;
11960
+ }>>;
11961
+ reduceOnly: z.ZodBoolean;
11962
+ }, "strip", z.ZodTypeAny, {
11963
+ nonce: number;
11964
+ action: "hyperliquidOrder";
11965
+ size: string;
11966
+ side: "buy" | "sell";
11967
+ network: "testnet" | "mainnet";
11968
+ endpoint: string;
11969
+ coin: string;
11970
+ markPx: string;
11971
+ reduceOnly: boolean;
11972
+ unsignedAction?: unknown;
11973
+ notionalUsd?: string | undefined;
11974
+ leverage?: {
11975
+ type: "cross" | "isolated";
11976
+ value: number;
11977
+ } | undefined;
11978
+ }, {
11979
+ nonce: number;
11980
+ action: "hyperliquidOrder";
11981
+ size: string;
11982
+ side: "buy" | "sell";
11983
+ network: "testnet" | "mainnet";
11984
+ endpoint: string;
11985
+ coin: string;
11986
+ markPx: string;
11987
+ reduceOnly: boolean;
11988
+ unsignedAction?: unknown;
11989
+ notionalUsd?: string | undefined;
11990
+ leverage?: {
11991
+ type: "cross" | "isolated";
11992
+ value: number;
11993
+ } | undefined;
11994
+ }>, z.ZodObject<{
11995
+ action: z.ZodLiteral<"hyperliquidUpdateLeverage">;
11996
+ network: z.ZodEnum<["mainnet", "testnet"]>;
11997
+ endpoint: z.ZodString;
11998
+ unsignedAction: z.ZodUnknown;
11999
+ nonce: z.ZodNumber;
12000
+ coin: z.ZodString;
12001
+ leverage: z.ZodObject<{
12002
+ type: z.ZodEnum<["cross", "isolated"]>;
12003
+ value: z.ZodNumber;
12004
+ }, "strip", z.ZodTypeAny, {
12005
+ type: "cross" | "isolated";
12006
+ value: number;
12007
+ }, {
12008
+ type: "cross" | "isolated";
12009
+ value: number;
12010
+ }>;
12011
+ }, "strip", z.ZodTypeAny, {
12012
+ nonce: number;
12013
+ action: "hyperliquidUpdateLeverage";
12014
+ network: "testnet" | "mainnet";
12015
+ endpoint: string;
12016
+ coin: string;
12017
+ leverage: {
12018
+ type: "cross" | "isolated";
12019
+ value: number;
12020
+ };
12021
+ unsignedAction?: unknown;
12022
+ }, {
12023
+ nonce: number;
12024
+ action: "hyperliquidUpdateLeverage";
12025
+ network: "testnet" | "mainnet";
12026
+ endpoint: string;
12027
+ coin: string;
12028
+ leverage: {
12029
+ type: "cross" | "isolated";
12030
+ value: number;
12031
+ };
12032
+ unsignedAction?: unknown;
12033
+ }>, z.ZodObject<{
12034
+ action: z.ZodLiteral<"hyperliquidClosePosition">;
12035
+ network: z.ZodEnum<["mainnet", "testnet"]>;
12036
+ endpoint: z.ZodString;
12037
+ unsignedAction: z.ZodUnknown;
12038
+ nonce: z.ZodNumber;
12039
+ coin: z.ZodString;
12040
+ size: z.ZodString;
12041
+ side: z.ZodEnum<["buy", "sell"]>;
12042
+ markPx: z.ZodString;
12043
+ reduceOnly: z.ZodLiteral<true>;
12044
+ }, "strip", z.ZodTypeAny, {
12045
+ nonce: number;
12046
+ action: "hyperliquidClosePosition";
12047
+ size: string;
12048
+ side: "buy" | "sell";
12049
+ network: "testnet" | "mainnet";
12050
+ endpoint: string;
12051
+ coin: string;
12052
+ markPx: string;
12053
+ reduceOnly: true;
12054
+ unsignedAction?: unknown;
12055
+ }, {
12056
+ nonce: number;
12057
+ action: "hyperliquidClosePosition";
12058
+ size: string;
12059
+ side: "buy" | "sell";
12060
+ network: "testnet" | "mainnet";
12061
+ endpoint: string;
12062
+ coin: string;
12063
+ markPx: string;
12064
+ reduceOnly: true;
12065
+ unsignedAction?: unknown;
10602
12066
  }>]>>;
10603
12067
  }, "strip", z.ZodTypeAny, {
10604
12068
  type: "ActionSequence";
@@ -10722,6 +12186,44 @@ export declare const PendingToolCallSchema: z.ZodObject<{
10722
12186
  amount: string;
10723
12187
  fromAddress: string;
10724
12188
  amountUSDValue?: string | undefined;
12189
+ } | {
12190
+ nonce: number;
12191
+ action: "hyperliquidOrder";
12192
+ size: string;
12193
+ side: "buy" | "sell";
12194
+ network: "testnet" | "mainnet";
12195
+ endpoint: string;
12196
+ coin: string;
12197
+ markPx: string;
12198
+ reduceOnly: boolean;
12199
+ unsignedAction?: unknown;
12200
+ notionalUsd?: string | undefined;
12201
+ leverage?: {
12202
+ type: "cross" | "isolated";
12203
+ value: number;
12204
+ } | undefined;
12205
+ } | {
12206
+ nonce: number;
12207
+ action: "hyperliquidUpdateLeverage";
12208
+ network: "testnet" | "mainnet";
12209
+ endpoint: string;
12210
+ coin: string;
12211
+ leverage: {
12212
+ type: "cross" | "isolated";
12213
+ value: number;
12214
+ };
12215
+ unsignedAction?: unknown;
12216
+ } | {
12217
+ nonce: number;
12218
+ action: "hyperliquidClosePosition";
12219
+ size: string;
12220
+ side: "buy" | "sell";
12221
+ network: "testnet" | "mainnet";
12222
+ endpoint: string;
12223
+ coin: string;
12224
+ markPx: string;
12225
+ reduceOnly: true;
12226
+ unsignedAction?: unknown;
10725
12227
  } | undefined;
10726
12228
  } | {
10727
12229
  type: "SingleTransaction";
@@ -10843,6 +12345,44 @@ export declare const PendingToolCallSchema: z.ZodObject<{
10843
12345
  amount: string;
10844
12346
  fromAddress: string;
10845
12347
  amountUSDValue?: string | undefined;
12348
+ } | {
12349
+ nonce: number;
12350
+ action: "hyperliquidOrder";
12351
+ size: string;
12352
+ side: "buy" | "sell";
12353
+ network: "testnet" | "mainnet";
12354
+ endpoint: string;
12355
+ coin: string;
12356
+ markPx: string;
12357
+ reduceOnly: boolean;
12358
+ unsignedAction?: unknown;
12359
+ notionalUsd?: string | undefined;
12360
+ leverage?: {
12361
+ type: "cross" | "isolated";
12362
+ value: number;
12363
+ } | undefined;
12364
+ } | {
12365
+ nonce: number;
12366
+ action: "hyperliquidUpdateLeverage";
12367
+ network: "testnet" | "mainnet";
12368
+ endpoint: string;
12369
+ coin: string;
12370
+ leverage: {
12371
+ type: "cross" | "isolated";
12372
+ value: number;
12373
+ };
12374
+ unsignedAction?: unknown;
12375
+ } | {
12376
+ nonce: number;
12377
+ action: "hyperliquidClosePosition";
12378
+ size: string;
12379
+ side: "buy" | "sell";
12380
+ network: "testnet" | "mainnet";
12381
+ endpoint: string;
12382
+ coin: string;
12383
+ markPx: string;
12384
+ reduceOnly: true;
12385
+ unsignedAction?: unknown;
10846
12386
  } | undefined;
10847
12387
  } | {
10848
12388
  type: "SignatureRequests";
@@ -11155,6 +12695,44 @@ export declare const PendingToolCallSchema: z.ZodObject<{
11155
12695
  amount: string;
11156
12696
  fromAddress: string;
11157
12697
  amountUSDValue?: string | undefined;
12698
+ } | {
12699
+ nonce: number;
12700
+ action: "hyperliquidOrder";
12701
+ size: string;
12702
+ side: "buy" | "sell";
12703
+ network: "testnet" | "mainnet";
12704
+ endpoint: string;
12705
+ coin: string;
12706
+ markPx: string;
12707
+ reduceOnly: boolean;
12708
+ unsignedAction?: unknown;
12709
+ notionalUsd?: string | undefined;
12710
+ leverage?: {
12711
+ type: "cross" | "isolated";
12712
+ value: number;
12713
+ } | undefined;
12714
+ } | {
12715
+ nonce: number;
12716
+ action: "hyperliquidUpdateLeverage";
12717
+ network: "testnet" | "mainnet";
12718
+ endpoint: string;
12719
+ coin: string;
12720
+ leverage: {
12721
+ type: "cross" | "isolated";
12722
+ value: number;
12723
+ };
12724
+ unsignedAction?: unknown;
12725
+ } | {
12726
+ nonce: number;
12727
+ action: "hyperliquidClosePosition";
12728
+ size: string;
12729
+ side: "buy" | "sell";
12730
+ network: "testnet" | "mainnet";
12731
+ endpoint: string;
12732
+ coin: string;
12733
+ markPx: string;
12734
+ reduceOnly: true;
12735
+ unsignedAction?: unknown;
11158
12736
  } | undefined;
11159
12737
  })[];
11160
12738
  actionMetadata?: {
@@ -11267,6 +12845,44 @@ export declare const PendingToolCallSchema: z.ZodObject<{
11267
12845
  amount: string;
11268
12846
  fromAddress: string;
11269
12847
  amountUSDValue?: string | undefined;
12848
+ } | {
12849
+ nonce: number;
12850
+ action: "hyperliquidOrder";
12851
+ size: string;
12852
+ side: "buy" | "sell";
12853
+ network: "testnet" | "mainnet";
12854
+ endpoint: string;
12855
+ coin: string;
12856
+ markPx: string;
12857
+ reduceOnly: boolean;
12858
+ unsignedAction?: unknown;
12859
+ notionalUsd?: string | undefined;
12860
+ leverage?: {
12861
+ type: "cross" | "isolated";
12862
+ value: number;
12863
+ } | undefined;
12864
+ } | {
12865
+ nonce: number;
12866
+ action: "hyperliquidUpdateLeverage";
12867
+ network: "testnet" | "mainnet";
12868
+ endpoint: string;
12869
+ coin: string;
12870
+ leverage: {
12871
+ type: "cross" | "isolated";
12872
+ value: number;
12873
+ };
12874
+ unsignedAction?: unknown;
12875
+ } | {
12876
+ nonce: number;
12877
+ action: "hyperliquidClosePosition";
12878
+ size: string;
12879
+ side: "buy" | "sell";
12880
+ network: "testnet" | "mainnet";
12881
+ endpoint: string;
12882
+ coin: string;
12883
+ markPx: string;
12884
+ reduceOnly: true;
12885
+ unsignedAction?: unknown;
11270
12886
  } | undefined;
11271
12887
  }, {
11272
12888
  type: "ActionSequence";
@@ -11390,6 +13006,44 @@ export declare const PendingToolCallSchema: z.ZodObject<{
11390
13006
  amount: string;
11391
13007
  fromAddress: string;
11392
13008
  amountUSDValue?: string | undefined;
13009
+ } | {
13010
+ nonce: number;
13011
+ action: "hyperliquidOrder";
13012
+ size: string;
13013
+ side: "buy" | "sell";
13014
+ network: "testnet" | "mainnet";
13015
+ endpoint: string;
13016
+ coin: string;
13017
+ markPx: string;
13018
+ reduceOnly: boolean;
13019
+ unsignedAction?: unknown;
13020
+ notionalUsd?: string | undefined;
13021
+ leverage?: {
13022
+ type: "cross" | "isolated";
13023
+ value: number;
13024
+ } | undefined;
13025
+ } | {
13026
+ nonce: number;
13027
+ action: "hyperliquidUpdateLeverage";
13028
+ network: "testnet" | "mainnet";
13029
+ endpoint: string;
13030
+ coin: string;
13031
+ leverage: {
13032
+ type: "cross" | "isolated";
13033
+ value: number;
13034
+ };
13035
+ unsignedAction?: unknown;
13036
+ } | {
13037
+ nonce: number;
13038
+ action: "hyperliquidClosePosition";
13039
+ size: string;
13040
+ side: "buy" | "sell";
13041
+ network: "testnet" | "mainnet";
13042
+ endpoint: string;
13043
+ coin: string;
13044
+ markPx: string;
13045
+ reduceOnly: true;
13046
+ unsignedAction?: unknown;
11393
13047
  } | undefined;
11394
13048
  } | {
11395
13049
  type: "SingleTransaction";
@@ -11511,6 +13165,44 @@ export declare const PendingToolCallSchema: z.ZodObject<{
11511
13165
  amount: string;
11512
13166
  fromAddress: string;
11513
13167
  amountUSDValue?: string | undefined;
13168
+ } | {
13169
+ nonce: number;
13170
+ action: "hyperliquidOrder";
13171
+ size: string;
13172
+ side: "buy" | "sell";
13173
+ network: "testnet" | "mainnet";
13174
+ endpoint: string;
13175
+ coin: string;
13176
+ markPx: string;
13177
+ reduceOnly: boolean;
13178
+ unsignedAction?: unknown;
13179
+ notionalUsd?: string | undefined;
13180
+ leverage?: {
13181
+ type: "cross" | "isolated";
13182
+ value: number;
13183
+ } | undefined;
13184
+ } | {
13185
+ nonce: number;
13186
+ action: "hyperliquidUpdateLeverage";
13187
+ network: "testnet" | "mainnet";
13188
+ endpoint: string;
13189
+ coin: string;
13190
+ leverage: {
13191
+ type: "cross" | "isolated";
13192
+ value: number;
13193
+ };
13194
+ unsignedAction?: unknown;
13195
+ } | {
13196
+ nonce: number;
13197
+ action: "hyperliquidClosePosition";
13198
+ size: string;
13199
+ side: "buy" | "sell";
13200
+ network: "testnet" | "mainnet";
13201
+ endpoint: string;
13202
+ coin: string;
13203
+ markPx: string;
13204
+ reduceOnly: true;
13205
+ unsignedAction?: unknown;
11514
13206
  } | undefined;
11515
13207
  } | {
11516
13208
  type: "SignatureRequests";
@@ -11823,6 +13515,44 @@ export declare const PendingToolCallSchema: z.ZodObject<{
11823
13515
  amount: string;
11824
13516
  fromAddress: string;
11825
13517
  amountUSDValue?: string | undefined;
13518
+ } | {
13519
+ nonce: number;
13520
+ action: "hyperliquidOrder";
13521
+ size: string;
13522
+ side: "buy" | "sell";
13523
+ network: "testnet" | "mainnet";
13524
+ endpoint: string;
13525
+ coin: string;
13526
+ markPx: string;
13527
+ reduceOnly: boolean;
13528
+ unsignedAction?: unknown;
13529
+ notionalUsd?: string | undefined;
13530
+ leverage?: {
13531
+ type: "cross" | "isolated";
13532
+ value: number;
13533
+ } | undefined;
13534
+ } | {
13535
+ nonce: number;
13536
+ action: "hyperliquidUpdateLeverage";
13537
+ network: "testnet" | "mainnet";
13538
+ endpoint: string;
13539
+ coin: string;
13540
+ leverage: {
13541
+ type: "cross" | "isolated";
13542
+ value: number;
13543
+ };
13544
+ unsignedAction?: unknown;
13545
+ } | {
13546
+ nonce: number;
13547
+ action: "hyperliquidClosePosition";
13548
+ size: string;
13549
+ side: "buy" | "sell";
13550
+ network: "testnet" | "mainnet";
13551
+ endpoint: string;
13552
+ coin: string;
13553
+ markPx: string;
13554
+ reduceOnly: true;
13555
+ unsignedAction?: unknown;
11826
13556
  } | undefined;
11827
13557
  })[];
11828
13558
  actionMetadata?: {
@@ -11935,6 +13665,44 @@ export declare const PendingToolCallSchema: z.ZodObject<{
11935
13665
  amount: string;
11936
13666
  fromAddress: string;
11937
13667
  amountUSDValue?: string | undefined;
13668
+ } | {
13669
+ nonce: number;
13670
+ action: "hyperliquidOrder";
13671
+ size: string;
13672
+ side: "buy" | "sell";
13673
+ network: "testnet" | "mainnet";
13674
+ endpoint: string;
13675
+ coin: string;
13676
+ markPx: string;
13677
+ reduceOnly: boolean;
13678
+ unsignedAction?: unknown;
13679
+ notionalUsd?: string | undefined;
13680
+ leverage?: {
13681
+ type: "cross" | "isolated";
13682
+ value: number;
13683
+ } | undefined;
13684
+ } | {
13685
+ nonce: number;
13686
+ action: "hyperliquidUpdateLeverage";
13687
+ network: "testnet" | "mainnet";
13688
+ endpoint: string;
13689
+ coin: string;
13690
+ leverage: {
13691
+ type: "cross" | "isolated";
13692
+ value: number;
13693
+ };
13694
+ unsignedAction?: unknown;
13695
+ } | {
13696
+ nonce: number;
13697
+ action: "hyperliquidClosePosition";
13698
+ size: string;
13699
+ side: "buy" | "sell";
13700
+ network: "testnet" | "mainnet";
13701
+ endpoint: string;
13702
+ coin: string;
13703
+ markPx: string;
13704
+ reduceOnly: true;
13705
+ unsignedAction?: unknown;
11938
13706
  } | undefined;
11939
13707
  }>]>;
11940
13708
  } & {
@@ -12481,6 +14249,44 @@ export declare const PendingToolCallSchema: z.ZodObject<{
12481
14249
  amount: string;
12482
14250
  fromAddress: string;
12483
14251
  amountUSDValue?: string | undefined;
14252
+ } | {
14253
+ nonce: number;
14254
+ action: "hyperliquidOrder";
14255
+ size: string;
14256
+ side: "buy" | "sell";
14257
+ network: "testnet" | "mainnet";
14258
+ endpoint: string;
14259
+ coin: string;
14260
+ markPx: string;
14261
+ reduceOnly: boolean;
14262
+ unsignedAction?: unknown;
14263
+ notionalUsd?: string | undefined;
14264
+ leverage?: {
14265
+ type: "cross" | "isolated";
14266
+ value: number;
14267
+ } | undefined;
14268
+ } | {
14269
+ nonce: number;
14270
+ action: "hyperliquidUpdateLeverage";
14271
+ network: "testnet" | "mainnet";
14272
+ endpoint: string;
14273
+ coin: string;
14274
+ leverage: {
14275
+ type: "cross" | "isolated";
14276
+ value: number;
14277
+ };
14278
+ unsignedAction?: unknown;
14279
+ } | {
14280
+ nonce: number;
14281
+ action: "hyperliquidClosePosition";
14282
+ size: string;
14283
+ side: "buy" | "sell";
14284
+ network: "testnet" | "mainnet";
14285
+ endpoint: string;
14286
+ coin: string;
14287
+ markPx: string;
14288
+ reduceOnly: true;
14289
+ unsignedAction?: unknown;
12484
14290
  } | undefined;
12485
14291
  } | {
12486
14292
  type: "SingleTransaction";
@@ -12602,6 +14408,44 @@ export declare const PendingToolCallSchema: z.ZodObject<{
12602
14408
  amount: string;
12603
14409
  fromAddress: string;
12604
14410
  amountUSDValue?: string | undefined;
14411
+ } | {
14412
+ nonce: number;
14413
+ action: "hyperliquidOrder";
14414
+ size: string;
14415
+ side: "buy" | "sell";
14416
+ network: "testnet" | "mainnet";
14417
+ endpoint: string;
14418
+ coin: string;
14419
+ markPx: string;
14420
+ reduceOnly: boolean;
14421
+ unsignedAction?: unknown;
14422
+ notionalUsd?: string | undefined;
14423
+ leverage?: {
14424
+ type: "cross" | "isolated";
14425
+ value: number;
14426
+ } | undefined;
14427
+ } | {
14428
+ nonce: number;
14429
+ action: "hyperliquidUpdateLeverage";
14430
+ network: "testnet" | "mainnet";
14431
+ endpoint: string;
14432
+ coin: string;
14433
+ leverage: {
14434
+ type: "cross" | "isolated";
14435
+ value: number;
14436
+ };
14437
+ unsignedAction?: unknown;
14438
+ } | {
14439
+ nonce: number;
14440
+ action: "hyperliquidClosePosition";
14441
+ size: string;
14442
+ side: "buy" | "sell";
14443
+ network: "testnet" | "mainnet";
14444
+ endpoint: string;
14445
+ coin: string;
14446
+ markPx: string;
14447
+ reduceOnly: true;
14448
+ unsignedAction?: unknown;
12605
14449
  } | undefined;
12606
14450
  } | {
12607
14451
  type: "SignatureRequests";
@@ -12914,6 +14758,44 @@ export declare const PendingToolCallSchema: z.ZodObject<{
12914
14758
  amount: string;
12915
14759
  fromAddress: string;
12916
14760
  amountUSDValue?: string | undefined;
14761
+ } | {
14762
+ nonce: number;
14763
+ action: "hyperliquidOrder";
14764
+ size: string;
14765
+ side: "buy" | "sell";
14766
+ network: "testnet" | "mainnet";
14767
+ endpoint: string;
14768
+ coin: string;
14769
+ markPx: string;
14770
+ reduceOnly: boolean;
14771
+ unsignedAction?: unknown;
14772
+ notionalUsd?: string | undefined;
14773
+ leverage?: {
14774
+ type: "cross" | "isolated";
14775
+ value: number;
14776
+ } | undefined;
14777
+ } | {
14778
+ nonce: number;
14779
+ action: "hyperliquidUpdateLeverage";
14780
+ network: "testnet" | "mainnet";
14781
+ endpoint: string;
14782
+ coin: string;
14783
+ leverage: {
14784
+ type: "cross" | "isolated";
14785
+ value: number;
14786
+ };
14787
+ unsignedAction?: unknown;
14788
+ } | {
14789
+ nonce: number;
14790
+ action: "hyperliquidClosePosition";
14791
+ size: string;
14792
+ side: "buy" | "sell";
14793
+ network: "testnet" | "mainnet";
14794
+ endpoint: string;
14795
+ coin: string;
14796
+ markPx: string;
14797
+ reduceOnly: true;
14798
+ unsignedAction?: unknown;
12917
14799
  } | undefined;
12918
14800
  } | {
12919
14801
  type: "ActionSequence";
@@ -13037,6 +14919,44 @@ export declare const PendingToolCallSchema: z.ZodObject<{
13037
14919
  amount: string;
13038
14920
  fromAddress: string;
13039
14921
  amountUSDValue?: string | undefined;
14922
+ } | {
14923
+ nonce: number;
14924
+ action: "hyperliquidOrder";
14925
+ size: string;
14926
+ side: "buy" | "sell";
14927
+ network: "testnet" | "mainnet";
14928
+ endpoint: string;
14929
+ coin: string;
14930
+ markPx: string;
14931
+ reduceOnly: boolean;
14932
+ unsignedAction?: unknown;
14933
+ notionalUsd?: string | undefined;
14934
+ leverage?: {
14935
+ type: "cross" | "isolated";
14936
+ value: number;
14937
+ } | undefined;
14938
+ } | {
14939
+ nonce: number;
14940
+ action: "hyperliquidUpdateLeverage";
14941
+ network: "testnet" | "mainnet";
14942
+ endpoint: string;
14943
+ coin: string;
14944
+ leverage: {
14945
+ type: "cross" | "isolated";
14946
+ value: number;
14947
+ };
14948
+ unsignedAction?: unknown;
14949
+ } | {
14950
+ nonce: number;
14951
+ action: "hyperliquidClosePosition";
14952
+ size: string;
14953
+ side: "buy" | "sell";
14954
+ network: "testnet" | "mainnet";
14955
+ endpoint: string;
14956
+ coin: string;
14957
+ markPx: string;
14958
+ reduceOnly: true;
14959
+ unsignedAction?: unknown;
13040
14960
  } | undefined;
13041
14961
  } | {
13042
14962
  type: "SingleTransaction";
@@ -13158,6 +15078,44 @@ export declare const PendingToolCallSchema: z.ZodObject<{
13158
15078
  amount: string;
13159
15079
  fromAddress: string;
13160
15080
  amountUSDValue?: string | undefined;
15081
+ } | {
15082
+ nonce: number;
15083
+ action: "hyperliquidOrder";
15084
+ size: string;
15085
+ side: "buy" | "sell";
15086
+ network: "testnet" | "mainnet";
15087
+ endpoint: string;
15088
+ coin: string;
15089
+ markPx: string;
15090
+ reduceOnly: boolean;
15091
+ unsignedAction?: unknown;
15092
+ notionalUsd?: string | undefined;
15093
+ leverage?: {
15094
+ type: "cross" | "isolated";
15095
+ value: number;
15096
+ } | undefined;
15097
+ } | {
15098
+ nonce: number;
15099
+ action: "hyperliquidUpdateLeverage";
15100
+ network: "testnet" | "mainnet";
15101
+ endpoint: string;
15102
+ coin: string;
15103
+ leverage: {
15104
+ type: "cross" | "isolated";
15105
+ value: number;
15106
+ };
15107
+ unsignedAction?: unknown;
15108
+ } | {
15109
+ nonce: number;
15110
+ action: "hyperliquidClosePosition";
15111
+ size: string;
15112
+ side: "buy" | "sell";
15113
+ network: "testnet" | "mainnet";
15114
+ endpoint: string;
15115
+ coin: string;
15116
+ markPx: string;
15117
+ reduceOnly: true;
15118
+ unsignedAction?: unknown;
13161
15119
  } | undefined;
13162
15120
  } | {
13163
15121
  type: "SignatureRequests";
@@ -13470,6 +15428,44 @@ export declare const PendingToolCallSchema: z.ZodObject<{
13470
15428
  amount: string;
13471
15429
  fromAddress: string;
13472
15430
  amountUSDValue?: string | undefined;
15431
+ } | {
15432
+ nonce: number;
15433
+ action: "hyperliquidOrder";
15434
+ size: string;
15435
+ side: "buy" | "sell";
15436
+ network: "testnet" | "mainnet";
15437
+ endpoint: string;
15438
+ coin: string;
15439
+ markPx: string;
15440
+ reduceOnly: boolean;
15441
+ unsignedAction?: unknown;
15442
+ notionalUsd?: string | undefined;
15443
+ leverage?: {
15444
+ type: "cross" | "isolated";
15445
+ value: number;
15446
+ } | undefined;
15447
+ } | {
15448
+ nonce: number;
15449
+ action: "hyperliquidUpdateLeverage";
15450
+ network: "testnet" | "mainnet";
15451
+ endpoint: string;
15452
+ coin: string;
15453
+ leverage: {
15454
+ type: "cross" | "isolated";
15455
+ value: number;
15456
+ };
15457
+ unsignedAction?: unknown;
15458
+ } | {
15459
+ nonce: number;
15460
+ action: "hyperliquidClosePosition";
15461
+ size: string;
15462
+ side: "buy" | "sell";
15463
+ network: "testnet" | "mainnet";
15464
+ endpoint: string;
15465
+ coin: string;
15466
+ markPx: string;
15467
+ reduceOnly: true;
15468
+ unsignedAction?: unknown;
13473
15469
  } | undefined;
13474
15470
  })[];
13475
15471
  actionMetadata?: {
@@ -13582,6 +15578,44 @@ export declare const PendingToolCallSchema: z.ZodObject<{
13582
15578
  amount: string;
13583
15579
  fromAddress: string;
13584
15580
  amountUSDValue?: string | undefined;
15581
+ } | {
15582
+ nonce: number;
15583
+ action: "hyperliquidOrder";
15584
+ size: string;
15585
+ side: "buy" | "sell";
15586
+ network: "testnet" | "mainnet";
15587
+ endpoint: string;
15588
+ coin: string;
15589
+ markPx: string;
15590
+ reduceOnly: boolean;
15591
+ unsignedAction?: unknown;
15592
+ notionalUsd?: string | undefined;
15593
+ leverage?: {
15594
+ type: "cross" | "isolated";
15595
+ value: number;
15596
+ } | undefined;
15597
+ } | {
15598
+ nonce: number;
15599
+ action: "hyperliquidUpdateLeverage";
15600
+ network: "testnet" | "mainnet";
15601
+ endpoint: string;
15602
+ coin: string;
15603
+ leverage: {
15604
+ type: "cross" | "isolated";
15605
+ value: number;
15606
+ };
15607
+ unsignedAction?: unknown;
15608
+ } | {
15609
+ nonce: number;
15610
+ action: "hyperliquidClosePosition";
15611
+ size: string;
15612
+ side: "buy" | "sell";
15613
+ network: "testnet" | "mainnet";
15614
+ endpoint: string;
15615
+ coin: string;
15616
+ markPx: string;
15617
+ reduceOnly: true;
15618
+ unsignedAction?: unknown;
13585
15619
  } | undefined;
13586
15620
  };
13587
15621
  simulated?: boolean | undefined;
@@ -13778,6 +15812,44 @@ export declare const PendingToolCallSchema: z.ZodObject<{
13778
15812
  amount: string;
13779
15813
  fromAddress: string;
13780
15814
  amountUSDValue?: string | undefined;
15815
+ } | {
15816
+ nonce: number;
15817
+ action: "hyperliquidOrder";
15818
+ size: string;
15819
+ side: "buy" | "sell";
15820
+ network: "testnet" | "mainnet";
15821
+ endpoint: string;
15822
+ coin: string;
15823
+ markPx: string;
15824
+ reduceOnly: boolean;
15825
+ unsignedAction?: unknown;
15826
+ notionalUsd?: string | undefined;
15827
+ leverage?: {
15828
+ type: "cross" | "isolated";
15829
+ value: number;
15830
+ } | undefined;
15831
+ } | {
15832
+ nonce: number;
15833
+ action: "hyperliquidUpdateLeverage";
15834
+ network: "testnet" | "mainnet";
15835
+ endpoint: string;
15836
+ coin: string;
15837
+ leverage: {
15838
+ type: "cross" | "isolated";
15839
+ value: number;
15840
+ };
15841
+ unsignedAction?: unknown;
15842
+ } | {
15843
+ nonce: number;
15844
+ action: "hyperliquidClosePosition";
15845
+ size: string;
15846
+ side: "buy" | "sell";
15847
+ network: "testnet" | "mainnet";
15848
+ endpoint: string;
15849
+ coin: string;
15850
+ markPx: string;
15851
+ reduceOnly: true;
15852
+ unsignedAction?: unknown;
13781
15853
  } | undefined;
13782
15854
  } | {
13783
15855
  type: "SingleTransaction";
@@ -13899,6 +15971,44 @@ export declare const PendingToolCallSchema: z.ZodObject<{
13899
15971
  amount: string;
13900
15972
  fromAddress: string;
13901
15973
  amountUSDValue?: string | undefined;
15974
+ } | {
15975
+ nonce: number;
15976
+ action: "hyperliquidOrder";
15977
+ size: string;
15978
+ side: "buy" | "sell";
15979
+ network: "testnet" | "mainnet";
15980
+ endpoint: string;
15981
+ coin: string;
15982
+ markPx: string;
15983
+ reduceOnly: boolean;
15984
+ unsignedAction?: unknown;
15985
+ notionalUsd?: string | undefined;
15986
+ leverage?: {
15987
+ type: "cross" | "isolated";
15988
+ value: number;
15989
+ } | undefined;
15990
+ } | {
15991
+ nonce: number;
15992
+ action: "hyperliquidUpdateLeverage";
15993
+ network: "testnet" | "mainnet";
15994
+ endpoint: string;
15995
+ coin: string;
15996
+ leverage: {
15997
+ type: "cross" | "isolated";
15998
+ value: number;
15999
+ };
16000
+ unsignedAction?: unknown;
16001
+ } | {
16002
+ nonce: number;
16003
+ action: "hyperliquidClosePosition";
16004
+ size: string;
16005
+ side: "buy" | "sell";
16006
+ network: "testnet" | "mainnet";
16007
+ endpoint: string;
16008
+ coin: string;
16009
+ markPx: string;
16010
+ reduceOnly: true;
16011
+ unsignedAction?: unknown;
13902
16012
  } | undefined;
13903
16013
  } | {
13904
16014
  type: "SignatureRequests";
@@ -14211,6 +16321,44 @@ export declare const PendingToolCallSchema: z.ZodObject<{
14211
16321
  amount: string;
14212
16322
  fromAddress: string;
14213
16323
  amountUSDValue?: string | undefined;
16324
+ } | {
16325
+ nonce: number;
16326
+ action: "hyperliquidOrder";
16327
+ size: string;
16328
+ side: "buy" | "sell";
16329
+ network: "testnet" | "mainnet";
16330
+ endpoint: string;
16331
+ coin: string;
16332
+ markPx: string;
16333
+ reduceOnly: boolean;
16334
+ unsignedAction?: unknown;
16335
+ notionalUsd?: string | undefined;
16336
+ leverage?: {
16337
+ type: "cross" | "isolated";
16338
+ value: number;
16339
+ } | undefined;
16340
+ } | {
16341
+ nonce: number;
16342
+ action: "hyperliquidUpdateLeverage";
16343
+ network: "testnet" | "mainnet";
16344
+ endpoint: string;
16345
+ coin: string;
16346
+ leverage: {
16347
+ type: "cross" | "isolated";
16348
+ value: number;
16349
+ };
16350
+ unsignedAction?: unknown;
16351
+ } | {
16352
+ nonce: number;
16353
+ action: "hyperliquidClosePosition";
16354
+ size: string;
16355
+ side: "buy" | "sell";
16356
+ network: "testnet" | "mainnet";
16357
+ endpoint: string;
16358
+ coin: string;
16359
+ markPx: string;
16360
+ reduceOnly: true;
16361
+ unsignedAction?: unknown;
14214
16362
  } | undefined;
14215
16363
  } | {
14216
16364
  type: "ActionSequence";
@@ -14334,6 +16482,44 @@ export declare const PendingToolCallSchema: z.ZodObject<{
14334
16482
  amount: string;
14335
16483
  fromAddress: string;
14336
16484
  amountUSDValue?: string | undefined;
16485
+ } | {
16486
+ nonce: number;
16487
+ action: "hyperliquidOrder";
16488
+ size: string;
16489
+ side: "buy" | "sell";
16490
+ network: "testnet" | "mainnet";
16491
+ endpoint: string;
16492
+ coin: string;
16493
+ markPx: string;
16494
+ reduceOnly: boolean;
16495
+ unsignedAction?: unknown;
16496
+ notionalUsd?: string | undefined;
16497
+ leverage?: {
16498
+ type: "cross" | "isolated";
16499
+ value: number;
16500
+ } | undefined;
16501
+ } | {
16502
+ nonce: number;
16503
+ action: "hyperliquidUpdateLeverage";
16504
+ network: "testnet" | "mainnet";
16505
+ endpoint: string;
16506
+ coin: string;
16507
+ leverage: {
16508
+ type: "cross" | "isolated";
16509
+ value: number;
16510
+ };
16511
+ unsignedAction?: unknown;
16512
+ } | {
16513
+ nonce: number;
16514
+ action: "hyperliquidClosePosition";
16515
+ size: string;
16516
+ side: "buy" | "sell";
16517
+ network: "testnet" | "mainnet";
16518
+ endpoint: string;
16519
+ coin: string;
16520
+ markPx: string;
16521
+ reduceOnly: true;
16522
+ unsignedAction?: unknown;
14337
16523
  } | undefined;
14338
16524
  } | {
14339
16525
  type: "SingleTransaction";
@@ -14455,6 +16641,44 @@ export declare const PendingToolCallSchema: z.ZodObject<{
14455
16641
  amount: string;
14456
16642
  fromAddress: string;
14457
16643
  amountUSDValue?: string | undefined;
16644
+ } | {
16645
+ nonce: number;
16646
+ action: "hyperliquidOrder";
16647
+ size: string;
16648
+ side: "buy" | "sell";
16649
+ network: "testnet" | "mainnet";
16650
+ endpoint: string;
16651
+ coin: string;
16652
+ markPx: string;
16653
+ reduceOnly: boolean;
16654
+ unsignedAction?: unknown;
16655
+ notionalUsd?: string | undefined;
16656
+ leverage?: {
16657
+ type: "cross" | "isolated";
16658
+ value: number;
16659
+ } | undefined;
16660
+ } | {
16661
+ nonce: number;
16662
+ action: "hyperliquidUpdateLeverage";
16663
+ network: "testnet" | "mainnet";
16664
+ endpoint: string;
16665
+ coin: string;
16666
+ leverage: {
16667
+ type: "cross" | "isolated";
16668
+ value: number;
16669
+ };
16670
+ unsignedAction?: unknown;
16671
+ } | {
16672
+ nonce: number;
16673
+ action: "hyperliquidClosePosition";
16674
+ size: string;
16675
+ side: "buy" | "sell";
16676
+ network: "testnet" | "mainnet";
16677
+ endpoint: string;
16678
+ coin: string;
16679
+ markPx: string;
16680
+ reduceOnly: true;
16681
+ unsignedAction?: unknown;
14458
16682
  } | undefined;
14459
16683
  } | {
14460
16684
  type: "SignatureRequests";
@@ -14767,6 +16991,44 @@ export declare const PendingToolCallSchema: z.ZodObject<{
14767
16991
  amount: string;
14768
16992
  fromAddress: string;
14769
16993
  amountUSDValue?: string | undefined;
16994
+ } | {
16995
+ nonce: number;
16996
+ action: "hyperliquidOrder";
16997
+ size: string;
16998
+ side: "buy" | "sell";
16999
+ network: "testnet" | "mainnet";
17000
+ endpoint: string;
17001
+ coin: string;
17002
+ markPx: string;
17003
+ reduceOnly: boolean;
17004
+ unsignedAction?: unknown;
17005
+ notionalUsd?: string | undefined;
17006
+ leverage?: {
17007
+ type: "cross" | "isolated";
17008
+ value: number;
17009
+ } | undefined;
17010
+ } | {
17011
+ nonce: number;
17012
+ action: "hyperliquidUpdateLeverage";
17013
+ network: "testnet" | "mainnet";
17014
+ endpoint: string;
17015
+ coin: string;
17016
+ leverage: {
17017
+ type: "cross" | "isolated";
17018
+ value: number;
17019
+ };
17020
+ unsignedAction?: unknown;
17021
+ } | {
17022
+ nonce: number;
17023
+ action: "hyperliquidClosePosition";
17024
+ size: string;
17025
+ side: "buy" | "sell";
17026
+ network: "testnet" | "mainnet";
17027
+ endpoint: string;
17028
+ coin: string;
17029
+ markPx: string;
17030
+ reduceOnly: true;
17031
+ unsignedAction?: unknown;
14770
17032
  } | undefined;
14771
17033
  })[];
14772
17034
  actionMetadata?: {
@@ -14879,6 +17141,44 @@ export declare const PendingToolCallSchema: z.ZodObject<{
14879
17141
  amount: string;
14880
17142
  fromAddress: string;
14881
17143
  amountUSDValue?: string | undefined;
17144
+ } | {
17145
+ nonce: number;
17146
+ action: "hyperliquidOrder";
17147
+ size: string;
17148
+ side: "buy" | "sell";
17149
+ network: "testnet" | "mainnet";
17150
+ endpoint: string;
17151
+ coin: string;
17152
+ markPx: string;
17153
+ reduceOnly: boolean;
17154
+ unsignedAction?: unknown;
17155
+ notionalUsd?: string | undefined;
17156
+ leverage?: {
17157
+ type: "cross" | "isolated";
17158
+ value: number;
17159
+ } | undefined;
17160
+ } | {
17161
+ nonce: number;
17162
+ action: "hyperliquidUpdateLeverage";
17163
+ network: "testnet" | "mainnet";
17164
+ endpoint: string;
17165
+ coin: string;
17166
+ leverage: {
17167
+ type: "cross" | "isolated";
17168
+ value: number;
17169
+ };
17170
+ unsignedAction?: unknown;
17171
+ } | {
17172
+ nonce: number;
17173
+ action: "hyperliquidClosePosition";
17174
+ size: string;
17175
+ side: "buy" | "sell";
17176
+ network: "testnet" | "mainnet";
17177
+ endpoint: string;
17178
+ coin: string;
17179
+ markPx: string;
17180
+ reduceOnly: true;
17181
+ unsignedAction?: unknown;
14882
17182
  } | undefined;
14883
17183
  };
14884
17184
  simulated?: boolean | undefined;