@privy-io/node 0.5.0 → 0.6.1

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 (74) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/client.d.mts +8 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +8 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js +6 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +6 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +3 -3
  11. package/resources/analytics.d.mts +17 -0
  12. package/resources/analytics.d.mts.map +1 -0
  13. package/resources/analytics.d.ts +17 -0
  14. package/resources/analytics.d.ts.map +1 -0
  15. package/resources/analytics.js +9 -0
  16. package/resources/analytics.js.map +1 -0
  17. package/resources/analytics.mjs +5 -0
  18. package/resources/analytics.mjs.map +1 -0
  19. package/resources/apps.d.mts +126 -0
  20. package/resources/apps.d.mts.map +1 -0
  21. package/resources/apps.d.ts +126 -0
  22. package/resources/apps.d.ts.map +1 -0
  23. package/resources/apps.js +9 -0
  24. package/resources/apps.js.map +1 -0
  25. package/resources/apps.mjs +5 -0
  26. package/resources/apps.mjs.map +1 -0
  27. package/resources/index.d.mts +3 -1
  28. package/resources/index.d.mts.map +1 -1
  29. package/resources/index.d.ts +3 -1
  30. package/resources/index.d.ts.map +1 -1
  31. package/resources/index.js +5 -1
  32. package/resources/index.js.map +1 -1
  33. package/resources/index.mjs +2 -0
  34. package/resources/index.mjs.map +1 -1
  35. package/resources/policies.d.mts +122 -18
  36. package/resources/policies.d.mts.map +1 -1
  37. package/resources/policies.d.ts +122 -18
  38. package/resources/policies.d.ts.map +1 -1
  39. package/resources/users.d.mts +4 -1
  40. package/resources/users.d.mts.map +1 -1
  41. package/resources/users.d.ts +4 -1
  42. package/resources/users.d.ts.map +1 -1
  43. package/resources/wallets/index.d.mts +1 -1
  44. package/resources/wallets/index.d.mts.map +1 -1
  45. package/resources/wallets/index.d.ts +1 -1
  46. package/resources/wallets/index.d.ts.map +1 -1
  47. package/resources/wallets/index.js.map +1 -1
  48. package/resources/wallets/index.mjs.map +1 -1
  49. package/resources/wallets/transactions.d.mts +2 -2
  50. package/resources/wallets/transactions.d.mts.map +1 -1
  51. package/resources/wallets/transactions.d.ts +2 -2
  52. package/resources/wallets/transactions.d.ts.map +1 -1
  53. package/resources/wallets/transactions.js +1 -1
  54. package/resources/wallets/transactions.mjs +1 -1
  55. package/resources/wallets/wallets.d.mts +123 -9
  56. package/resources/wallets/wallets.d.mts.map +1 -1
  57. package/resources/wallets/wallets.d.ts +123 -9
  58. package/resources/wallets/wallets.d.ts.map +1 -1
  59. package/resources/wallets/wallets.js.map +1 -1
  60. package/resources/wallets/wallets.mjs.map +1 -1
  61. package/src/client.ts +18 -0
  62. package/src/resources/analytics.ts +20 -0
  63. package/src/resources/apps.ts +213 -0
  64. package/src/resources/index.ts +6 -0
  65. package/src/resources/policies.ts +210 -2
  66. package/src/resources/users.ts +4 -14
  67. package/src/resources/wallets/index.ts +4 -0
  68. package/src/resources/wallets/transactions.ts +2 -2
  69. package/src/resources/wallets/wallets.ts +185 -19
  70. package/src/version.ts +1 -1
  71. package/version.d.mts +1 -1
  72. package/version.d.ts +1 -1
  73. package/version.js +1 -1
  74. package/version.mjs +1 -1
