@privy-io/api-types 0.3.4 → 0.4.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 (84) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/LICENSE +1 -1
  3. package/README.md +31 -0
  4. package/client.d.mts +10 -7
  5. package/client.d.mts.map +1 -1
  6. package/client.d.ts +10 -7
  7. package/client.d.ts.map +1 -1
  8. package/client.js +3 -0
  9. package/client.js.map +1 -1
  10. package/client.mjs +3 -0
  11. package/client.mjs.map +1 -1
  12. package/package.json +1 -1
  13. package/resources/aggregations.d.mts +296 -0
  14. package/resources/aggregations.d.mts.map +1 -0
  15. package/resources/aggregations.d.ts +296 -0
  16. package/resources/aggregations.d.ts.map +1 -0
  17. package/resources/aggregations.js +9 -0
  18. package/resources/aggregations.js.map +1 -0
  19. package/resources/aggregations.mjs +5 -0
  20. package/resources/aggregations.mjs.map +1 -0
  21. package/resources/client-auth.d.mts +16 -23
  22. package/resources/client-auth.d.mts.map +1 -1
  23. package/resources/client-auth.d.ts +16 -23
  24. package/resources/client-auth.d.ts.map +1 -1
  25. package/resources/index.d.mts +4 -3
  26. package/resources/index.d.mts.map +1 -1
  27. package/resources/index.d.ts +4 -3
  28. package/resources/index.d.ts.map +1 -1
  29. package/resources/index.js +3 -1
  30. package/resources/index.js.map +1 -1
  31. package/resources/index.mjs +1 -0
  32. package/resources/index.mjs.map +1 -1
  33. package/resources/key-quorums.d.mts +4 -1
  34. package/resources/key-quorums.d.mts.map +1 -1
  35. package/resources/key-quorums.d.ts +4 -1
  36. package/resources/key-quorums.d.ts.map +1 -1
  37. package/resources/policies.d.mts +87 -131
  38. package/resources/policies.d.mts.map +1 -1
  39. package/resources/policies.d.ts +87 -131
  40. package/resources/policies.d.ts.map +1 -1
  41. package/resources/policies.js.map +1 -1
  42. package/resources/policies.mjs.map +1 -1
  43. package/resources/users.d.mts +637 -383
  44. package/resources/users.d.mts.map +1 -1
  45. package/resources/users.d.ts +637 -383
  46. package/resources/users.d.ts.map +1 -1
  47. package/resources/wallets/balance.d.mts +3 -3
  48. package/resources/wallets/balance.d.mts.map +1 -1
  49. package/resources/wallets/balance.d.ts +3 -3
  50. package/resources/wallets/balance.d.ts.map +1 -1
  51. package/resources/wallets/index.d.mts +1 -1
  52. package/resources/wallets/index.d.mts.map +1 -1
  53. package/resources/wallets/index.d.ts +1 -1
  54. package/resources/wallets/index.d.ts.map +1 -1
  55. package/resources/wallets/index.js.map +1 -1
  56. package/resources/wallets/index.mjs.map +1 -1
  57. package/resources/wallets/transactions.d.mts +3 -3
  58. package/resources/wallets/transactions.d.mts.map +1 -1
  59. package/resources/wallets/transactions.d.ts +3 -3
  60. package/resources/wallets/transactions.d.ts.map +1 -1
  61. package/resources/wallets/wallets.d.mts +215 -53
  62. package/resources/wallets/wallets.d.mts.map +1 -1
  63. package/resources/wallets/wallets.d.ts +215 -53
  64. package/resources/wallets/wallets.d.ts.map +1 -1
  65. package/resources/wallets/wallets.js +1 -1
  66. package/resources/wallets/wallets.js.map +1 -1
  67. package/resources/wallets/wallets.mjs +1 -1
  68. package/resources/wallets/wallets.mjs.map +1 -1
  69. package/src/client.ts +148 -3
  70. package/src/resources/aggregations.ts +497 -0
  71. package/src/resources/client-auth.ts +22 -35
  72. package/src/resources/index.ts +73 -2
  73. package/src/resources/key-quorums.ts +4 -1
  74. package/src/resources/policies.ts +124 -207
  75. package/src/resources/users.ts +928 -621
  76. package/src/resources/wallets/balance.ts +11 -3
  77. package/src/resources/wallets/index.ts +6 -0
  78. package/src/resources/wallets/transactions.ts +11 -3
  79. package/src/resources/wallets/wallets.ts +283 -52
  80. package/src/version.ts +1 -1
  81. package/version.d.mts +1 -1
  82. package/version.d.ts +1 -1
  83. package/version.js +1 -1
  84. package/version.mjs +1 -1
