@privy-io/api-types 0.3.4 → 0.5.0

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 (118) hide show
  1. package/CHANGELOG.md +82 -0
  2. package/LICENSE +1 -1
  3. package/README.md +31 -0
  4. package/client.d.mts +21 -11
  5. package/client.d.mts.map +1 -1
  6. package/client.d.ts +21 -11
  7. package/client.d.ts.map +1 -1
  8. package/client.js +20 -3
  9. package/client.js.map +1 -1
  10. package/client.mjs +20 -3
  11. package/client.mjs.map +1 -1
  12. package/internal/parse.d.mts.map +1 -1
  13. package/internal/parse.d.ts.map +1 -1
  14. package/internal/parse.js +5 -0
  15. package/internal/parse.js.map +1 -1
  16. package/internal/parse.mjs +5 -0
  17. package/internal/parse.mjs.map +1 -1
  18. package/package.json +1 -1
  19. package/resources/aggregations.d.mts +507 -0
  20. package/resources/aggregations.d.mts.map +1 -0
  21. package/resources/aggregations.d.ts +507 -0
  22. package/resources/aggregations.d.ts.map +1 -0
  23. package/resources/aggregations.js +9 -0
  24. package/resources/aggregations.js.map +1 -0
  25. package/resources/aggregations.mjs +5 -0
  26. package/resources/aggregations.mjs.map +1 -0
  27. package/resources/client-auth.d.mts +183 -24
  28. package/resources/client-auth.d.mts.map +1 -1
  29. package/resources/client-auth.d.ts +183 -24
  30. package/resources/client-auth.d.ts.map +1 -1
  31. package/resources/funding.d.mts +4 -4
  32. package/resources/funding.d.mts.map +1 -1
  33. package/resources/funding.d.ts +4 -4
  34. package/resources/funding.d.ts.map +1 -1
  35. package/resources/index.d.mts +7 -4
  36. package/resources/index.d.mts.map +1 -1
  37. package/resources/index.d.ts +7 -4
  38. package/resources/index.d.ts.map +1 -1
  39. package/resources/index.js +7 -1
  40. package/resources/index.js.map +1 -1
  41. package/resources/index.mjs +3 -0
  42. package/resources/index.mjs.map +1 -1
  43. package/resources/key-quorums.d.mts +4 -1
  44. package/resources/key-quorums.d.mts.map +1 -1
  45. package/resources/key-quorums.d.ts +4 -1
  46. package/resources/key-quorums.d.ts.map +1 -1
  47. package/resources/policies.d.mts +89 -135
  48. package/resources/policies.d.mts.map +1 -1
  49. package/resources/policies.d.ts +89 -135
  50. package/resources/policies.d.ts.map +1 -1
  51. package/resources/policies.js.map +1 -1
  52. package/resources/policies.mjs.map +1 -1
  53. package/resources/users.d.mts +679 -415
  54. package/resources/users.d.mts.map +1 -1
  55. package/resources/users.d.ts +679 -415
  56. package/resources/users.d.ts.map +1 -1
  57. package/resources/wallets/balance.d.mts +11 -6
  58. package/resources/wallets/balance.d.mts.map +1 -1
  59. package/resources/wallets/balance.d.ts +11 -6
  60. package/resources/wallets/balance.d.ts.map +1 -1
  61. package/resources/wallets/balance.js +1 -2
  62. package/resources/wallets/balance.js.map +1 -1
  63. package/resources/wallets/balance.mjs +1 -2
  64. package/resources/wallets/balance.mjs.map +1 -1
  65. package/resources/wallets/index.d.mts +1 -1
  66. package/resources/wallets/index.d.mts.map +1 -1
  67. package/resources/wallets/index.d.ts +1 -1
  68. package/resources/wallets/index.d.ts.map +1 -1
  69. package/resources/wallets/index.js.map +1 -1
  70. package/resources/wallets/index.mjs.map +1 -1
  71. package/resources/wallets/transactions.d.mts +3 -3
  72. package/resources/wallets/transactions.d.mts.map +1 -1
  73. package/resources/wallets/transactions.d.ts +3 -3
  74. package/resources/wallets/transactions.d.ts.map +1 -1
  75. package/resources/wallets/wallets.d.mts +347 -65
  76. package/resources/wallets/wallets.d.mts.map +1 -1
  77. package/resources/wallets/wallets.d.ts +347 -65
  78. package/resources/wallets/wallets.d.ts.map +1 -1
  79. package/resources/wallets/wallets.js +1 -1
  80. package/resources/wallets/wallets.js.map +1 -1
  81. package/resources/wallets/wallets.mjs +1 -1
  82. package/resources/wallets/wallets.mjs.map +1 -1
  83. package/resources/webhooks.d.mts +940 -0
  84. package/resources/webhooks.d.mts.map +1 -0
  85. package/resources/webhooks.d.ts +940 -0
  86. package/resources/webhooks.d.ts.map +1 -0
  87. package/resources/webhooks.js +9 -0
  88. package/resources/webhooks.js.map +1 -0
  89. package/resources/webhooks.mjs +5 -0
  90. package/resources/webhooks.mjs.map +1 -0
  91. package/resources/yield.d.mts +264 -0
  92. package/resources/yield.d.mts.map +1 -0
  93. package/resources/yield.d.ts +264 -0
  94. package/resources/yield.d.ts.map +1 -0
  95. package/resources/yield.js +9 -0
  96. package/resources/yield.js.map +1 -0
  97. package/resources/yield.mjs +5 -0
  98. package/resources/yield.mjs.map +1 -0
  99. package/src/client.ts +331 -16
  100. package/src/internal/parse.ts +6 -0
  101. package/src/resources/aggregations.ts +853 -0
  102. package/src/resources/client-auth.ts +309 -35
  103. package/src/resources/funding.ts +4 -1
  104. package/src/resources/index.ts +156 -9
  105. package/src/resources/key-quorums.ts +4 -1
  106. package/src/resources/policies.ts +129 -214
  107. package/src/resources/users.ts +974 -650
  108. package/src/resources/wallets/balance.ts +24 -6
  109. package/src/resources/wallets/index.ts +13 -3
  110. package/src/resources/wallets/transactions.ts +11 -3
  111. package/src/resources/wallets/wallets.ts +468 -91
  112. package/src/resources/webhooks.ts +1287 -0
  113. package/src/resources/yield.ts +330 -0
  114. package/src/version.ts +1 -1
  115. package/version.d.mts +1 -1
  116. package/version.d.ts +1 -1
  117. package/version.js +1 -1
  118. package/version.mjs +1 -1
