@privy-io/api-types 0.8.0 → 0.10.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 (167) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/client.d.mts +35 -32
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +35 -32
  5. package/client.d.ts.map +1 -1
  6. package/client.js +22 -8
  7. package/client.js.map +1 -1
  8. package/client.mjs +22 -8
  9. package/client.mjs.map +1 -1
  10. package/internal/types.d.mts +6 -6
  11. package/internal/types.d.mts.map +1 -1
  12. package/internal/types.d.ts +6 -6
  13. package/internal/types.d.ts.map +1 -1
  14. package/internal/utils/env.js +2 -2
  15. package/internal/utils/env.js.map +1 -1
  16. package/internal/utils/env.mjs +2 -2
  17. package/internal/utils/env.mjs.map +1 -1
  18. package/package.json +1 -1
  19. package/resources/accounts.d.mts +128 -86
  20. package/resources/accounts.d.mts.map +1 -1
  21. package/resources/accounts.d.ts +128 -86
  22. package/resources/accounts.d.ts.map +1 -1
  23. package/resources/aggregations.d.mts +43 -43
  24. package/resources/aggregations.d.mts.map +1 -1
  25. package/resources/aggregations.d.ts +43 -43
  26. package/resources/aggregations.d.ts.map +1 -1
  27. package/resources/apps.d.mts +177 -129
  28. package/resources/apps.d.mts.map +1 -1
  29. package/resources/apps.d.ts +177 -129
  30. package/resources/apps.d.ts.map +1 -1
  31. package/resources/client-auth.d.mts +650 -648
  32. package/resources/client-auth.d.mts.map +1 -1
  33. package/resources/client-auth.d.ts +650 -648
  34. package/resources/client-auth.d.ts.map +1 -1
  35. package/resources/embedded-wallets.d.mts +84 -84
  36. package/resources/embedded-wallets.d.mts.map +1 -1
  37. package/resources/embedded-wallets.d.ts +84 -84
  38. package/resources/embedded-wallets.d.ts.map +1 -1
  39. package/resources/funding.d.mts +42 -42
  40. package/resources/funding.d.mts.map +1 -1
  41. package/resources/funding.d.ts +42 -42
  42. package/resources/funding.d.ts.map +1 -1
  43. package/resources/index.d.mts +19 -18
  44. package/resources/index.d.mts.map +1 -1
  45. package/resources/index.d.ts +19 -18
  46. package/resources/index.d.ts.map +1 -1
  47. package/resources/index.js +3 -1
  48. package/resources/index.js.map +1 -1
  49. package/resources/index.mjs +2 -1
  50. package/resources/index.mjs.map +1 -1
  51. package/resources/intents.d.mts +270 -266
  52. package/resources/intents.d.mts.map +1 -1
  53. package/resources/intents.d.ts +270 -266
  54. package/resources/intents.d.ts.map +1 -1
  55. package/resources/key-quorums.d.mts +20 -20
  56. package/resources/key-quorums.d.mts.map +1 -1
  57. package/resources/key-quorums.d.ts +20 -20
  58. package/resources/key-quorums.d.ts.map +1 -1
  59. package/resources/kraken-embed.d.mts +62 -19
  60. package/resources/kraken-embed.d.mts.map +1 -1
  61. package/resources/kraken-embed.d.ts +62 -19
  62. package/resources/kraken-embed.d.ts.map +1 -1
  63. package/resources/organizations.d.mts +65 -0
  64. package/resources/organizations.d.mts.map +1 -0
  65. package/resources/organizations.d.ts +65 -0
  66. package/resources/organizations.d.ts.map +1 -0
  67. package/resources/organizations.js +9 -0
  68. package/resources/organizations.js.map +1 -0
  69. package/resources/organizations.mjs +5 -0
  70. package/resources/organizations.mjs.map +1 -0
  71. package/resources/policies.d.mts +360 -231
  72. package/resources/policies.d.mts.map +1 -1
  73. package/resources/policies.d.ts +360 -231
  74. package/resources/policies.d.ts.map +1 -1
  75. package/resources/shared.d.mts +28 -28
  76. package/resources/shared.d.mts.map +1 -1
  77. package/resources/shared.d.ts +28 -28
  78. package/resources/shared.d.ts.map +1 -1
  79. package/resources/swaps.d.mts +8 -11
  80. package/resources/swaps.d.mts.map +1 -1
  81. package/resources/swaps.d.ts +8 -11
  82. package/resources/swaps.d.ts.map +1 -1
  83. package/resources/swaps.js.map +1 -1
  84. package/resources/swaps.mjs.map +1 -1
  85. package/resources/transactions.d.mts +56 -66
  86. package/resources/transactions.d.mts.map +1 -1
  87. package/resources/transactions.d.ts +56 -66
  88. package/resources/transactions.d.ts.map +1 -1
  89. package/resources/users.d.mts +457 -448
  90. package/resources/users.d.mts.map +1 -1
  91. package/resources/users.d.ts +457 -448
  92. package/resources/users.d.ts.map +1 -1
  93. package/resources/wallet-actions.d.mts +450 -41
  94. package/resources/wallet-actions.d.mts.map +1 -1
  95. package/resources/wallet-actions.d.ts +450 -41
  96. package/resources/wallet-actions.d.ts.map +1 -1
  97. package/resources/wallets/balance.d.mts +2 -1
  98. package/resources/wallets/balance.d.mts.map +1 -1
  99. package/resources/wallets/balance.d.ts +2 -1
  100. package/resources/wallets/balance.d.ts.map +1 -1
  101. package/resources/wallets/balance.js.map +1 -1
  102. package/resources/wallets/balance.mjs.map +1 -1
  103. package/resources/wallets/index.d.mts +1 -1
  104. package/resources/wallets/index.d.mts.map +1 -1
  105. package/resources/wallets/index.d.ts +1 -1
  106. package/resources/wallets/index.d.ts.map +1 -1
  107. package/resources/wallets/index.js.map +1 -1
  108. package/resources/wallets/index.mjs.map +1 -1
  109. package/resources/wallets/transactions.d.mts +16 -31
  110. package/resources/wallets/transactions.d.mts.map +1 -1
  111. package/resources/wallets/transactions.d.ts +16 -31
  112. package/resources/wallets/transactions.d.ts.map +1 -1
  113. package/resources/wallets/transactions.js +1 -1
  114. package/resources/wallets/transactions.js.map +1 -1
  115. package/resources/wallets/transactions.mjs +1 -1
  116. package/resources/wallets/transactions.mjs.map +1 -1
  117. package/resources/wallets/wallets.d.mts +1475 -1172
  118. package/resources/wallets/wallets.d.mts.map +1 -1
  119. package/resources/wallets/wallets.d.ts +1475 -1172
  120. package/resources/wallets/wallets.d.ts.map +1 -1
  121. package/resources/wallets/wallets.js +10 -6
  122. package/resources/wallets/wallets.js.map +1 -1
  123. package/resources/wallets/wallets.mjs +10 -6
  124. package/resources/wallets/wallets.mjs.map +1 -1
  125. package/resources/webhooks.d.mts +1345 -582
  126. package/resources/webhooks.d.mts.map +1 -1
  127. package/resources/webhooks.d.ts +1345 -582
  128. package/resources/webhooks.d.ts.map +1 -1
  129. package/resources/yield.d.mts +157 -157
  130. package/resources/yield.d.mts.map +1 -1
  131. package/resources/yield.d.ts +157 -157
  132. package/resources/yield.d.ts.map +1 -1
  133. package/src/client.ts +661 -455
  134. package/src/internal/types.ts +6 -8
  135. package/src/internal/utils/env.ts +2 -2
  136. package/src/resources/accounts.ts +157 -103
  137. package/src/resources/aggregations.ts +55 -55
  138. package/src/resources/apps.ts +232 -166
  139. package/src/resources/client-auth.ts +890 -890
  140. package/src/resources/embedded-wallets.ts +123 -123
  141. package/src/resources/funding.ts +66 -66
  142. package/src/resources/index.ts +521 -431
  143. package/src/resources/intents.ts +326 -322
  144. package/src/resources/key-quorums.ts +23 -23
  145. package/src/resources/kraken-embed.ts +116 -19
  146. package/src/resources/organizations.ts +82 -0
  147. package/src/resources/policies.ts +495 -339
  148. package/src/resources/shared.ts +34 -34
  149. package/src/resources/swaps.ts +9 -14
  150. package/src/resources/transactions.ts +88 -115
  151. package/src/resources/users.ts +664 -653
  152. package/src/resources/wallet-actions.ts +585 -56
  153. package/src/resources/wallets/balance.ts +2 -1
  154. package/src/resources/wallets/index.ts +158 -138
  155. package/src/resources/wallets/transactions.ts +20 -83
  156. package/src/resources/wallets/wallets.ts +1997 -1563
  157. package/src/resources/webhooks.ts +1652 -700
  158. package/src/resources/yield.ts +188 -188
  159. package/src/version.ts +1 -1
  160. package/version.d.mts +1 -1
  161. package/version.d.mts.map +1 -1
  162. package/version.d.ts +1 -1
  163. package/version.d.ts.map +1 -1
  164. package/version.js +1 -1
  165. package/version.js.map +1 -1
  166. package/version.mjs +1 -1
  167. package/version.mjs.map +1 -1