@@ -1,5 +1,13 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
+ export {
4
+ Aggregations,
5
+ type AggregationMethod,
6
+ type AggregationMetric,
7
+ type AggregationWindow,
8
+ type AggregationGroupBy,
9
+ type Aggregation,
10
+ } from './aggregations';
3
11
  export { Analytics, type AnalyticsEventInput } from './analytics';
4
12
  export { Apps, type AppResponse } from './apps';
5
13
  export {
@@ -110,6 +118,11 @@ export {
110
118
  export {
111
119
  Policies,
112
120
  type Policy,
121
+ type SuiTransactionCommandOperator,
122
+ type SuiTransferObjectsCommandField,
123
+ type TronTransactionCondition,
124
+ type SuiTransactionCommandCondition,
125
+ type SuiTransferObjectsCommandCondition,
113
126
  type PolicyCreateRuleResponse,
114
127
  type PolicyDeleteResponse,
115
128
  type PolicyDeleteRuleResponse,
@@ -135,6 +148,17 @@ export {
135
148
  type LinkedAccount,
136
149
  type User,
137
150
  type UserWithIdentityToken,
151
+ type LinkedAccountEmail,
152
+ type LinkedAccountPhone,
153
+ type LinkedAccountBaseWallet,
154
+ type LinkedAccountEthereum,
155
+ type SmartWalletType,
156
+ type LinkedAccountSmartWallet,
157
+ type LinkedAccountSolana,
158
+ type LinkedAccountFarcaster,
159
+ type LinkedAccountPasskey,
160
+ type LinkedAccountTelegram,
161
+ type EmbeddedWalletRecoveryMethod,
138
162
  type LinkedAccountEthereumEmbeddedWallet,
139
163
  type LinkedAccountSolanaEmbeddedWallet,
140
164
  type LinkedAccountBitcoinSegwitEmbeddedWallet,
@@ -142,8 +166,49 @@ export {
142
166
  type LinkedAccountCurveSigningEmbeddedWallet,
143
167
  type LinkedAccountEmbeddedWallet,
144
168
  type LinkedAccountEmbeddedWalletWithID,
145
- type SmartWalletType,
146
- type LinkedAccountSmartWallet,
169
+ type LinkedAccountGoogleOAuth,
170
+ type LinkedAccountTwitterOAuth,
171
+ type LinkedAccountDiscordOAuth,
172
+ type LinkedAccountGitHubOAuth,
173
+ type LinkedAccountLinkedInOAuth,
174
+ type LinkedAccountSpotifyOAuth,
175
+ type LinkedAccountInstagramOAuth,
176
+ type LinkedAccountTiktokOAuth,
177
+ type LinkedAccountLineOAuth,
178
+ type LinkedAccountTwitchOAuth,
179
+ type LinkedAccountAppleOAuth,
180
+ type LinkedAccountCustomOAuth,
181
+ type LinkedAccountCustomJwt,
182
+ type CrossAppEmbeddedWallet,
183
+ type CrossAppSmartWallet,
184
+ type LinkedAccountCrossApp,
185
+ type LinkedAccountAuthorizationKey,
186
+ type LinkedAccountType,
187
+ type CustomMetadata,
188
+ type LinkedAccountWalletInput,
189
+ type LinkedAccountEmailInput,
190
+ type LinkedAccountPhoneInput,
191
+ type LinkedAccountGoogleInput,
192
+ type LinkedAccountTwitterInput,
193
+ type LinkedAccountDiscordInput,
194
+ type LinkedAccountGitHubInput,
195
+ type LinkedAccountSpotifyInput,
196
+ type LinkedAccountInstagramInput,
197
+ type LinkedAccountTiktokInput,
198
+ type LinkedAccountLineInput,
199
+ type LinkedAccountTwitchInput,
200
+ type LinkedAccountAppleInput,
201
+ type LinkedAccountLinkedInInput,
202
+ type LinkedAccountFarcasterInput,
203
+ type LinkedAccountTelegramInput,
204
+ type LinkedAccountCustomJwtInput,
205
+ type LinkedAccountInput,
206
+ type UserBatchCreateInput,
207
+ type SMSMfaMethod,
208
+ type TotpMfaMethod,
209
+ type PasskeyMfaMethod,
210
+ type LinkedMfaMethod,
211
+ type OAuthTokens,
147
212
  type UserCreateParams,
148
213
  type UserListParams,
149
214
  type UserGetByCustomAuthIDParams,
@@ -173,6 +238,12 @@ export {
173
238
  type WalletRevokeResponse,
174
239
  type ExtendedChainType,
175
240
  type WalletCustodian,
241
+ type CustodialWalletProvider,
242
+ type CustodialWalletChainType,
243
+ type CustodialWalletCreateInput,
244
+ type CustodialWallet,
245
+ type HpkeImportConfig,
246
+ type SuiCommandName,
176
247
  type EthereumPersonalSignRpcInput,
177
248
  type EthereumSignTransactionRpcInput,
178
249
  type EthereumSendTransactionRpcInput,
@@ -93,6 +93,9 @@ export class KeyQuorums extends APIResource {
93
93
  }
94
94
  }
95
95
 
96
+ /**
97
+ * A key quorum for authorizing wallet operations.
98
+ */
96
99
  export interface KeyQuorum {
97
100
  id: string;
98
101
 
@@ -158,7 +161,7 @@ export interface KeyQuorumUpdateParams {
158
161
  authorization_threshold?: number;
159
162
 
160
163
  /**
161
- * Body param:
164
+ * Body param
162
165
  */
163
166
  display_name?: string;
164
167
 
@@ -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,9 @@ export class Policies extends APIResource {
253
255
  }
254
256
  }
255
257
 
258
+ /**
259
+ * A policy for controlling wallet operations.
260
+ */
256
261
  export interface Policy {
257
262
  /**
258
263
  * Unique ID of the created policy. This will be the primary identifier when using
@@ -263,7 +268,7 @@ export interface Policy {
263
268
  /**
264
269
  * The chain type the policy applies to.
265
270
  */
266
- chain_type: 'ethereum' | 'solana' | 'tron';
271
+ chain_type: 'ethereum' | 'solana' | 'tron' | 'sui';
267
272
 
268
273
  /**
269
274
  * Unix timestamp of when the policy was created in milliseconds.
@@ -311,7 +316,9 @@ export namespace Policy {
311
316
  | Rule.SolanaSystemProgramInstructionCondition
312
317
  | Rule.SolanaTokenProgramInstructionCondition
313
318
  | Rule.SystemCondition
314
- | Rule.TronTransactionCondition
319
+ | PoliciesAPI.TronTransactionCondition
320
+ | PoliciesAPI.SuiTransactionCommandCondition
321
+ | PoliciesAPI.SuiTransferObjectsCommandCondition
315
322
  >;
316
323
 
317
324
  /**
@@ -338,7 +345,7 @@ export namespace Policy {
338
345
  * eth_sendTransaction request.
339
346
  */
340
347
  export interface EthereumTransactionCondition {
341
- field: 'to' | 'value';
348
+ field: 'to' | 'value' | 'chain_id';
342
349
 
343
350
  field_source: 'ethereum_transaction';
344
351
 
@@ -481,30 +488,82 @@ export namespace Policy {
481
488
 
482
489
  value: string | Array<string>;
483
490
  }
491
+ }
492
+ }
484
493
 
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';
494
+ /**
495
+ * Operator to use for SUI transaction command conditions. Only 'eq' and 'in' are
496
+ * supported for command names.
497
+ */
498
+ export type SuiTransactionCommandOperator = 'eq' | 'in';
500
499
 
501
- field_source: 'tron_transaction';
500
+ /**
501
+ * Supported fields for SUI TransferObjects command conditions. Only 'recipient'
502
+ * and 'amount' are supported.
503
+ */
504
+ export type SuiTransferObjectsCommandField = 'recipient' | 'amount';
502
505
 
503
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
506
+ /**
507
+ * TRON transaction fields for TransferContract and TriggerSmartContract
508
+ * transaction types.
509
+ */
510
+ export interface TronTransactionCondition {
511
+ /**
512
+ * Supported TRON transaction fields in format "TransactionType.field_name"
513
+ */
514
+ field:
515
+ | 'TransferContract.to_address'
516
+ | 'TransferContract.amount'
517
+ | 'TriggerSmartContract.contract_address'
518
+ | 'TriggerSmartContract.call_value'
519
+ | 'TriggerSmartContract.token_id'
520
+ | 'TriggerSmartContract.call_token_value';
504
521
 
505
- value: string | Array<string>;
506
- }
507
- }
522
+ field_source: 'tron_transaction';
523
+
524
+ operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
525
+
526
+ value: string | Array<string>;
527
+ }
528
+
529
+ /**
530
+ * SUI transaction command attributes, enables allowlisting specific command types.
531
+ * Allowed commands: 'TransferObjects', 'SplitCoins', 'MergeCoins'. Only 'eq' and
532
+ * 'in' operators are supported.
533
+ */
534
+ export interface SuiTransactionCommandCondition {
535
+ field: 'commandName';
536
+
537
+ field_source: 'sui_transaction_command';
538
+
539
+ /**
540
+ * Operator to use for SUI transaction command conditions. Only 'eq' and 'in' are
541
+ * supported for command names.
542
+ */
543
+ operator: SuiTransactionCommandOperator;
544
+
545
+ /**
546
+ * Command name(s) to match. Must be one of: 'TransferObjects', 'SplitCoins',
547
+ * 'MergeCoins'
548
+ */
549
+ value: WalletsAPI.SuiCommandName | Array<WalletsAPI.SuiCommandName>;
550
+ }
551
+
552
+ /**
553
+ * SUI TransferObjects command attributes, including recipient and amount fields.
554
+ */
555
+ export interface SuiTransferObjectsCommandCondition {
556
+ /**
557
+ * Supported fields for SUI TransferObjects command conditions. Only 'recipient'
558
+ * and 'amount' are supported.
559
+ */
560
+ field: SuiTransferObjectsCommandField;
561
+
562
+ field_source: 'sui_transfer_objects_command';
563
+
564
+ operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
565
+
566
+ value: string | Array<string>;
508
567
  }
509
568
 
510
569
  /**
@@ -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
 
@@ -1229,7 +1225,9 @@ export namespace PolicyCreateParams {
1229
1225
  | Rule.SolanaSystemProgramInstructionCondition
1230
1226
  | Rule.SolanaTokenProgramInstructionCondition
1231
1227
  | Rule.SystemCondition
1232
- | Rule.TronTransactionCondition
1228
+ | PoliciesAPI.TronTransactionCondition
1229
+ | PoliciesAPI.SuiTransactionCommandCondition
1230
+ | PoliciesAPI.SuiTransferObjectsCommandCondition
1233
1231
  >;
1234
1232
 
1235
1233
  /**
@@ -1256,7 +1254,7 @@ export namespace PolicyCreateParams {
1256
1254
  * eth_sendTransaction request.
1257
1255
  */
1258
1256
  export interface EthereumTransactionCondition {
1259
- field: 'to' | 'value';
1257
+ field: 'to' | 'value' | 'chain_id';
1260
1258
 
1261
1259
  field_source: 'ethereum_transaction';
1262
1260
 
@@ -1399,29 +1397,6 @@ export namespace PolicyCreateParams {
1399
1397
 
1400
1398
  value: string | Array<string>;
1401
1399
  }
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
1400
  }
1426
1401
 
1427
1402
  /**
@@ -1450,7 +1425,7 @@ export interface PolicyCreateRuleParams {
1450
1425
  action: 'ALLOW' | 'DENY';
1451
1426
 
1452
1427
  /**
1453
- * Body param:
1428
+ * Body param
1454
1429
  */
1455
1430
  conditions: Array<
1456
1431
  | PolicyCreateRuleParams.EthereumTransactionCondition
@@ -1462,7 +1437,9 @@ export interface PolicyCreateRuleParams {
1462
1437
  | PolicyCreateRuleParams.SolanaSystemProgramInstructionCondition
1463
1438
  | PolicyCreateRuleParams.SolanaTokenProgramInstructionCondition
1464
1439
  | PolicyCreateRuleParams.SystemCondition
1465
- | PolicyCreateRuleParams.TronTransactionCondition
1440
+ | TronTransactionCondition
1441
+ | SuiTransactionCommandCondition
1442
+ | SuiTransferObjectsCommandCondition
1466
1443
  >;
1467
1444
 
1468
1445
  /**
@@ -1481,7 +1458,7 @@ export interface PolicyCreateRuleParams {
1481
1458
  | '*';
1482
1459
 
1483
1460
  /**
1484
- * Body param:
1461
+ * Body param
1485
1462
  */
1486
1463
  name: string;
1487
1464
 
@@ -1498,7 +1475,7 @@ export namespace PolicyCreateRuleParams {
1498
1475
  * eth_sendTransaction request.
1499
1476
  */
1500
1477
  export interface EthereumTransactionCondition {
1501
- field: 'to' | 'value';
1478
+ field: 'to' | 'value' | 'chain_id';
1502
1479
 
1503
1480
  field_source: 'ethereum_transaction';
1504
1481
 
@@ -1641,29 +1618,6 @@ export namespace PolicyCreateRuleParams {
1641
1618
 
1642
1619
  value: string | Array<string>;
1643
1620
  }
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
1621
  }
1668
1622
 
1669
1623
  export interface PolicyDeleteParams {
@@ -1676,7 +1630,7 @@ export interface PolicyDeleteParams {
1676
1630
 
1677
1631
  export interface PolicyDeleteRuleParams {
1678
1632
  /**
1679
- * Path param:
1633
+ * Path param
1680
1634
  */
1681
1635
  policy_id: string;
1682
1636
 
@@ -1707,7 +1661,7 @@ export interface PolicyUpdateParams {
1707
1661
  owner_id?: string | null;
1708
1662
 
1709
1663
  /**
1710
- * Body param:
1664
+ * Body param
1711
1665
  */
1712
1666
  rules?: Array<PolicyUpdateParams.Rule>;
1713
1667
 
@@ -1756,7 +1710,9 @@ export namespace PolicyUpdateParams {
1756
1710
  | Rule.SolanaSystemProgramInstructionCondition
1757
1711
  | Rule.SolanaTokenProgramInstructionCondition
1758
1712
  | Rule.SystemCondition
1759
- | Rule.TronTransactionCondition
1713
+ | PoliciesAPI.TronTransactionCondition
1714
+ | PoliciesAPI.SuiTransactionCommandCondition
1715
+ | PoliciesAPI.SuiTransferObjectsCommandCondition
1760
1716
  >;
1761
1717
 
1762
1718
  /**
@@ -1783,7 +1739,7 @@ export namespace PolicyUpdateParams {
1783
1739
  * eth_sendTransaction request.
1784
1740
  */
1785
1741
  export interface EthereumTransactionCondition {
1786
- field: 'to' | 'value';
1742
+ field: 'to' | 'value' | 'chain_id';
1787
1743
 
1788
1744
  field_source: 'ethereum_transaction';
1789
1745
 
@@ -1926,35 +1882,12 @@ export namespace PolicyUpdateParams {
1926
1882
 
1927
1883
  value: string | Array<string>;
1928
1884
  }
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
1885
  }
1953
1886
  }
1954
1887
 
1955
1888
  export interface PolicyUpdateRuleParams {
1956
1889
  /**
1957
- * Path param:
1890
+ * Path param
1958
1891
  */
1959
1892
  policy_id: string;
1960
1893
 
@@ -1964,7 +1897,7 @@ export interface PolicyUpdateRuleParams {
1964
1897
  action: 'ALLOW' | 'DENY';
1965
1898
 
1966
1899
  /**
1967
- * Body param:
1900
+ * Body param
1968
1901
  */
1969
1902
  conditions: Array<
1970
1903
  | PolicyUpdateRuleParams.EthereumTransactionCondition
@@ -1976,7 +1909,9 @@ export interface PolicyUpdateRuleParams {
1976
1909
  | PolicyUpdateRuleParams.SolanaSystemProgramInstructionCondition
1977
1910
  | PolicyUpdateRuleParams.SolanaTokenProgramInstructionCondition
1978
1911
  | PolicyUpdateRuleParams.SystemCondition
1979
- | PolicyUpdateRuleParams.TronTransactionCondition
1912
+ | TronTransactionCondition
1913
+ | SuiTransactionCommandCondition
1914
+ | SuiTransferObjectsCommandCondition
1980
1915
  >;
1981
1916
 
1982
1917
  /**
@@ -1995,7 +1930,7 @@ export interface PolicyUpdateRuleParams {
1995
1930
  | '*';
1996
1931
 
1997
1932
  /**
1998
- * Body param:
1933
+ * Body param
1999
1934
  */
2000
1935
  name: string;
2001
1936
 
@@ -2012,7 +1947,7 @@ export namespace PolicyUpdateRuleParams {
2012
1947
  * eth_sendTransaction request.
2013
1948
  */
2014
1949
  export interface EthereumTransactionCondition {
2015
- field: 'to' | 'value';
1950
+ field: 'to' | 'value' | 'chain_id';
2016
1951
 
2017
1952
  field_source: 'ethereum_transaction';
2018
1953
 
@@ -2155,29 +2090,6 @@ export namespace PolicyUpdateRuleParams {
2155
2090
 
2156
2091
  value: string | Array<string>;
2157
2092
  }
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
2093
  }
2182
2094
 
2183
2095
  export interface PolicyGetRuleParams {
@@ -2187,6 +2099,11 @@ export interface PolicyGetRuleParams {
2187
2099
  export declare namespace Policies {
2188
2100
  export {
2189
2101
  type Policy as Policy,
2102
+ type SuiTransactionCommandOperator as SuiTransactionCommandOperator,
2103
+ type SuiTransferObjectsCommandField as SuiTransferObjectsCommandField,
2104
+ type TronTransactionCondition as TronTransactionCondition,
2105
+ type SuiTransactionCommandCondition as SuiTransactionCommandCondition,
2106
+ type SuiTransferObjectsCommandCondition as SuiTransferObjectsCommandCondition,
2190
2107
  type PolicyCreateRuleResponse as PolicyCreateRuleResponse,
2191
2108
  type PolicyDeleteResponse as PolicyDeleteResponse,
2192
2109
  type PolicyDeleteRuleResponse as PolicyDeleteRuleResponse,