@@ -1,6 +1,8 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../core/resource';
4
+ import * as PoliciesAPI from './policies';
5
+ import * as WalletsAPI from './wallets/wallets';
4
6
  import { APIPromise } from '../core/api-promise';
5
7
  import { buildHeaders } from '../internal/headers';
6
8
  import { RequestOptions } from '../internal/request-options';
@@ -253,6 +255,84 @@ export class Policies extends APIResource {
253
255
  }
254
256
  }
255
257
 
258
+ /**
259
+ * Operator to use for SUI transaction command conditions. Only 'eq' and 'in' are
260
+ * supported for command names.
261
+ */
262
+ export type SuiTransactionCommandOperator = 'eq' | 'in';
263
+
264
+ /**
265
+ * Supported fields for SUI TransferObjects command conditions. Only 'recipient'
266
+ * and 'amount' are supported.
267
+ */
268
+ export type SuiTransferObjectsCommandField = 'recipient' | 'amount';
269
+
270
+ /**
271
+ * TRON transaction fields for TransferContract and TriggerSmartContract
272
+ * transaction types.
273
+ */
274
+ export interface TronTransactionCondition {
275
+ /**
276
+ * Supported TRON transaction fields in format "TransactionType.field_name"
277
+ */
278
+ field:
279
+ | 'TransferContract.to_address'
280
+ | 'TransferContract.amount'
281
+ | 'TriggerSmartContract.contract_address'
282
+ | 'TriggerSmartContract.call_value'
283
+ | 'TriggerSmartContract.token_id'
284
+ | 'TriggerSmartContract.call_token_value';
285
+
286
+ field_source: 'tron_transaction';
287
+
288
+ operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
289
+
290
+ value: string | Array<string>;
291
+ }
292
+
293
+ /**
294
+ * SUI transaction command attributes, enables allowlisting specific command types.
295
+ * Allowed commands: 'TransferObjects', 'SplitCoins', 'MergeCoins'. Only 'eq' and
296
+ * 'in' operators are supported.
297
+ */
298
+ export interface SuiTransactionCommandCondition {
299
+ field: 'commandName';
300
+
301
+ field_source: 'sui_transaction_command';
302
+
303
+ /**
304
+ * Operator to use for SUI transaction command conditions. Only 'eq' and 'in' are
305
+ * supported for command names.
306
+ */
307
+ operator: SuiTransactionCommandOperator;
308
+
309
+ /**
310
+ * Command name(s) to match. Must be one of: 'TransferObjects', 'SplitCoins',
311
+ * 'MergeCoins'
312
+ */
313
+ value: WalletsAPI.SuiCommandName | Array<WalletsAPI.SuiCommandName>;
314
+ }
315
+
316
+ /**
317
+ * SUI TransferObjects command attributes, including recipient and amount fields.
318
+ */
319
+ export interface SuiTransferObjectsCommandCondition {
320
+ /**
321
+ * Supported fields for SUI TransferObjects command conditions. Only 'recipient'
322
+ * and 'amount' are supported.
323
+ */
324
+ field: SuiTransferObjectsCommandField;
325
+
326
+ field_source: 'sui_transfer_objects_command';
327
+
328
+ operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
329
+
330
+ value: string | Array<string>;
331
+ }
332
+
333
+ /**
334
+ * A policy for controlling wallet operations.
335
+ */
256
336
  export interface Policy {
257
337
  /**
258
338
  * Unique ID of the created policy. This will be the primary identifier when using
@@ -263,7 +343,7 @@ export interface Policy {
263
343
  /**
264
344
  * The chain type the policy applies to.
265
345
  */
266
- chain_type: 'ethereum' | 'solana' | 'tron';
346
+ chain_type: 'ethereum' | 'solana' | 'tron' | 'sui';
267
347
 
268
348
  /**
269
349
  * Unix timestamp of when the policy was created in milliseconds.
@@ -311,7 +391,9 @@ export namespace Policy {
311
391
  | Rule.SolanaSystemProgramInstructionCondition
312
392
  | Rule.SolanaTokenProgramInstructionCondition
313
393
  | Rule.SystemCondition
314
- | Rule.TronTransactionCondition
394
+ | PoliciesAPI.TronTransactionCondition
395
+ | PoliciesAPI.SuiTransactionCommandCondition
396
+ | PoliciesAPI.SuiTransferObjectsCommandCondition
315
397
  >;
316
398
 
317
399
  /**
@@ -338,7 +420,7 @@ export namespace Policy {
338
420
  * eth_sendTransaction request.
339
421
  */
340
422
  export interface EthereumTransactionCondition {
341
- field: 'to' | 'value';
423
+ field: 'to' | 'value' | 'chain_id';
342
424
 
343
425
  field_source: 'ethereum_transaction';
344
426
 
@@ -481,29 +563,6 @@ export namespace Policy {
481
563
 
482
564
  value: string | Array<string>;
483
565
  }
484
-
485
- /**
486
- * TRON transaction fields for TransferContract and TriggerSmartContract
487
- * transaction types.
488
- */
489
- export interface TronTransactionCondition {
490
- /**
491
- * Supported TRON transaction fields in format "TransactionType.field_name"
492
- */
493
- field:
494
- | 'TransferContract.to_address'
495
- | 'TransferContract.amount'
496
- | 'TriggerSmartContract.contract_address'
497
- | 'TriggerSmartContract.call_value'
498
- | 'TriggerSmartContract.token_id'
499
- | 'TriggerSmartContract.call_token_value';
500
-
501
- field_source: 'tron_transaction';
502
-
503
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
504
-
505
- value: string | Array<string>;
506
- }
507
566
  }
508
567
  }