@@ -287,44 +287,87 @@ export class Policies extends APIResource {
287
287
  }
288
288
 
289
289
  /**
290
- * Unique ID of the condition set to take actions on.
290
+ * A parameter in a Solidity ABI function or event definition.
291
291
  */
292
- export interface ConditionSetRequestParams {
293
- condition_set_id: string;
292
+ export interface AbiParameter {
293
+ type: string;
294
+
295
+ components?: Array<{ [key: string]: unknown }>;
296
+
297
+ indexed?: boolean;
298
+
299
+ internalType?: string;
300
+
301
+ name?: string;
294
302
  }
295
303
 
296
304
  /**
297
- * Unique IDs of the condition set and the condition set item within the condition
298
- * set to take actions on.
305
+ * A Solidity ABI definition for decoding smart contract calldata.
299
306
  */
300
- export interface ConditionSetItemRequestParams {
301
- condition_set_id: string;
307
+ export type AbiSchema = Array<AbiSchema.AbiSchemaItem>;
302
308
 
303
- condition_set_item_id: string;
309
+ export namespace AbiSchema {
310
+ export interface AbiSchemaItem {
311
+ type: 'function' | 'constructor' | 'event' | 'fallback' | 'receive';
312
+
313
+ anonymous?: boolean;
314
+
315
+ inputs?: Array<PoliciesAPI.AbiParameter>;
316
+
317
+ name?: string;
318
+
319
+ outputs?: Array<PoliciesAPI.AbiParameter>;
320
+
321
+ stateMutability?: 'pure' | 'view' | 'nonpayable' | 'payable';
322
+ }
304
323
  }
305
324
 
306
325
  /**
307
- * Request body for creating a condition set.
326
+ * Condition on the original wallet action API request body fields.
308
327
  */
309
- export interface ConditionSetRequestBody {
328
+ export interface ActionRequestBodyCondition {
329
+ field: string;
330
+
331
+ field_source: 'action_request_body';
332
+
310
333
  /**
311
- * Name to assign to condition set.
334
+ * Operator to use for policy conditions.
312
335
  */
313
- name: string;
336
+ operator: ConditionOperator;
314
337
 
315
338
  /**
316
- * The owner of the resource, specified as a Privy user ID, a P-256 public key, or
317
- * null to remove the current owner.
339
+ * Value to compare against in a policy condition. Can be a single string or an
340
+ * array of strings.
318
341
  */
319
- owner?: SharedAPI.OwnerInput | null;
342
+ value: ConditionValue;
343
+ }
344
+
345
+ /**
346
+ * Condition referencing an aggregation value. The field must start with
347
+ * "aggregation." followed by the aggregation ID.
348
+ */
349
+ export interface AggregationCondition {
350
+ field: string;
351
+
352
+ field_source: 'reference';
320
353
 
321
354
  /**
322
- * The key quorum ID to set as the owner of the resource. If you provide this, do
323
- * not specify an owner.
355
+ * Operator to use for policy conditions.
324
356
  */
325
- owner_id?: SharedAPI.OwnerIDInput | null;
357
+ operator: ConditionOperator;
358
+
359
+ /**
360
+ * Value to compare against in a policy condition. Can be a single string or an
361
+ * array of strings.
362
+ */
363
+ value: ConditionValue;
326
364
  }
327
365
 
366
+ /**
367
+ * Operator to use for policy conditions.
368
+ */
369
+ export type ConditionOperator = 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
370
+
328
371
  /**
329
372
  * A condition set for grouping related condition values.
330
373
  */
@@ -352,39 +395,27 @@ export interface ConditionSet {
352
395
  }
353
396
 
354
397
  /**
355
- * Request body for updating a condition set.
398
+ * Headers required to authorize modifications to condition sets.
356
399
  */
357
- export interface UpdateConditionSetRequestBody {
400
+ export interface ConditionSetAuthorizationHeaders {
358
401
  /**
359
- * Name to assign to condition set.
402
+ * ID of your Privy app.
360
403
  */
361
- name?: string;
404
+ 'privy-app-id': string;
362
405
 
363
406
  /**
364
- * The owner of the resource, specified as a Privy user ID, a P-256 public key, or
365
- * null to remove the current owner.
407
+ * Request authorization signature. If multiple signatures are required, they
408
+ * should be comma separated.
366
409
  */
367
- owner?: SharedAPI.OwnerInput | null;
410
+ 'privy-authorization-signature'?: string;
368
411
 
369
412
  /**
370
- * The key quorum ID to set as the owner of the resource. If you provide this, do
371
- * not specify an owner.
413
+ * Request expiry. Value is a Unix timestamp in milliseconds representing the
414
+ * deadline by which the request must be processed.
372
415
  */
373
- owner_id?: SharedAPI.OwnerIDInput | null;
374
- }
375
-
376
- /**
377
- * A single value to add to a condition set.
378
- */
379
- export interface ConditionSetItemValueInput {
380
- value: string;
416
+ 'privy-request-expiry'?: string;
381
417
  }
382
418
 
383
- /**
384
- * Array of values to add to the condition set. Maximum 100 items per request.
385
- */
386
- export type ConditionSetItemsRequestBody = Array<ConditionSetItemValueInput>;
387
-
388
419
  /**
389
420
  * A single item in a condition set.
390
421
  */
@@ -410,11 +441,33 @@ export interface ConditionSetItem {
410
441
  value: string;
411
442
  }
412
443
 
444
+ /**
445
+ * Unique IDs of the condition set and the condition set item within the condition
446
+ * set to take actions on.
447
+ */
448
+ export interface ConditionSetItemRequestParams {
449
+ condition_set_id: string;
450
+
451
+ condition_set_item_id: string;
452
+ }
453
+
454
+ /**
455
+ * A single value to add to a condition set.
456
+ */
457
+ export interface ConditionSetItemValueInput {
458
+ value: string;
459
+ }
460
+
413
461
  /**
414
462
  * Array of condition set items.
415
463
  */
416
464
  export type ConditionSetItems = Array<ConditionSetItem>;
417
465
 
466
+ /**
467
+ * Array of values to add to the condition set. Maximum 100 items per request.
468
+ */
469
+ export type ConditionSetItemsRequestBody = Array<ConditionSetItemValueInput>;
470
+
418
471
  /**
419
472
  * Paginated list of condition set items.
420
473
  */
@@ -431,85 +484,66 @@ export interface ConditionSetItemsResponse {
431
484
  }
432
485
 
433
486
  /**
434
- * The action to take when a policy rule matches.
435
- */
436
- export type PolicyAction = 'ALLOW' | 'DENY';
437
-
438
- /**
439
- * A parameter in a Solidity ABI function or event definition.
487
+ * Request body for creating a condition set.
440
488
  */
441
- export interface AbiParameter {
442
- type: string;
443
-
444
- components?: Array<unknown>;
445
-
446
- indexed?: boolean;
489
+ export interface ConditionSetRequestBody {
490
+ /**
491
+ * Name to assign to condition set.
492
+ */
493
+ name: string;
447
494
 
448
- internalType?: string;
495
+ /**
496
+ * The owner of the resource, specified as a Privy user ID, a P-256 public key, or
497
+ * null to remove the current owner.
498
+ */
499
+ owner?: SharedAPI.OwnerInput | null;
449
500
 
450
- name?: string;
501
+ /**
502
+ * The key quorum ID to set as the owner of the resource. If you provide this, do
503
+ * not specify an owner.
504
+ */
505
+ owner_id?: SharedAPI.OwnerIDInput | null;
451
506
  }
452
507
 
453
508
  /**
454
- * A Solidity ABI definition for decoding smart contract calldata.
509
+ * Unique ID of the condition set to take actions on.
455
510
  */
456
- export type AbiSchema = Array<AbiSchema.AbiSchemaItem>;
457
-
458
- export namespace AbiSchema {
459
- export interface AbiSchemaItem {
460
- type: 'function' | 'constructor' | 'event' | 'fallback' | 'receive';
461
-
462
- anonymous?: boolean;
463
-
464
- inputs?: Array<PoliciesAPI.AbiParameter>;
465
-
466
- name?: string;
467
-
468
- outputs?: Array<PoliciesAPI.AbiParameter>;
469
-
470
- stateMutability?: 'pure' | 'view' | 'nonpayable' | 'payable';
471
- }
511
+ export interface ConditionSetRequestParams {
512
+ condition_set_id: string;
472
513
  }
473
514
 
474
515
  /**
475
- * Operator to use for SUI transaction command conditions. Only 'eq' and 'in' are
476
- * supported for command names.
516
+ * Value to compare against in a policy condition. Can be a single string or an
517
+ * array of strings.
477
518
  */
478
- export type SuiTransactionCommandOperator = 'eq' | 'in';
519
+ export type ConditionValue = string | Array<string>;
479
520
 
480
521
  /**
481
- * Supported fields for SUI TransferObjects command conditions. Only 'recipient'
482
- * and 'amount' are supported.
522
+ * Allowed contract addresses for eth_sign7702Authorization requests.
483
523
  */
484
- export type SuiTransferObjectsCommandField = 'recipient' | 'amount';
524
+ export interface Ethereum7702AuthorizationCondition {
525
+ field: 'contract';
526
+
527
+ field_source: 'ethereum_7702_authorization';
485
528
 
486
- /**
487
- * TRON transaction fields for TransferContract and TriggerSmartContract
488
- * transaction types.
489
- */
490
- export interface TronTransactionCondition {
491
529
  /**
492
- * Supported TRON transaction fields in format "TransactionType.field_name"
530
+ * Operator to use for policy conditions.
493
531
  */
494
- field:
495
- | 'TransferContract.to_address'
496
- | 'TransferContract.amount'
497
- | 'TriggerSmartContract.contract_address'
498
- | 'TriggerSmartContract.call_value'
499
- | 'TriggerSmartContract.token_id'
500
- | 'TriggerSmartContract.call_token_value';
501
-
502
- field_source: 'tron_transaction';
503
-
504
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
532
+ operator: ConditionOperator;
505
533
 
506
- value: string | Array<string>;
534
+ /**
535
+ * Value to compare against in a policy condition. Can be a single string or an
536
+ * array of strings.
537
+ */
538
+ value: ConditionValue;
507
539
  }
508
540
 
509
541
  /**
510
- * Decoded calldata from a TRON TriggerSmartContract interaction.
542
+ * The decoded calldata in a smart contract interaction as the smart contract
543
+ * method's parameters. Note that 'ethereum_calldata' conditions must contain an
544
+ * abi parameter with the JSON ABI of the smart contract.
511
545
  */
512
- export interface TronCalldataCondition {
546
+ export interface EthereumCalldataCondition {
513
547
  /**
514
548
  * A Solidity ABI definition for decoding smart contract calldata.
515
549
  */
@@ -517,253 +551,180 @@ export interface TronCalldataCondition {
517
551
 
518
552
  field: string;
519
553
 
520
- field_source: 'tron_trigger_smart_contract_data';
554
+ field_source: 'ethereum_calldata';
521
555
 
522
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
556
+ /**
557
+ * Operator to use for policy conditions.
558
+ */
559
+ operator: ConditionOperator;
523
560
 
524
- value: string | Array<string>;
561
+ /**
562
+ * Value to compare against in a policy condition. Can be a single string or an
563
+ * array of strings.
564
+ */
565
+ value: ConditionValue;
525
566
  }
526
567
 
527
568
  /**
528
- * SUI transaction command attributes, enables allowlisting specific command types.
529
- * Allowed commands: 'TransferObjects', 'SplitCoins', 'MergeCoins'. Only 'eq' and
530
- * 'in' operators are supported.
569
+ * The verbatim Ethereum transaction object in an eth_signTransaction or
570
+ * eth_sendTransaction request.
531
571
  */
532
- export interface SuiTransactionCommandCondition {
533
- field: 'commandName';
572
+ export interface EthereumTransactionCondition {
573
+ field: 'to' | 'value' | 'chain_id';
534
574
 
535
- field_source: 'sui_transaction_command';
575
+ field_source: 'ethereum_transaction';
536
576
 
537
577
  /**
538
- * Operator to use for SUI transaction command conditions. Only 'eq' and 'in' are
539
- * supported for command names.
578
+ * Operator to use for policy conditions.
540
579
  */
541
- operator: SuiTransactionCommandOperator;
580
+ operator: ConditionOperator;
542
581
 
543
582
  /**
544
- * Command name(s) to match. Must be one of: 'TransferObjects', 'SplitCoins',
545
- * 'MergeCoins'
583
+ * Value to compare against in a policy condition. Can be a single string or an
584
+ * array of strings.
546
585
  */
547
- value: WalletsAPI.SuiCommandName | Array<WalletsAPI.SuiCommandName>;
586
+ value: ConditionValue;
548
587
  }
549
588
 
550
589
  /**
551
- * SUI TransferObjects command attributes, including recipient and amount fields.
590
+ * Attributes from the signing domain that will verify the signature.
552
591
  */
553
- export interface SuiTransferObjectsCommandCondition {
554
- /**
555
- * Supported fields for SUI TransferObjects command conditions. Only 'recipient'
556
- * and 'amount' are supported.
557
- */
558
- field: SuiTransferObjectsCommandField;
592
+ export interface EthereumTypedDataDomainCondition {
593
+ field: 'chainId' | 'verifyingContract' | 'chain_id' | 'verifying_contract';
559
594
 
560
- field_source: 'sui_transfer_objects_command';
595
+ field_source: 'ethereum_typed_data_domain';
561
596
 
562
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
597
+ /**
598
+ * Operator to use for policy conditions.
599
+ */
600
+ operator: ConditionOperator;
563
601
 
564
- value: string | Array<string>;
602
+ /**
603
+ * Value to compare against in a policy condition. Can be a single string or an
604
+ * array of strings.
605
+ */
606
+ value: ConditionValue;
565
607
  }
566
608
 
567
609
  /**
568
- * Condition referencing an aggregation value. The field must start with
569
- * "aggregation." followed by the aggregation ID.
610
+ * 'types' and 'primary_type' attributes of the TypedData JSON object defined in
611
+ * EIP-712.
570
612
  */
571
- export interface AggregationCondition {
613
+ export interface EthereumTypedDataMessageCondition {
572
614
  field: string;
573
615
 
574
- field_source: 'reference';
616
+ field_source: 'ethereum_typed_data_message';
575
617
 
576
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
577
-
578
- value: string | Array<string>;
579
- }
580
-
581
- /**
582
- * A condition that must be true for the rule action to be applied.
583
- */
584
- export type PolicyCondition =
585
- | PolicyCondition.EthereumTransactionCondition
586
- | PolicyCondition.EthereumCalldataCondition
587
- | PolicyCondition.EthereumTypedDataDomainCondition
588
- | PolicyCondition.EthereumTypedDataMessageCondition
589
- | PolicyCondition.Ethereum7702AuthorizationCondition
590
- | PolicyCondition.SolanaProgramInstructionCondition
591
- | PolicyCondition.SolanaSystemProgramInstructionCondition
592
- | PolicyCondition.SolanaTokenProgramInstructionCondition
593
- | PolicyCondition.SystemCondition
594
- | TronTransactionCondition
595
- | TronCalldataCondition
596
- | SuiTransactionCommandCondition
597
- | SuiTransferObjectsCommandCondition
598
- | AggregationCondition;
599
-
600
- export namespace PolicyCondition {
601
618
  /**
602
- * The verbatim Ethereum transaction object in an eth_signTransaction or
603
- * eth_sendTransaction request.
619
+ * Operator to use for policy conditions.
604
620
  */
605
- export interface EthereumTransactionCondition {
606
- field: 'to' | 'value' | 'chain_id';
607
-
608
- field_source: 'ethereum_transaction';
621
+ operator: ConditionOperator;
609
622
 
610
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
611
-
612
- value: string | Array<string>;
613
- }
623
+ typed_data: EthereumTypedDataMessageCondition.TypedData;
614
624
 
615
625
  /**
616
- * The decoded calldata in a smart contract interaction as the smart contract
617
- * method's parameters. Note that that 'ethereum_calldata' conditions must contain
618
- * an abi parameter with the JSON ABI of the smart contract.
626
+ * Value to compare against in a policy condition. Can be a single string or an
627
+ * array of strings.
619
628
  */
620
- export interface EthereumCalldataCondition {
621
- /**
622
- * A Solidity ABI definition for decoding smart contract calldata.
623
- */
624
- abi: PoliciesAPI.AbiSchema;
625
-
626
- field: string;
627
-
628
- field_source: 'ethereum_calldata';
629
-
630
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
631
-
632
- value: string | Array<string>;
633
- }
634
-
635
- /**
636
- * Attributes from the signing domain that will verify the signature.
637
- */
638
- export interface EthereumTypedDataDomainCondition {
639
- field: 'chainId' | 'verifyingContract' | 'chain_id' | 'verifying_contract';
640
-
641
- field_source: 'ethereum_typed_data_domain';
629
+ value: ConditionValue;
630
+ }
642
631
 
643
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
632
+ export namespace EthereumTypedDataMessageCondition {
633
+ export interface TypedData {
634
+ primary_type: string;
644
635
 
645
- value: string | Array<string>;
636
+ /**
637
+ * The type definitions for EIP-712 typed data signing.
638
+ */
639
+ types: WalletsAPI.TypedDataTypesInputParams;
646
640
  }
641
+ }
647
642
 
643
+ /**
644
+ * A policy for controlling wallet operations.
645
+ */
646
+ export interface Policy {
648
647
  /**
649
- * 'types' and 'primary_type' attributes of the TypedData JSON object defined in
650
- * EIP-712.
651
- */
652
- export interface EthereumTypedDataMessageCondition {
653
- field: string;
654
-
655
- field_source: 'ethereum_typed_data_message';
656
-
657
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
658
-
659
- typed_data: EthereumTypedDataMessageCondition.TypedData;
660
-
661
- value: string | Array<string>;
662
- }
663
-
664
- export namespace EthereumTypedDataMessageCondition {
665
- export interface TypedData {
666
- primary_type: string;
667
-
668
- /**
669
- * The type definitions for EIP-712 typed data signing.
670
- */
671
- types: WalletsAPI.TypedDataTypesInputParams;
672
- }
673
- }
648
+ * Unique ID of the created policy. This will be the primary identifier when using
649
+ * the policy in the future.
650
+ */
651
+ id: string;
674
652
 
675
653
  /**
676
- * Allowed contract addresses for eth_sign7702Authorization requests.
654
+ * The wallet chain types.
677
655
  */
678
- export interface Ethereum7702AuthorizationCondition {
679
- field: 'contract';
680
-
681
- field_source: 'ethereum_7702_authorization';
682
-
683
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
684
-
685
- value: string | Array<string>;
686
- }
656
+ chain_type: WalletsAPI.WalletChainType;
687
657
 
688
658
  /**
689
- * Solana Program attributes, enables allowlisting Solana Programs.
659
+ * Unix timestamp of when the policy was created in milliseconds.
690
660
  */
691
- export interface SolanaProgramInstructionCondition {
692
- field: 'programId';
693
-
694
- field_source: 'solana_program_instruction';
695
-
696
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
661
+ created_at: number;
697
662
 
698
- value: string | Array<string>;
699
- }
663
+ /**
664
+ * Name to assign to policy.
665
+ */
666
+ name: string;
700
667
 
701
668
  /**
702
- * Solana System Program attributes, including more granular Transfer instruction
703
- * fields.
669
+ * The key quorum ID of the owner of the policy.
704
670
  */
705
- export interface SolanaSystemProgramInstructionCondition {
706
- field: 'instructionName' | 'Transfer.from' | 'Transfer.to' | 'Transfer.lamports';
671
+ owner_id: string | null;
707
672
 
708
- field_source: 'solana_system_program_instruction';
673
+ rules: Array<PolicyRuleResponse>;
709
674
 
710
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
675
+ /**
676
+ * Version of the policy. Currently, 1.0 is the only version.
677
+ */
678
+ version: '1.0';
679
+ }
711
680
 
712
- value: string | Array<string>;
713
- }
681
+ /**
682
+ * The action to take when a policy rule matches.
683
+ */
684
+ export type PolicyAction = 'ALLOW' | 'DENY';
714
685
 
686
+ /**
687
+ * Headers required to authorize modifications to policies.
688
+ */
689
+ export interface PolicyAuthorizationHeaders {
715
690
  /**
716
- * Solana Token Program attributes, including more granular TransferChecked
717
- * instruction fields.
718
- */
719
- export interface SolanaTokenProgramInstructionCondition {
720
- field:
721
- | 'instructionName'
722
- | 'Transfer.source'
723
- | 'Transfer.destination'
724
- | 'Transfer.authority'
725
- | 'Transfer.amount'
726
- | 'TransferChecked.source'
727
- | 'TransferChecked.destination'
728
- | 'TransferChecked.authority'
729
- | 'TransferChecked.amount'
730
- | 'TransferChecked.mint'
731
- | 'Burn.account'
732
- | 'Burn.mint'
733
- | 'Burn.authority'
734
- | 'Burn.amount'
735
- | 'MintTo.mint'
736
- | 'MintTo.account'
737
- | 'MintTo.authority'
738
- | 'MintTo.amount'
739
- | 'CloseAccount.account'
740
- | 'CloseAccount.destination'
741
- | 'CloseAccount.authority'
742
- | 'InitializeAccount3.account'
743
- | 'InitializeAccount3.mint'
744
- | 'InitializeAccount3.owner';
745
-
746
- field_source: 'solana_token_program_instruction';
747
-
748
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
749
-
750
- value: string | Array<string>;
751
- }
691
+ * ID of your Privy app.
692
+ */
693
+ 'privy-app-id': string;
752
694
 
753
695
  /**
754
- * System attributes, including current unix timestamp (in seconds).
696
+ * Request authorization signature. If multiple signatures are required, they
697
+ * should be comma separated.
755
698
  */
756
- export interface SystemCondition {
757
- field: 'current_unix_timestamp';
758
-
759
- field_source: 'system';
760
-
761
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
699
+ 'privy-authorization-signature'?: string;
762
700
 
763
- value: string | Array<string>;
764
- }
701
+ /**
702
+ * Request expiry. Value is a Unix timestamp in milliseconds representing the
703
+ * deadline by which the request must be processed.
704
+ */
705
+ 'privy-request-expiry'?: string;
765
706
  }
766
707
 
708
+ /**
709
+ * A condition that must be true for the rule action to be applied.
710
+ */
711
+ export type PolicyCondition =
712
+ | EthereumTransactionCondition
713
+ | EthereumCalldataCondition
714
+ | EthereumTypedDataDomainCondition
715
+ | EthereumTypedDataMessageCondition
716
+ | Ethereum7702AuthorizationCondition
717
+ | SolanaProgramInstructionCondition
718
+ | SolanaSystemProgramInstructionCondition
719
+ | SolanaTokenProgramInstructionCondition
720
+ | SystemCondition
721
+ | TronTransactionCondition
722
+ | TronCalldataCondition
723
+ | SuiTransactionCommandCondition
724
+ | SuiTransferObjectsCommandCondition
725
+ | ActionRequestBodyCondition
726
+ | AggregationCondition;
727
+
767
728
  /**
768
729
  * Method the rule applies to.
769
730
  */
@@ -773,14 +734,26 @@ export type PolicyMethod =
773
734
  | 'eth_signUserOperation'
774
735
  | 'eth_signTypedData_v4'
775
736
  | 'eth_sign7702Authorization'
737
+ | 'personal_sign'
776
738
  | 'wallet_sendCalls'
777
739
  | 'signTransaction'
778
740
  | 'signAndSendTransaction'
741
+ | 'signMessage'
779
742
  | 'exportPrivateKey'
780
743
  | 'exportSeedPhrase'
781
744
  | 'signTransactionBytes'
745
+ | 'earn_deposit'
746
+ | 'earn_withdraw'
747
+ | 'transfer'
782
748
  | '*';
783
749
 
750
+ /**
751
+ * Unique ID of the policy to take actions on.
752
+ */
753
+ export interface PolicyRequestBody {
754
+ policy_id: string;
755
+ }
756
+
784
757
  /**
785
758
  * The rules that apply to each method the policy covers.
786
759
  */
@@ -800,6 +773,15 @@ export interface PolicyRuleRequestBody {
800
773
  name: string;
801
774
  }
802
775
 
776
+ /**
777
+ * Unique IDs of the policy and the rule within the policy to take actions on.
778
+ */
779
+ export interface PolicyRuleRequestParams {
780
+ policy_id: string;
781
+
782
+ rule_id: string;
783
+ }
784
+
803
785
  /**
804
786
  * A rule that defines the conditions and action to take if the conditions are
805
787
  * true.
@@ -823,85 +805,245 @@ export interface PolicyRuleResponse {
823
805
  }
824
806
 
825
807
  /**
826
- * A policy for controlling wallet operations.
808
+ * Solana Program attributes, enables allowlisting Solana Programs.
827
809
  */
828
- export interface Policy {
810
+ export interface SolanaProgramInstructionCondition {
811
+ field: 'programId';
812
+
813
+ field_source: 'solana_program_instruction';
814
+
829
815
  /**
830
- * Unique ID of the created policy. This will be the primary identifier when using
831
- * the policy in the future.
816
+ * Operator to use for policy conditions.
832
817
  */
833
- id: string;
818
+ operator: ConditionOperator;
834
819
 
835
820
  /**
836
- * The wallet chain types.
821
+ * Value to compare against in a policy condition. Can be a single string or an
822
+ * array of strings.
837
823
  */
838
- chain_type: WalletsAPI.WalletChainType;
824
+ value: ConditionValue;
825
+ }
826
+
827
+ /**
828
+ * Solana System Program attributes, including more granular Transfer instruction
829
+ * fields.
830
+ */
831
+ export interface SolanaSystemProgramInstructionCondition {
832
+ field: 'instructionName' | 'Transfer.from' | 'Transfer.to' | 'Transfer.lamports';
833
+
834
+ field_source: 'solana_system_program_instruction';
839
835
 
840
836
  /**
841
- * Unix timestamp of when the policy was created in milliseconds.
837
+ * Operator to use for policy conditions.
842
838
  */
843
- created_at: number;
839
+ operator: ConditionOperator;
844
840
 
845
841
  /**
846
- * Name to assign to policy.
842
+ * Value to compare against in a policy condition. Can be a single string or an
843
+ * array of strings.
847
844
  */
848
- name: string;
845
+ value: ConditionValue;
846
+ }
847
+
848
+ /**
849
+ * Solana Token Program attributes, including more granular TransferChecked
850
+ * instruction fields.
851
+ */
852
+ export interface SolanaTokenProgramInstructionCondition {
853
+ field:
854
+ | 'instructionName'
855
+ | 'Transfer.source'
856
+ | 'Transfer.destination'
857
+ | 'Transfer.authority'
858
+ | 'Transfer.amount'
859
+ | 'TransferChecked.source'
860
+ | 'TransferChecked.destination'
861
+ | 'TransferChecked.authority'
862
+ | 'TransferChecked.amount'
863
+ | 'TransferChecked.mint'
864
+ | 'Burn.account'
865
+ | 'Burn.mint'
866
+ | 'Burn.authority'
867
+ | 'Burn.amount'
868
+ | 'MintTo.mint'
869
+ | 'MintTo.account'
870
+ | 'MintTo.authority'
871
+ | 'MintTo.amount'
872
+ | 'CloseAccount.account'
873
+ | 'CloseAccount.destination'
874
+ | 'CloseAccount.authority'
875
+ | 'InitializeAccount3.account'
876
+ | 'InitializeAccount3.mint'
877
+ | 'InitializeAccount3.owner';
878
+
879
+ field_source: 'solana_token_program_instruction';
880
+
881
+ /**
882
+ * Operator to use for policy conditions.
883
+ */
884
+ operator: ConditionOperator;
885
+
886
+ /**
887
+ * Value to compare against in a policy condition. Can be a single string or an
888
+ * array of strings.
889
+ */
890
+ value: ConditionValue;
891
+ }
892
+
893
+ /**
894
+ * SUI transaction command attributes, enables allowlisting specific command types.
895
+ * Allowed commands: 'TransferObjects', 'SplitCoins', 'MergeCoins'. Only 'eq' and
896
+ * 'in' operators are supported.
897
+ */
898
+ export interface SuiTransactionCommandCondition {
899
+ field: 'commandName';
900
+
901
+ field_source: 'sui_transaction_command';
849
902
 
850
903
  /**
851
- * The key quorum ID of the owner of the policy.
904
+ * Operator to use for SUI transaction command conditions. Only 'eq' and 'in' are
905
+ * supported for command names.
852
906
  */
853
- owner_id: string | null;
907
+ operator: SuiTransactionCommandOperator;
854
908
 
855
- rules: Array<PolicyRuleResponse>;
909
+ /**
910
+ * Command name(s) to match. Must be one of: 'TransferObjects', 'SplitCoins',
911
+ * 'MergeCoins'
912
+ */
913
+ value: WalletsAPI.SuiCommandName | Array<WalletsAPI.SuiCommandName>;
914
+ }
915
+
916
+ /**
917
+ * Operator to use for SUI transaction command conditions. Only 'eq' and 'in' are
918
+ * supported for command names.
919
+ */
920
+ export type SuiTransactionCommandOperator = 'eq' | 'in';
856
921
 
922
+ /**
923
+ * SUI TransferObjects command attributes, including recipient and amount fields.
924
+ */
925
+ export interface SuiTransferObjectsCommandCondition {
857
926
  /**
858
- * Version of the policy. Currently, 1.0 is the only version.
927
+ * Supported fields for SUI TransferObjects command conditions. Only 'recipient'
928
+ * and 'amount' are supported.
859
929
  */
860
- version: '1.0';
930
+ field: SuiTransferObjectsCommandField;
931
+
932
+ field_source: 'sui_transfer_objects_command';
933
+
934
+ /**
935
+ * Operator to use for policy conditions.
936
+ */
937
+ operator: ConditionOperator;
938
+
939
+ /**
940
+ * Value to compare against in a policy condition. Can be a single string or an
941
+ * array of strings.
942
+ */
943
+ value: ConditionValue;
861
944
  }
862
945
 
863
946
  /**
864
- * Headers required to authorize modifications to policies.
947
+ * Supported fields for SUI TransferObjects command conditions. Only 'recipient'
948
+ * and 'amount' are supported.
865
949
  */
866
- export interface PolicyAuthorizationHeaders {
950
+ export type SuiTransferObjectsCommandField = 'recipient' | 'amount';
951
+
952
+ /**
953
+ * System attributes, including current unix timestamp (in seconds).
954
+ */
955
+ export interface SystemCondition {
956
+ field: 'current_unix_timestamp';
957
+
958
+ field_source: 'system';
959
+
867
960
  /**
868
- * ID of your Privy app.
961
+ * Operator to use for policy conditions.
869
962
  */
870
- 'privy-app-id': string;
963
+ operator: ConditionOperator;
871
964
 
872
965
  /**
873
- * Request authorization signature. If multiple signatures are required, they
874
- * should be comma separated.
966
+ * Value to compare against in a policy condition. Can be a single string or an
967
+ * array of strings.
875
968
  */
876
- 'privy-authorization-signature'?: string;
969
+ value: ConditionValue;
970
+ }
971
+
972
+ /**
973
+ * Decoded calldata from a TRON TriggerSmartContract interaction.
974
+ */
975
+ export interface TronCalldataCondition {
976
+ /**
977
+ * A Solidity ABI definition for decoding smart contract calldata.
978
+ */
979
+ abi: AbiSchema;
980
+
981
+ field: string;
982
+
983
+ field_source: 'tron_trigger_smart_contract_data';
877
984
 
878
985
  /**
879
- * Request expiry. Value is a Unix timestamp in milliseconds representing the
880
- * deadline by which the request must be processed.
986
+ * Operator to use for policy conditions.
881
987
  */
882
- 'privy-request-expiry'?: string;
988
+ operator: ConditionOperator;
989
+
990
+ /**
991
+ * Value to compare against in a policy condition. Can be a single string or an
992
+ * array of strings.
993
+ */
994
+ value: ConditionValue;
883
995
  }
884
996
 
885
997
  /**
886
- * Headers required to authorize modifications to condition sets.
998
+ * TRON transaction fields for TransferContract and TriggerSmartContract
999
+ * transaction types.
887
1000
  */
888
- export interface ConditionSetAuthorizationHeaders {
1001
+ export interface TronTransactionCondition {
889
1002
  /**
890
- * ID of your Privy app.
1003
+ * Supported TRON transaction fields in format "TransactionType.field_name"
891
1004
  */
892
- 'privy-app-id': string;
1005
+ field:
1006
+ | 'TransferContract.to_address'
1007
+ | 'TransferContract.amount'
1008
+ | 'TriggerSmartContract.contract_address'
1009
+ | 'TriggerSmartContract.call_value'
1010
+ | 'TriggerSmartContract.token_id'
1011
+ | 'TriggerSmartContract.call_token_value';
1012
+
1013
+ field_source: 'tron_transaction';
893
1014
 
894
1015
  /**
895
- * Request authorization signature. If multiple signatures are required, they
896
- * should be comma separated.
1016
+ * Operator to use for policy conditions.
897
1017
  */
898
- 'privy-authorization-signature'?: string;
1018
+ operator: ConditionOperator;
899
1019
 
900
1020
  /**
901
- * Request expiry. Value is a Unix timestamp in milliseconds representing the
902
- * deadline by which the request must be processed.
1021
+ * Value to compare against in a policy condition. Can be a single string or an
1022
+ * array of strings.
903
1023
  */
904
- 'privy-request-expiry'?: string;
1024
+ value: ConditionValue;
1025
+ }
1026
+
1027
+ /**
1028
+ * Request body for updating a condition set.
1029
+ */
1030
+ export interface UpdateConditionSetRequestBody {
1031
+ /**
1032
+ * Name to assign to condition set.
1033
+ */
1034
+ name?: string;
1035
+
1036
+ /**
1037
+ * The owner of the resource, specified as a Privy user ID, a P-256 public key, or
1038
+ * null to remove the current owner.
1039
+ */
1040
+ owner?: SharedAPI.OwnerInput | null;
1041
+
1042
+ /**
1043
+ * The key quorum ID to set as the owner of the resource. If you provide this, do
1044
+ * not specify an owner.
1045
+ */
1046
+ owner_id?: SharedAPI.OwnerIDInput | null;
905
1047
  }
906
1048
 
907
1049
  export interface PolicyCreateParams {
@@ -1112,33 +1254,47 @@ export interface PolicyGetRuleParams {
1112
1254
 
1113
1255
  export declare namespace Policies {
1114
1256
  export {
1115
- type ConditionSetRequestParams as ConditionSetRequestParams,
1116
- type ConditionSetItemRequestParams as ConditionSetItemRequestParams,
1117
- type ConditionSetRequestBody as ConditionSetRequestBody,
1257
+ type AbiParameter as AbiParameter,
1258
+ type AbiSchema as AbiSchema,
1259
+ type ActionRequestBodyCondition as ActionRequestBodyCondition,
1260
+ type AggregationCondition as AggregationCondition,
1261
+ type ConditionOperator as ConditionOperator,
1118
1262
  type ConditionSet as ConditionSet,
1119
- type UpdateConditionSetRequestBody as UpdateConditionSetRequestBody,
1120
- type ConditionSetItemValueInput as ConditionSetItemValueInput,
1121
- type ConditionSetItemsRequestBody as ConditionSetItemsRequestBody,
1263
+ type ConditionSetAuthorizationHeaders as ConditionSetAuthorizationHeaders,
1122
1264
  type ConditionSetItem as ConditionSetItem,
1265
+ type ConditionSetItemRequestParams as ConditionSetItemRequestParams,
1266
+ type ConditionSetItemValueInput as ConditionSetItemValueInput,
1123
1267
  type ConditionSetItems as ConditionSetItems,
1268
+ type ConditionSetItemsRequestBody as ConditionSetItemsRequestBody,
1124
1269
  type ConditionSetItemsResponse as ConditionSetItemsResponse,
1270
+ type ConditionSetRequestBody as ConditionSetRequestBody,
1271
+ type ConditionSetRequestParams as ConditionSetRequestParams,
1272
+ type ConditionValue as ConditionValue,
1273
+ type Ethereum7702AuthorizationCondition as Ethereum7702AuthorizationCondition,
1274
+ type EthereumCalldataCondition as EthereumCalldataCondition,
1275
+ type EthereumTransactionCondition as EthereumTransactionCondition,
1276
+ type EthereumTypedDataDomainCondition as EthereumTypedDataDomainCondition,
1277
+ type EthereumTypedDataMessageCondition as EthereumTypedDataMessageCondition,
1278
+ type Policy as Policy,
1125
1279
  type PolicyAction as PolicyAction,
1126
- type AbiParameter as AbiParameter,
1127
- type AbiSchema as AbiSchema,
1128
- type SuiTransactionCommandOperator as SuiTransactionCommandOperator,
1129
- type SuiTransferObjectsCommandField as SuiTransferObjectsCommandField,
1130
- type TronTransactionCondition as TronTransactionCondition,
1131
- type TronCalldataCondition as TronCalldataCondition,
1132
- type SuiTransactionCommandCondition as SuiTransactionCommandCondition,
1133
- type SuiTransferObjectsCommandCondition as SuiTransferObjectsCommandCondition,
1134
- type AggregationCondition as AggregationCondition,
1280
+ type PolicyAuthorizationHeaders as PolicyAuthorizationHeaders,
1135
1281
  type PolicyCondition as PolicyCondition,
1136
1282
  type PolicyMethod as PolicyMethod,
1283
+ type PolicyRequestBody as PolicyRequestBody,
1137
1284
  type PolicyRuleRequestBody as PolicyRuleRequestBody,
1285
+ type PolicyRuleRequestParams as PolicyRuleRequestParams,
1138
1286
  type PolicyRuleResponse as PolicyRuleResponse,
1139
- type Policy as Policy,
1140
- type PolicyAuthorizationHeaders as PolicyAuthorizationHeaders,
1141
- type ConditionSetAuthorizationHeaders as ConditionSetAuthorizationHeaders,
1287
+ type SolanaProgramInstructionCondition as SolanaProgramInstructionCondition,
1288
+ type SolanaSystemProgramInstructionCondition as SolanaSystemProgramInstructionCondition,
1289
+ type SolanaTokenProgramInstructionCondition as SolanaTokenProgramInstructionCondition,
1290
+ type SuiTransactionCommandCondition as SuiTransactionCommandCondition,
1291
+ type SuiTransactionCommandOperator as SuiTransactionCommandOperator,
1292
+ type SuiTransferObjectsCommandCondition as SuiTransferObjectsCommandCondition,
1293
+ type SuiTransferObjectsCommandField as SuiTransferObjectsCommandField,
1294
+ type SystemCondition as SystemCondition,
1295
+ type TronCalldataCondition as TronCalldataCondition,
1296
+ type TronTransactionCondition as TronTransactionCondition,
1297
+ type UpdateConditionSetRequestBody as UpdateConditionSetRequestBody,
1142
1298
  type PolicyCreateParams as PolicyCreateParams,
1143
1299
  type PolicyCreateRuleParams as PolicyCreateRuleParams,
1144
1300
  type PolicyDeleteParams as PolicyDeleteParams,