@@ -0,0 +1,213 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import * as ClientAuthAPI from './client-auth';
5
+
6
+ export class Apps extends APIResource {}
7
+
8
+ /**
9
+ * The response for getting an app.
10
+ */
11
+ export interface AppResponse {
12
+ id: string;
13
+
14
+ accent_color: string | null;
15
+
16
+ allowed_domains: Array<string>;
17
+
18
+ allowed_native_app_ids: Array<string>;
19
+
20
+ allowed_native_app_url_schemes: Array<string>;
21
+
22
+ allowlist_config: AppResponse.AllowlistConfig;
23
+
24
+ allowlist_enabled: boolean;
25
+
26
+ apple_oauth: boolean;
27
+
28
+ captcha_enabled: boolean;
29
+
30
+ custom_api_url: string | null;
31
+
32
+ custom_jwt_auth: boolean;
33
+
34
+ custom_oauth_providers: Array<AppResponse.CustomOAuthProvider>;
35
+
36
+ disable_plus_emails: boolean;
37
+
38
+ discord_oauth: boolean;
39
+
40
+ email_auth: boolean;
41
+
42
+ embedded_wallet_config: AppResponse.EmbeddedWalletConfig;
43
+
44
+ enforce_wallet_uis: boolean;
45
+
46
+ farcaster_auth: boolean;
47
+
48
+ farcaster_link_wallets_enabled: boolean;
49
+
50
+ fiat_on_ramp_enabled: boolean;
51
+
52
+ github_oauth: boolean;
53
+
54
+ google_oauth: boolean;
55
+
56
+ guest_auth: boolean;
57
+
58
+ icon_url: string | null;
59
+
60
+ instagram_oauth: boolean;
61
+
62
+ legacy_wallet_ui_config: boolean;
63
+
64
+ line_oauth: boolean;
65
+
66
+ linkedin_oauth: boolean;
67
+
68
+ logo_url: string | null;
69
+
70
+ max_linked_wallets_per_user: number | null;
71
+
72
+ mfa_methods: Array<'sms' | 'totp' | 'passkey'>;
73
+
74
+ name: string;
75
+
76
+ passkey_auth: boolean;
77
+
78
+ passkeys_for_signup_enabled: boolean;
79
+
80
+ privacy_policy_url: string | null;
81
+
82
+ require_users_accept_terms: boolean | null;
83
+
84
+ show_wallet_login_first: boolean;
85
+
86
+ sms_auth: boolean;
87
+
88
+ solana_wallet_auth: boolean;
89
+
90
+ spotify_oauth: boolean;
91
+
92
+ telegram_auth: boolean;
93
+
94
+ terms_and_conditions_url: string | null;
95
+
96
+ theme: string;
97
+
98
+ tiktok_oauth: boolean;
99
+
100
+ twitch_oauth: boolean;
101
+
102
+ twitter_oauth: boolean;
103
+
104
+ twitter_oauth_on_mobile_enabled: boolean;
105
+
106
+ verification_key: string;
107
+
108
+ wallet_auth: boolean;
109
+
110
+ wallet_connect_cloud_project_id: string | null;
111
+
112
+ whatsapp_enabled: boolean;
113
+
114
+ captcha_site_key?: string;
115
+
116
+ funding_config?: AppResponse.FundingConfig;
117
+
118
+ telegram_auth_config?: AppResponse.TelegramAuthConfig;
119
+ }
120
+
121
+ export namespace AppResponse {
122
+ export interface AllowlistConfig {
123
+ cta_link: string | null;
124
+
125
+ cta_text: string | null;
126
+
127
+ error_detail: string | null;
128
+
129
+ error_title: string | null;
130
+ }
131
+
132
+ export interface CustomOAuthProvider {
133
+ enabled: boolean;
134
+
135
+ /**
136
+ * The ID of a custom OAuth provider, set up for this app. Must start with
137
+ * "custom:".
138
+ */
139
+ provider: ClientAuthAPI.CustomOAuthProviderID;
140
+
141
+ provider_display_name: string;
142
+
143
+ provider_icon_url: string;
144
+ }
145
+
146
+ export interface EmbeddedWalletConfig {
147
+ create_on_login: 'users-without-wallets' | 'all-users' | 'off';
148
+
149
+ ethereum: EmbeddedWalletConfig.Ethereum;
150
+
151
+ mode: 'legacy-embedded-wallets-only' | 'user-controlled-server-wallets-only';
152
+
153
+ solana: EmbeddedWalletConfig.Solana;
154
+
155
+ user_owned_recovery_options: Array<'user-passcode' | 'google-drive' | 'icloud'>;
156
+
157
+ require_user_owned_recovery_on_create?: boolean;
158
+
159
+ require_user_password_on_create?: boolean;
160
+ }
161
+
162
+ export namespace EmbeddedWalletConfig {
163
+ export interface Ethereum {
164
+ create_on_login: 'users-without-wallets' | 'all-users' | 'off';
165
+ }
166
+
167
+ export interface Solana {
168
+ create_on_login: 'users-without-wallets' | 'all-users' | 'off';
169
+ }
170
+ }
171
+
172
+ export interface FundingConfig {
173
+ cross_chain_bridging_enabled: boolean;
174
+
175
+ default_recommended_amount: string;
176
+
177
+ default_recommended_currency: FundingConfig.DefaultRecommendedCurrency;
178
+
179
+ methods: Array<'moonpay' | 'coinbase-onramp' | 'external'>;
180
+
181
+ options: Array<FundingConfig.Option>;
182
+
183
+ prompt_funding_on_wallet_creation: boolean;
184
+ }
185
+
186
+ export namespace FundingConfig {
187
+ export interface DefaultRecommendedCurrency {
188
+ chain: string;
189
+
190
+ asset?: 'native-currency' | 'USDC';
191
+ }
192
+
193
+ export interface Option {
194
+ method: string;
195
+
196
+ provider: string;
197
+ }
198
+ }
199
+
200
+ export interface TelegramAuthConfig {
201
+ bot_id: string;
202
+
203
+ bot_name: string;
204
+
205
+ link_enabled: boolean;
206
+
207
+ seamless_auth_enabled: boolean;
208
+ }
209
+ }
210
+
211
+ export declare namespace Apps {
212
+ export { type AppResponse as AppResponse };
213
+ }
@@ -1,5 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
+ export { Analytics, type AnalyticsEventInput } from './analytics';
4
+ export { Apps, type AppResponse } from './apps';
3
5
  export {
4
6
  ClientAuth,
5
7
  type ExternalOAuthProviderID,
@@ -72,10 +74,13 @@ export {
72
74
  type FirstClassChainType,
73
75
  type Wallet,
74
76
  type WalletChainType,
77
+ type ExtendedChainType,
78
+ type WalletCustodian,
75
79
  type EthereumPersonalSignRpcInput,
76
80
  type EthereumSignTransactionRpcInput,
77
81
  type EthereumSendTransactionRpcInput,
78
82
  type EthereumSignTypedDataRpcInput,
83
+ type EthereumSignUserOperationRpcInput,
79
84
  type EthereumSign7702AuthorizationRpcInput,
80
85
  type EthereumSecp256k1SignRpcInput,
81
86
  type SolanaSignTransactionRpcInput,
@@ -85,6 +90,7 @@ export {
85
90
  type EthereumSendTransactionRpcResponse,
86
91
  type EthereumPersonalSignRpcResponse,
87
92
  type EthereumSignTypedDataRpcResponse,
93
+ type EthereumSignUserOperationRpcResponse,
88
94
  type EthereumSign7702AuthorizationRpcResponse,
89
95
  type EthereumSecp256k1SignRpcResponse,
90
96
  type SolanaSignTransactionRpcResponse,
@@ -263,7 +263,7 @@ export interface Policy {
263
263
  /**
264
264
  * The chain type the policy applies to.
265
265
  */
266
- chain_type: 'ethereum' | 'solana';
266
+ chain_type: 'ethereum' | 'solana' | 'tron';
267
267
 
268
268
  /**
269
269
  * Unix timestamp of when the policy was created in milliseconds.
@@ -311,6 +311,7 @@ export namespace Policy {
311
311
  | Rule.SolanaSystemProgramInstructionCondition
312
312
  | Rule.SolanaTokenProgramInstructionCondition
313
313
  | Rule.SystemCondition
314
+ | Rule.TronTransactionCondition
314
315
  >;
315
316
 
316
317
  /**
@@ -319,11 +320,13 @@ export namespace Policy {
319
320
  method:
320
321
  | 'eth_sendTransaction'
321
322
  | 'eth_signTransaction'
323
+ | 'eth_signUserOperation'
322
324
  | 'eth_signTypedData_v4'
323
325
  | 'eth_sign7702Authorization'
324
326
  | 'signTransaction'
325
327
  | 'signAndSendTransaction'
326
328
  | 'exportPrivateKey'
329
+ | 'signTransactionBytes'
327
330
  | '*';
328
331
 
329
332
  name: string;
@@ -478,6 +481,29 @@ export namespace Policy {
478
481
 
479
482
  value: string | Array<string>;
480
483
  }
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
+ }
481
507
  }
482
508
  }
483
509
 
@@ -503,6 +529,7 @@ export interface PolicyCreateRuleResponse {
503
529
  | PolicyCreateRuleResponse.SolanaSystemProgramInstructionCondition
504
530
  | PolicyCreateRuleResponse.SolanaTokenProgramInstructionCondition
505
531
  | PolicyCreateRuleResponse.SystemCondition
532
+ | PolicyCreateRuleResponse.TronTransactionCondition
506
533
  >;
507
534
 
508
535
  /**
@@ -511,11 +538,13 @@ export interface PolicyCreateRuleResponse {
511
538
  method:
512
539
  | 'eth_sendTransaction'
513
540
  | 'eth_signTransaction'
541
+ | 'eth_signUserOperation'
514
542
  | 'eth_signTypedData_v4'
515
543
  | 'eth_sign7702Authorization'
516
544
  | 'signTransaction'
517
545
  | 'signAndSendTransaction'
518
546
  | 'exportPrivateKey'
547
+ | 'signTransactionBytes'
519
548
  | '*';
520
549
 
521
550
  name: string;
@@ -670,6 +699,29 @@ export namespace PolicyCreateRuleResponse {
670
699
 
671
700
  value: string | Array<string>;
672
701
  }
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
+ }
673
725
  }
674
726
 
675
727
  export interface PolicyDeleteResponse {
@@ -704,6 +756,7 @@ export interface PolicyUpdateRuleResponse {
704
756
  | PolicyUpdateRuleResponse.SolanaSystemProgramInstructionCondition
705
757
  | PolicyUpdateRuleResponse.SolanaTokenProgramInstructionCondition
706
758
  | PolicyUpdateRuleResponse.SystemCondition
759
+ | PolicyUpdateRuleResponse.TronTransactionCondition
707
760
  >;
708
761
 
709
762
  /**
@@ -712,11 +765,13 @@ export interface PolicyUpdateRuleResponse {
712
765
  method:
713
766
  | 'eth_sendTransaction'
714
767
  | 'eth_signTransaction'
768
+ | 'eth_signUserOperation'
715
769
  | 'eth_signTypedData_v4'
716
770
  | 'eth_sign7702Authorization'
717
771
  | 'signTransaction'
718
772
  | 'signAndSendTransaction'
719
773
  | 'exportPrivateKey'
774
+ | 'signTransactionBytes'
720
775
  | '*';
721
776
 
722
777
  name: string;
@@ -871,6 +926,29 @@ export namespace PolicyUpdateRuleResponse {
871
926
 
872
927
  value: string | Array<string>;
873
928
  }
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
+ }
874
952
  }
875
953
 
876
954
  /**
@@ -895,6 +973,7 @@ export interface PolicyGetRuleResponse {
895
973
  | PolicyGetRuleResponse.SolanaSystemProgramInstructionCondition
896
974
  | PolicyGetRuleResponse.SolanaTokenProgramInstructionCondition
897
975
  | PolicyGetRuleResponse.SystemCondition
976
+ | PolicyGetRuleResponse.TronTransactionCondition
898
977
  >;
899
978
 
900
979
  /**
@@ -903,11 +982,13 @@ export interface PolicyGetRuleResponse {
903
982
  method:
904
983
  | 'eth_sendTransaction'
905
984
  | 'eth_signTransaction'
985
+ | 'eth_signUserOperation'
906
986
  | 'eth_signTypedData_v4'
907
987
  | 'eth_sign7702Authorization'
908
988
  | 'signTransaction'
909
989
  | 'signAndSendTransaction'
910
990
  | 'exportPrivateKey'
991
+ | 'signTransactionBytes'
911
992
  | '*';
912
993
 
913
994
  name: string;
@@ -1062,13 +1143,36 @@ export namespace PolicyGetRuleResponse {
1062
1143
 
1063
1144
  value: string | Array<string>;
1064
1145
  }
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
+ }
1065
1169
  }
1066
1170
 
1067
1171
  export interface PolicyCreateParams {
1068
1172
  /**
1069
1173
  * Body param: The chain type the policy applies to.
1070
1174
  */
1071
- chain_type: 'ethereum' | 'solana';
1175
+ chain_type: 'ethereum' | 'solana' | 'tron';
1072
1176
 
1073
1177
  /**
1074
1178
  * Body param: Name to assign to policy.
@@ -1125,6 +1229,7 @@ export namespace PolicyCreateParams {
1125
1229
  | Rule.SolanaSystemProgramInstructionCondition
1126
1230
  | Rule.SolanaTokenProgramInstructionCondition
1127
1231
  | Rule.SystemCondition
1232
+ | Rule.TronTransactionCondition
1128
1233
  >;
1129
1234
 
1130
1235
  /**
@@ -1133,11 +1238,13 @@ export namespace PolicyCreateParams {
1133
1238
  method:
1134
1239
  | 'eth_sendTransaction'
1135
1240
  | 'eth_signTransaction'
1241
+ | 'eth_signUserOperation'
1136
1242
  | 'eth_signTypedData_v4'
1137
1243
  | 'eth_sign7702Authorization'
1138
1244
  | 'signTransaction'
1139
1245
  | 'signAndSendTransaction'
1140
1246
  | 'exportPrivateKey'
1247
+ | 'signTransactionBytes'
1141
1248
  | '*';
1142
1249
 
1143
1250
  name: string;
@@ -1292,6 +1399,29 @@ export namespace PolicyCreateParams {
1292
1399
 
1293
1400
  value: string | Array<string>;
1294
1401
  }
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
+ }
1295
1425
  }
1296
1426
 
1297
1427
  /**
@@ -1332,6 +1462,7 @@ export interface PolicyCreateRuleParams {
1332
1462
  | PolicyCreateRuleParams.SolanaSystemProgramInstructionCondition
1333
1463
  | PolicyCreateRuleParams.SolanaTokenProgramInstructionCondition
1334
1464
  | PolicyCreateRuleParams.SystemCondition
1465
+ | PolicyCreateRuleParams.TronTransactionCondition
1335
1466
  >;
1336
1467
 
1337
1468
  /**
@@ -1340,11 +1471,13 @@ export interface PolicyCreateRuleParams {
1340
1471
  method:
1341
1472
  | 'eth_sendTransaction'
1342
1473
  | 'eth_signTransaction'
1474
+ | 'eth_signUserOperation'
1343
1475
  | 'eth_signTypedData_v4'
1344
1476
  | 'eth_sign7702Authorization'
1345
1477
  | 'signTransaction'
1346
1478
  | 'signAndSendTransaction'
1347
1479
  | 'exportPrivateKey'
1480
+ | 'signTransactionBytes'
1348
1481
  | '*';
1349
1482
 
1350
1483
  /**
@@ -1508,6 +1641,29 @@ export namespace PolicyCreateRuleParams {
1508
1641
 
1509
1642
  value: string | Array<string>;
1510
1643
  }
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
+ }
1511
1667
  }
1512
1668
 
1513
1669
  export interface PolicyDeleteParams {
@@ -1600,6 +1756,7 @@ export namespace PolicyUpdateParams {
1600
1756
  | Rule.SolanaSystemProgramInstructionCondition
1601
1757
  | Rule.SolanaTokenProgramInstructionCondition
1602
1758
  | Rule.SystemCondition
1759
+ | Rule.TronTransactionCondition
1603
1760
  >;
1604
1761
 
1605
1762
  /**
@@ -1608,11 +1765,13 @@ export namespace PolicyUpdateParams {
1608
1765
  method:
1609
1766
  | 'eth_sendTransaction'
1610
1767
  | 'eth_signTransaction'
1768
+ | 'eth_signUserOperation'
1611
1769
  | 'eth_signTypedData_v4'
1612
1770
  | 'eth_sign7702Authorization'
1613
1771
  | 'signTransaction'
1614
1772
  | 'signAndSendTransaction'
1615
1773
  | 'exportPrivateKey'
1774
+ | 'signTransactionBytes'
1616
1775
  | '*';
1617
1776
 
1618
1777
  name: string;
@@ -1767,6 +1926,29 @@ export namespace PolicyUpdateParams {
1767
1926
 
1768
1927
  value: string | Array<string>;
1769
1928
  }
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
+ }
1770
1952
  }
1771
1953
  }
1772
1954
 
@@ -1794,6 +1976,7 @@ export interface PolicyUpdateRuleParams {
1794
1976
  | PolicyUpdateRuleParams.SolanaSystemProgramInstructionCondition
1795
1977
  | PolicyUpdateRuleParams.SolanaTokenProgramInstructionCondition
1796
1978
  | PolicyUpdateRuleParams.SystemCondition
1979
+ | PolicyUpdateRuleParams.TronTransactionCondition
1797
1980
  >;
1798
1981
 
1799
1982
  /**
@@ -1802,11 +1985,13 @@ export interface PolicyUpdateRuleParams {
1802
1985
  method:
1803
1986
  | 'eth_sendTransaction'
1804
1987
  | 'eth_signTransaction'
1988
+ | 'eth_signUserOperation'
1805
1989
  | 'eth_signTypedData_v4'
1806
1990
  | 'eth_sign7702Authorization'
1807
1991
  | 'signTransaction'
1808
1992
  | 'signAndSendTransaction'
1809
1993
  | 'exportPrivateKey'
1994
+ | 'signTransactionBytes'
1810
1995
  | '*';
1811
1996
 
1812
1997
  /**
@@ -1970,6 +2155,29 @@ export namespace PolicyUpdateRuleParams {
1970
2155
 
1971
2156
  value: string | Array<string>;
1972
2157
  }
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
+ }
1973
2181
  }
1974
2182
 
1975
2183
  export interface PolicyGetRuleParams {
@@ -1421,20 +1421,10 @@ export interface UserPregenerateWalletsParams {
1421
1421
 
1422
1422
  export namespace UserPregenerateWalletsParams {
1423
1423
  export interface Wallet {
1424
- chain_type:
1425
- | 'cosmos'
1426
- | 'stellar'
1427
- | 'sui'
1428
- | 'aptos'
1429
- | 'movement'
1430
- | 'tron'
1431
- | 'bitcoin-segwit'
1432
- | 'near'
1433
- | 'ton'
1434
- | 'starknet'
1435
- | 'spark'
1436
- | 'solana'
1437
- | 'ethereum';
1424
+ /**
1425
+ * The wallet chain types.
1426
+ */
1427
+ chain_type: WalletsAPI.WalletChainType;
1438
1428
 
1439
1429
  additional_signers?: Array<Wallet.AdditionalSigner>;
1440
1430
 
@@ -8,10 +8,13 @@ export {
8
8
  type FirstClassChainType,
9
9
  type Wallet,
10
10
  type WalletChainType,
11
+ type ExtendedChainType,
12
+ type WalletCustodian,
11
13
  type EthereumPersonalSignRpcInput,
12
14
  type EthereumSignTransactionRpcInput,
13
15
  type EthereumSendTransactionRpcInput,
14
16
  type EthereumSignTypedDataRpcInput,
17
+ type EthereumSignUserOperationRpcInput,
15
18
  type EthereumSign7702AuthorizationRpcInput,
16
19
  type EthereumSecp256k1SignRpcInput,
17
20
  type SolanaSignTransactionRpcInput,
@@ -21,6 +24,7 @@ export {
21
24
  type EthereumSendTransactionRpcResponse,
22
25
  type EthereumPersonalSignRpcResponse,
23
26
  type EthereumSignTypedDataRpcResponse,
27
+ type EthereumSignUserOperationRpcResponse,
24
28
  type EthereumSign7702AuthorizationRpcResponse,
25
29
  type EthereumSecp256k1SignRpcResponse,
26
30
  type SolanaSignTransactionRpcResponse,