509
568
 
@@ -529,7 +588,9 @@ export interface PolicyCreateRuleResponse {
529
588
  | PolicyCreateRuleResponse.SolanaSystemProgramInstructionCondition
530
589
  | PolicyCreateRuleResponse.SolanaTokenProgramInstructionCondition
531
590
  | PolicyCreateRuleResponse.SystemCondition
532
- | PolicyCreateRuleResponse.TronTransactionCondition
591
+ | TronTransactionCondition
592
+ | SuiTransactionCommandCondition
593
+ | SuiTransferObjectsCommandCondition
533
594
  >;
534
595
 
535
596
  /**
@@ -556,7 +617,7 @@ export namespace PolicyCreateRuleResponse {
556
617
  * eth_sendTransaction request.
557
618
  */
558
619
  export interface EthereumTransactionCondition {
559
- field: 'to' | 'value';
620
+ field: 'to' | 'value' | 'chain_id';
560
621
 
561
622
  field_source: 'ethereum_transaction';
562
623
 
@@ -699,29 +760,6 @@ export namespace PolicyCreateRuleResponse {
699
760
 
700
761
  value: string | Array<string>;
701
762
  }
702
-
703
- /**
704
- * TRON transaction fields for TransferContract and TriggerSmartContract
705
- * transaction types.
706
- */
707
- export interface TronTransactionCondition {
708
- /**
709
- * Supported TRON transaction fields in format "TransactionType.field_name"
710
- */
711
- field:
712
- | 'TransferContract.to_address'
713
- | 'TransferContract.amount'
714
- | 'TriggerSmartContract.contract_address'
715
- | 'TriggerSmartContract.call_value'
716
- | 'TriggerSmartContract.token_id'
717
- | 'TriggerSmartContract.call_token_value';
718
-
719
- field_source: 'tron_transaction';
720
-
721
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
722
-
723
- value: string | Array<string>;
724
- }
725
763
  }
726
764
 
727
765
  export interface PolicyDeleteResponse {
@@ -756,7 +794,9 @@ export interface PolicyUpdateRuleResponse {
756
794
  | PolicyUpdateRuleResponse.SolanaSystemProgramInstructionCondition
757
795
  | PolicyUpdateRuleResponse.SolanaTokenProgramInstructionCondition
758
796
  | PolicyUpdateRuleResponse.SystemCondition
759
- | PolicyUpdateRuleResponse.TronTransactionCondition
797
+ | TronTransactionCondition
798
+ | SuiTransactionCommandCondition
799
+ | SuiTransferObjectsCommandCondition
760
800
  >;
761
801
 
762
802
  /**
@@ -783,7 +823,7 @@ export namespace PolicyUpdateRuleResponse {
783
823
  * eth_sendTransaction request.
784
824
  */
785
825
  export interface EthereumTransactionCondition {
786
- field: 'to' | 'value';
826
+ field: 'to' | 'value' | 'chain_id';
787
827
 
788
828
  field_source: 'ethereum_transaction';
789
829
 
@@ -926,29 +966,6 @@ export namespace PolicyUpdateRuleResponse {
926
966
 
927
967
  value: string | Array<string>;
928
968
  }
929
-
930
- /**
931
- * TRON transaction fields for TransferContract and TriggerSmartContract
932
- * transaction types.
933
- */
934
- export interface TronTransactionCondition {
935
- /**
936
- * Supported TRON transaction fields in format "TransactionType.field_name"
937
- */
938
- field:
939
- | 'TransferContract.to_address'
940
- | 'TransferContract.amount'
941
- | 'TriggerSmartContract.contract_address'
942
- | 'TriggerSmartContract.call_value'
943
- | 'TriggerSmartContract.token_id'
944
- | 'TriggerSmartContract.call_token_value';
945
-
946
- field_source: 'tron_transaction';
947
-
948
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
949
-
950
- value: string | Array<string>;
951
- }
952
969
  }
953
970
 
954
971
  /**
@@ -973,7 +990,9 @@ export interface PolicyGetRuleResponse {
973
990
  | PolicyGetRuleResponse.SolanaSystemProgramInstructionCondition
974
991
  | PolicyGetRuleResponse.SolanaTokenProgramInstructionCondition
975
992
  | PolicyGetRuleResponse.SystemCondition
976
- | PolicyGetRuleResponse.TronTransactionCondition
993
+ | TronTransactionCondition
994
+ | SuiTransactionCommandCondition
995
+ | SuiTransferObjectsCommandCondition
977
996
  >;
978
997
 
979
998
  /**
@@ -1000,7 +1019,7 @@ export namespace PolicyGetRuleResponse {
1000
1019
  * eth_sendTransaction request.
1001
1020
  */
1002
1021
  export interface EthereumTransactionCondition {
1003
- field: 'to' | 'value';
1022
+ field: 'to' | 'value' | 'chain_id';
1004
1023
 
1005
1024
  field_source: 'ethereum_transaction';
1006
1025
 
@@ -1143,36 +1162,13 @@ export namespace PolicyGetRuleResponse {
1143
1162
 
1144
1163
  value: string | Array<string>;
1145
1164
  }
1146
-
1147
- /**
1148
- * TRON transaction fields for TransferContract and TriggerSmartContract
1149
- * transaction types.
1150
- */
1151
- export interface TronTransactionCondition {
1152
- /**
1153
- * Supported TRON transaction fields in format "TransactionType.field_name"
1154
- */
1155
- field:
1156
- | 'TransferContract.to_address'
1157
- | 'TransferContract.amount'
1158
- | 'TriggerSmartContract.contract_address'
1159
- | 'TriggerSmartContract.call_value'
1160
- | 'TriggerSmartContract.token_id'
1161
- | 'TriggerSmartContract.call_token_value';
1162
-
1163
- field_source: 'tron_transaction';
1164
-
1165
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
1166
-
1167
- value: string | Array<string>;
1168
- }
1169
1165
  }
1170
1166
 
1171
1167
  export interface PolicyCreateParams {
1172
1168
  /**
1173
1169
  * Body param: The chain type the policy applies to.
1174
1170
  */
1175
- chain_type: 'ethereum' | 'solana' | 'tron';
1171
+ chain_type: 'ethereum' | 'solana' | 'tron' | 'sui';
1176
1172
 
1177
1173
  /**
1178
1174
  * Body param: Name to assign to policy.
@@ -1180,7 +1176,7 @@ export interface PolicyCreateParams {
1180
1176
  name: string;
1181
1177
 
1182
1178
  /**
1183
- * Body param:
1179
+ * Body param
1184
1180
  */
1185
1181
  rules: Array<PolicyCreateParams.Rule>;
1186
1182
 
@@ -1197,8 +1193,7 @@ export interface PolicyCreateParams {
1197
1193
  owner?: PolicyCreateParams.PublicKeyOwner | PolicyCreateParams.UserOwner | null;
1198
1194
 
1199
1195
  /**
1200
- * Body param: The key quorum ID to set as the owner of the resource. If you
1201
- * provide this, do not specify an owner.
1196
+ * Body param
1202
1197
  */
1203
1198
  owner_id?: string | null;
1204
1199
 
@@ -1229,7 +1224,9 @@ export namespace PolicyCreateParams {
1229
1224
  | Rule.SolanaSystemProgramInstructionCondition
1230
1225
  | Rule.SolanaTokenProgramInstructionCondition
1231
1226
  | Rule.SystemCondition
1232
- | Rule.TronTransactionCondition
1227
+ | PoliciesAPI.TronTransactionCondition
1228
+ | PoliciesAPI.SuiTransactionCommandCondition
1229
+ | PoliciesAPI.SuiTransferObjectsCommandCondition
1233
1230
  >;
1234
1231
 
1235
1232
  /**
@@ -1256,7 +1253,7 @@ export namespace PolicyCreateParams {
1256
1253
  * eth_sendTransaction request.
1257
1254
  */
1258
1255
  export interface EthereumTransactionCondition {
1259
- field: 'to' | 'value';
1256
+ field: 'to' | 'value' | 'chain_id';
1260
1257
 
1261
1258
  field_source: 'ethereum_transaction';
1262
1259
 
@@ -1399,29 +1396,6 @@ export namespace PolicyCreateParams {
1399
1396
 
1400
1397
  value: string | Array<string>;
1401
1398
  }
1402
-
1403
- /**
1404
- * TRON transaction fields for TransferContract and TriggerSmartContract
1405
- * transaction types.
1406
- */
1407
- export interface TronTransactionCondition {
1408
- /**
1409
- * Supported TRON transaction fields in format "TransactionType.field_name"
1410
- */
1411
- field:
1412
- | 'TransferContract.to_address'
1413
- | 'TransferContract.amount'
1414
- | 'TriggerSmartContract.contract_address'
1415
- | 'TriggerSmartContract.call_value'
1416
- | 'TriggerSmartContract.token_id'
1417
- | 'TriggerSmartContract.call_token_value';
1418
-
1419
- field_source: 'tron_transaction';
1420
-
1421
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
1422
-
1423
- value: string | Array<string>;
1424
- }
1425
1399
  }
1426
1400
 
1427
1401
  /**
@@ -1450,7 +1424,7 @@ export interface PolicyCreateRuleParams {
1450
1424
  action: 'ALLOW' | 'DENY';
1451
1425
 
1452
1426
  /**
1453
- * Body param:
1427
+ * Body param
1454
1428
  */
1455
1429
  conditions: Array<
1456
1430
  | PolicyCreateRuleParams.EthereumTransactionCondition
@@ -1462,7 +1436,9 @@ export interface PolicyCreateRuleParams {
1462
1436
  | PolicyCreateRuleParams.SolanaSystemProgramInstructionCondition
1463
1437
  | PolicyCreateRuleParams.SolanaTokenProgramInstructionCondition
1464
1438
  | PolicyCreateRuleParams.SystemCondition
1465
- | PolicyCreateRuleParams.TronTransactionCondition
1439
+ | TronTransactionCondition
1440
+ | SuiTransactionCommandCondition
1441
+ | SuiTransferObjectsCommandCondition
1466
1442
  >;
1467
1443
 
1468
1444
  /**
@@ -1481,7 +1457,7 @@ export interface PolicyCreateRuleParams {
1481
1457
  | '*';
1482
1458
 
1483
1459
  /**
1484
- * Body param:
1460
+ * Body param
1485
1461
  */
1486
1462
  name: string;
1487
1463
 
@@ -1498,7 +1474,7 @@ export namespace PolicyCreateRuleParams {
1498
1474
  * eth_sendTransaction request.
1499
1475
  */
1500
1476
  export interface EthereumTransactionCondition {
1501
- field: 'to' | 'value';
1477
+ field: 'to' | 'value' | 'chain_id';
1502
1478
 
1503
1479
  field_source: 'ethereum_transaction';
1504
1480
 
@@ -1641,29 +1617,6 @@ export namespace PolicyCreateRuleParams {
1641
1617
 
1642
1618
  value: string | Array<string>;
1643
1619
  }
1644
-
1645
- /**
1646
- * TRON transaction fields for TransferContract and TriggerSmartContract
1647
- * transaction types.
1648
- */
1649
- export interface TronTransactionCondition {
1650
- /**
1651
- * Supported TRON transaction fields in format "TransactionType.field_name"
1652
- */
1653
- field:
1654
- | 'TransferContract.to_address'
1655
- | 'TransferContract.amount'
1656
- | 'TriggerSmartContract.contract_address'
1657
- | 'TriggerSmartContract.call_value'
1658
- | 'TriggerSmartContract.token_id'
1659
- | 'TriggerSmartContract.call_token_value';
1660
-
1661
- field_source: 'tron_transaction';
1662
-
1663
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
1664
-
1665
- value: string | Array<string>;
1666
- }
1667
1620
  }
1668
1621
 
1669
1622
  export interface PolicyDeleteParams {
@@ -1676,7 +1629,7 @@ export interface PolicyDeleteParams {
1676
1629
 
1677
1630
  export interface PolicyDeleteRuleParams {
1678
1631
  /**
1679
- * Path param:
1632
+ * Path param
1680
1633
  */
1681
1634
  policy_id: string;
1682
1635
 
@@ -1701,13 +1654,12 @@ export interface PolicyUpdateParams {
1701
1654
  owner?: PolicyUpdateParams.PublicKeyOwner | PolicyUpdateParams.UserOwner | null;
1702
1655
 
1703
1656
  /**
1704
- * Body param: The key quorum ID to set as the owner of the resource. If you
1705
- * provide this, do not specify an owner.
1657
+ * Body param
1706
1658
  */
1707
1659
  owner_id?: string | null;
1708
1660
 
1709
1661
  /**
1710
- * Body param:
1662
+ * Body param
1711
1663
  */
1712
1664
  rules?: Array<PolicyUpdateParams.Rule>;
1713
1665
 
@@ -1756,7 +1708,9 @@ export namespace PolicyUpdateParams {
1756
1708
  | Rule.SolanaSystemProgramInstructionCondition
1757
1709
  | Rule.SolanaTokenProgramInstructionCondition
1758
1710
  | Rule.SystemCondition
1759
- | Rule.TronTransactionCondition
1711
+ | PoliciesAPI.TronTransactionCondition
1712
+ | PoliciesAPI.SuiTransactionCommandCondition
1713
+ | PoliciesAPI.SuiTransferObjectsCommandCondition
1760
1714
  >;
1761
1715
 
1762
1716
  /**
@@ -1783,7 +1737,7 @@ export namespace PolicyUpdateParams {
1783
1737
  * eth_sendTransaction request.
1784
1738
  */
1785
1739
  export interface EthereumTransactionCondition {
1786
- field: 'to' | 'value';
1740
+ field: 'to' | 'value' | 'chain_id';
1787
1741
 
1788
1742
  field_source: 'ethereum_transaction';
1789
1743
 
@@ -1926,35 +1880,12 @@ export namespace PolicyUpdateParams {
1926
1880
 
1927
1881
  value: string | Array<string>;
1928
1882
  }
1929
-
1930
- /**
1931
- * TRON transaction fields for TransferContract and TriggerSmartContract
1932
- * transaction types.
1933
- */
1934
- export interface TronTransactionCondition {
1935
- /**
1936
- * Supported TRON transaction fields in format "TransactionType.field_name"
1937
- */
1938
- field:
1939
- | 'TransferContract.to_address'
1940
- | 'TransferContract.amount'
1941
- | 'TriggerSmartContract.contract_address'
1942
- | 'TriggerSmartContract.call_value'
1943
- | 'TriggerSmartContract.token_id'
1944
- | 'TriggerSmartContract.call_token_value';
1945
-
1946
- field_source: 'tron_transaction';
1947
-
1948
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
1949
-
1950
- value: string | Array<string>;
1951
- }
1952
1883
  }
1953
1884
  }
1954
1885
 
1955
1886
  export interface PolicyUpdateRuleParams {
1956
1887
  /**
1957
- * Path param:
1888
+ * Path param
1958
1889
  */
1959
1890
  policy_id: string;
1960
1891
 
@@ -1964,7 +1895,7 @@ export interface PolicyUpdateRuleParams {
1964
1895
  action: 'ALLOW' | 'DENY';
1965
1896
 
1966
1897
  /**
1967
- * Body param:
1898
+ * Body param
1968
1899
  */
1969
1900
  conditions: Array<
1970
1901
  | PolicyUpdateRuleParams.EthereumTransactionCondition
@@ -1976,7 +1907,9 @@ export interface PolicyUpdateRuleParams {
1976
1907
  | PolicyUpdateRuleParams.SolanaSystemProgramInstructionCondition
1977
1908
  | PolicyUpdateRuleParams.SolanaTokenProgramInstructionCondition
1978
1909
  | PolicyUpdateRuleParams.SystemCondition
1979
- | PolicyUpdateRuleParams.TronTransactionCondition
1910
+ | TronTransactionCondition
1911
+ | SuiTransactionCommandCondition
1912
+ | SuiTransferObjectsCommandCondition
1980
1913
  >;
1981
1914
 
1982
1915
  /**
@@ -1995,7 +1928,7 @@ export interface PolicyUpdateRuleParams {
1995
1928
  | '*';
1996
1929
 
1997
1930
  /**
1998
- * Body param:
1931
+ * Body param
1999
1932
  */
2000
1933
  name: string;
2001
1934
 
@@ -2012,7 +1945,7 @@ export namespace PolicyUpdateRuleParams {
2012
1945
  * eth_sendTransaction request.
2013
1946
  */
2014
1947
  export interface EthereumTransactionCondition {
2015
- field: 'to' | 'value';
1948
+ field: 'to' | 'value' | 'chain_id';
2016
1949
 
2017
1950
  field_source: 'ethereum_transaction';
2018
1951
 
@@ -2155,29 +2088,6 @@ export namespace PolicyUpdateRuleParams {
2155
2088
 
2156
2089
  value: string | Array<string>;
2157
2090
  }
2158
-
2159
- /**
2160
- * TRON transaction fields for TransferContract and TriggerSmartContract
2161
- * transaction types.
2162
- */
2163
- export interface TronTransactionCondition {
2164
- /**
2165
- * Supported TRON transaction fields in format "TransactionType.field_name"
2166
- */
2167
- field:
2168
- | 'TransferContract.to_address'
2169
- | 'TransferContract.amount'
2170
- | 'TriggerSmartContract.contract_address'
2171
- | 'TriggerSmartContract.call_value'
2172
- | 'TriggerSmartContract.token_id'
2173
- | 'TriggerSmartContract.call_token_value';
2174
-
2175
- field_source: 'tron_transaction';
2176
-
2177
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
2178
-
2179
- value: string | Array<string>;
2180
- }
2181
2091
  }
2182
2092
 
2183
2093
  export interface PolicyGetRuleParams {
@@ -2186,6 +2096,11 @@ export interface PolicyGetRuleParams {
2186
2096
 
2187
2097
  export declare namespace Policies {
2188
2098
  export {
2099
+ type SuiTransactionCommandOperator as SuiTransactionCommandOperator,
2100
+ type SuiTransferObjectsCommandField as SuiTransferObjectsCommandField,
2101
+ type TronTransactionCondition as TronTransactionCondition,
2102
+ type SuiTransactionCommandCondition as SuiTransactionCommandCondition,
2103
+ type SuiTransferObjectsCommandCondition as SuiTransferObjectsCommandCondition,
2189
2104
  type Policy as Policy,
2190
2105
  type PolicyCreateRuleResponse as PolicyCreateRuleResponse,
2191
2106
  type PolicyDeleteResponse as PolicyDeleteResponse,