@privy-io/api-types 0.15.0 → 0.16.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 (125) hide show
  1. package/CHANGELOG.md +82 -0
  2. package/client.d.mts +29 -29
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +29 -29
  5. package/client.d.ts.map +1 -1
  6. package/client.js +11 -3
  7. package/client.js.map +1 -1
  8. package/client.mjs +11 -3
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/accounts.d.mts +6 -2
  12. package/resources/accounts.d.mts.map +1 -1
  13. package/resources/accounts.d.ts +6 -2
  14. package/resources/accounts.d.ts.map +1 -1
  15. package/resources/aggregations.d.mts +14 -4
  16. package/resources/aggregations.d.mts.map +1 -1
  17. package/resources/aggregations.d.ts +14 -4
  18. package/resources/aggregations.d.ts.map +1 -1
  19. package/resources/apps.d.mts +44 -23
  20. package/resources/apps.d.mts.map +1 -1
  21. package/resources/apps.d.ts +44 -23
  22. package/resources/apps.d.ts.map +1 -1
  23. package/resources/client-auth.d.mts +21 -5
  24. package/resources/client-auth.d.mts.map +1 -1
  25. package/resources/client-auth.d.ts +21 -5
  26. package/resources/client-auth.d.ts.map +1 -1
  27. package/resources/index.d.mts +14 -14
  28. package/resources/index.d.mts.map +1 -1
  29. package/resources/index.d.ts +14 -14
  30. package/resources/index.d.ts.map +1 -1
  31. package/resources/index.js.map +1 -1
  32. package/resources/index.mjs.map +1 -1
  33. package/resources/intents.d.mts +65 -79
  34. package/resources/intents.d.mts.map +1 -1
  35. package/resources/intents.d.ts +65 -79
  36. package/resources/intents.d.ts.map +1 -1
  37. package/resources/intents.js.map +1 -1
  38. package/resources/intents.mjs.map +1 -1
  39. package/resources/key-quorums.d.mts +9 -8
  40. package/resources/key-quorums.d.mts.map +1 -1
  41. package/resources/key-quorums.d.ts +9 -8
  42. package/resources/key-quorums.d.ts.map +1 -1
  43. package/resources/kraken-embed.d.mts +102 -205
  44. package/resources/kraken-embed.d.mts.map +1 -1
  45. package/resources/kraken-embed.d.ts +102 -205
  46. package/resources/kraken-embed.d.ts.map +1 -1
  47. package/resources/kraken-embed.js.map +1 -1
  48. package/resources/kraken-embed.mjs.map +1 -1
  49. package/resources/onramps.d.mts +50 -48
  50. package/resources/onramps.d.mts.map +1 -1
  51. package/resources/onramps.d.ts +50 -48
  52. package/resources/onramps.d.ts.map +1 -1
  53. package/resources/policies.d.mts +47 -18
  54. package/resources/policies.d.mts.map +1 -1
  55. package/resources/policies.d.ts +47 -18
  56. package/resources/policies.d.ts.map +1 -1
  57. package/resources/shared.d.mts +15 -3
  58. package/resources/shared.d.mts.map +1 -1
  59. package/resources/shared.d.ts +15 -3
  60. package/resources/shared.d.ts.map +1 -1
  61. package/resources/swaps.d.mts +3 -2
  62. package/resources/swaps.d.mts.map +1 -1
  63. package/resources/swaps.d.ts +3 -2
  64. package/resources/swaps.d.ts.map +1 -1
  65. package/resources/wallet-actions.d.mts +134 -21
  66. package/resources/wallet-actions.d.mts.map +1 -1
  67. package/resources/wallet-actions.d.ts +134 -21
  68. package/resources/wallet-actions.d.ts.map +1 -1
  69. package/resources/wallets/balance.d.mts +8 -4
  70. package/resources/wallets/balance.d.mts.map +1 -1
  71. package/resources/wallets/balance.d.ts +8 -4
  72. package/resources/wallets/balance.d.ts.map +1 -1
  73. package/resources/wallets/index.d.mts +1 -1
  74. package/resources/wallets/index.d.mts.map +1 -1
  75. package/resources/wallets/index.d.ts +1 -1
  76. package/resources/wallets/index.d.ts.map +1 -1
  77. package/resources/wallets/index.js.map +1 -1
  78. package/resources/wallets/index.mjs.map +1 -1
  79. package/resources/wallets/transactions.d.mts +5 -1
  80. package/resources/wallets/transactions.d.mts.map +1 -1
  81. package/resources/wallets/transactions.d.ts +5 -1
  82. package/resources/wallets/transactions.d.ts.map +1 -1
  83. package/resources/wallets/wallets.d.mts +603 -87
  84. package/resources/wallets/wallets.d.mts.map +1 -1
  85. package/resources/wallets/wallets.d.ts +603 -87
  86. package/resources/wallets/wallets.d.ts.map +1 -1
  87. package/resources/wallets/wallets.js +15 -2
  88. package/resources/wallets/wallets.js.map +1 -1
  89. package/resources/wallets/wallets.mjs +15 -2
  90. package/resources/wallets/wallets.mjs.map +1 -1
  91. package/resources/webhooks.d.mts +241 -54
  92. package/resources/webhooks.d.mts.map +1 -1
  93. package/resources/webhooks.d.ts +241 -54
  94. package/resources/webhooks.d.ts.map +1 -1
  95. package/resources/webhooks.js.map +1 -1
  96. package/resources/webhooks.mjs.map +1 -1
  97. package/resources/yield.d.mts +26 -27
  98. package/resources/yield.d.mts.map +1 -1
  99. package/resources/yield.d.ts +26 -27
  100. package/resources/yield.d.ts.map +1 -1
  101. package/src/client.ts +163 -17
  102. package/src/resources/accounts.ts +7 -1
  103. package/src/resources/aggregations.ts +16 -3
  104. package/src/resources/apps.ts +60 -30
  105. package/src/resources/client-auth.ts +22 -4
  106. package/src/resources/index.ts +72 -3
  107. package/src/resources/intents.ts +73 -91
  108. package/src/resources/key-quorums.ts +11 -9
  109. package/src/resources/kraken-embed.ts +386 -482
  110. package/src/resources/onramps.ts +69 -54
  111. package/src/resources/policies.ts +66 -16
  112. package/src/resources/shared.ts +18 -2
  113. package/src/resources/swaps.ts +3 -2
  114. package/src/resources/wallet-actions.ts +182 -20
  115. package/src/resources/wallets/balance.ts +13 -1
  116. package/src/resources/wallets/index.ts +34 -0
  117. package/src/resources/wallets/transactions.ts +6 -0
  118. package/src/resources/wallets/wallets.ts +782 -94
  119. package/src/resources/webhooks.ts +293 -57
  120. package/src/resources/yield.ts +29 -30
  121. package/src/version.ts +1 -1
  122. package/version.d.mts +1 -1
  123. package/version.d.ts +1 -1
  124. package/version.js +1 -1
  125. package/version.mjs +1 -1
@@ -1,9 +1,9 @@
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 OnrampsAPI from './onramps';
5
4
  import * as ClientAuthAPI from './client-auth';
6
5
  import * as FiatAPI from './fiat';
6
+ import * as SharedAPI from './shared';
7
7
 
8
8
  export class Onramps extends APIResource {}
9
9
 
@@ -61,6 +61,11 @@ export type Caip2ChainID = string;
61
61
  */
62
62
  export interface CreateLinkAuthIntentInput {
63
63
  email?: string;
64
+
65
+ /**
66
+ * Whether to use the sandbox or production environment for fiat onramp.
67
+ */
68
+ environment?: FiatOnrampEnvironment;
64
69
  }
65
70
 
66
71
  /**
@@ -115,21 +120,9 @@ export interface CreateStripeOnrampSessionResponse {
115
120
  /**
116
121
  * Transaction details returned from a Stripe onramp session.
117
122
  */
118
- transaction_details?: CreateStripeOnrampSessionResponse.TransactionDetails;
123
+ transaction_details?: OnrampSessionTransactionDetails | null;
119
124
  }
120
125
 
121
- export namespace CreateStripeOnrampSessionResponse {
122
- /**
123
- * Transaction details returned from a Stripe onramp session.
124
- */
125
- export interface TransactionDetails extends OnrampsAPI.OnrampSessionTransactionDetails {}
126
- }
127
-
128
- /**
129
- * Cryptocurrency symbol. Uppercase alphanumeric, 2-10 characters.
130
- */
131
- export type CryptoCurrencyCode = string;
132
-
133
126
  /**
134
127
  * Input for exchanging a Link auth intent for OAuth tokens.
135
128
  */
@@ -137,6 +130,11 @@ export interface ExchangeStripeTokensInput {
137
130
  auth_intent_id: string;
138
131
 
139
132
  crypto_customer_id: string;
133
+
134
+ /**
135
+ * Whether to use the sandbox or production environment for fiat onramp.
136
+ */
137
+ environment?: FiatOnrampEnvironment;
140
138
  }
141
139
 
142
140
  /**
@@ -168,9 +166,11 @@ export interface FiatOnrampDestination {
168
166
  address: string;
169
167
 
170
168
  /**
171
- * Cryptocurrency symbol. Uppercase alphanumeric, 2-10 characters.
169
+ * Token identifier string. EVM-shaped 40-hex token addresses normalize to checksum
170
+ * case, 16-byte Hyperliquid token IDs normalize to lowercase, and all other
171
+ * identifiers pass through unchanged.
172
172
  */
173
- asset: CryptoCurrencyCode;
173
+ asset: SharedAPI.TokenIdentifier;
174
174
 
175
175
  /**
176
176
  * A CAIP-2 chain identifier in namespace:reference format (e.g. "eip155:1" for
@@ -222,11 +222,15 @@ export interface FiatOnrampQuote {
222
222
 
223
223
  destination_currency_code?: string | null;
224
224
 
225
+ payment_method_category?: string;
226
+
225
227
  source_amount?: number | null;
226
228
 
227
229
  source_currency_code?: string | null;
228
230
 
229
231
  sub_provider?: string | null;
232
+
233
+ warning?: string | null;
230
234
  }
231
235
 
232
236
  /**
@@ -316,6 +320,12 @@ export interface GetFiatOnrampQuotesInput {
316
320
  * The response containing fiat onramp quotes.
317
321
  */
318
322
  export interface GetFiatOnrampQuotesResponse {
323
+ destination_currency_icon_url: string | null;
324
+
325
+ destination_currency_symbol: string;
326
+
327
+ destination_network_icon_url: string | null;
328
+
319
329
  quotes: Array<FiatOnrampQuote>;
320
330
 
321
331
  provider_errors?: Array<FiatOnrampProviderError>;
@@ -423,15 +433,6 @@ export interface ListStripePaymentTokensResponse {
423
433
  data: Array<StripePaymentToken>;
424
434
  }
425
435
 
426
- /**
427
- * Fee breakdown for a Stripe onramp transaction.
428
- */
429
- export interface OnrampSessionFees {
430
- network_fee_monetary: string | null;
431
-
432
- transaction_fee_monetary: string | null;
433
- }
434
-
435
436
  /**
436
437
  * Parameters for creating a Stripe onramp session.
437
438
  */
@@ -439,9 +440,11 @@ export interface OnrampSessionParams {
439
440
  crypto_customer_id: string;
440
441
 
441
442
  /**
442
- * Cryptocurrency symbol. Uppercase alphanumeric, 2-10 characters.
443
+ * Token identifier string. EVM-shaped 40-hex token addresses normalize to checksum
444
+ * case, 16-byte Hyperliquid token IDs normalize to lowercase, and all other
445
+ * identifiers pass through unchanged.
443
446
  */
444
- destination_currency: CryptoCurrencyCode;
447
+ destination_currency: SharedAPI.TokenIdentifier;
445
448
 
446
449
  destination_network: string;
447
450
 
@@ -467,31 +470,26 @@ export interface OnrampSessionTransactionDetails {
467
470
 
468
471
  destination_network: string | null;
469
472
 
470
- /**
471
- * Fee breakdown for a Stripe onramp transaction.
472
- */
473
- fees: OnrampSessionTransactionDetails.Fees;
474
-
475
- source_amount: string | null;
473
+ fee: string | null;
476
474
 
477
475
  source_currency: string | null;
478
- }
479
476
 
480
- export namespace OnrampSessionTransactionDetails {
481
- /**
482
- * Fee breakdown for a Stripe onramp transaction.
483
- */
484
- export interface Fees extends OnrampsAPI.OnrampSessionFees {}
477
+ source_total_amount: string | null;
478
+
479
+ quote_expiration?: number | null;
485
480
  }
486
481
 
487
482
  /**
488
- * Refreshed quote with new expiry.
483
+ * Refreshed quote with amounts, fee, and expiry.
489
484
  */
490
485
  export interface RefreshStripeQuoteResponse {
491
- /**
492
- * A refreshed quote.
493
- */
494
- quote: StripeQuote;
486
+ destination_amount: string | null;
487
+
488
+ fee: string | null;
489
+
490
+ quote_expiration: number | null;
491
+
492
+ source_total_amount: string | null;
495
493
  }
496
494
 
497
495
  /**
@@ -511,6 +509,15 @@ export interface StripeConsumerWallet {
511
509
  export interface StripeCryptoCustomerActive {
512
510
  crypto_customer_id: string;
513
511
 
512
+ /**
513
+ * Region derived from a Stripe user's country of residence.
514
+ */
515
+ kyc_region: StripeKYCRegion | null;
516
+
517
+ kyc_tiers: Array<StripeKYCTier>;
518
+
519
+ provided_fields: Array<string>;
520
+
514
521
  status: 'active';
515
522
 
516
523
  verifications: Array<StripeVerification>;
@@ -532,6 +539,22 @@ export interface StripeCryptoCustomerNone {
532
539
  status: 'none';
533
540
  }
534
541
 
542
+ /**
543
+ * Region derived from a Stripe user's country of residence.
544
+ */
545
+ export type StripeKYCRegion = 'us' | 'eu';
546
+
547
+ /**
548
+ * A KYC tier with its verification status.
549
+ */
550
+ export interface StripeKYCTier {
551
+ tier: string;
552
+
553
+ verification_status: string;
554
+
555
+ verification_errors?: Array<string>;
556
+ }
557
+
535
558
  /**
536
559
  * Checkout confirmation with client secret.
537
560
  */
@@ -558,13 +581,6 @@ export interface StripePaymentToken {
558
581
  type: string;
559
582
  }
560
583
 
561
- /**
562
- * A refreshed quote.
563
- */
564
- export interface StripeQuote {
565
- expires_at: number;
566
- }
567
-
568
584
  /**
569
585
  * Transaction details from checkout.
570
586
  */
@@ -592,7 +608,6 @@ export declare namespace Onramps {
592
608
  type CreateOrUpdateFiatCustomerRequestInput as CreateOrUpdateFiatCustomerRequestInput,
593
609
  type CreateStripeOnrampSessionInput as CreateStripeOnrampSessionInput,
594
610
  type CreateStripeOnrampSessionResponse as CreateStripeOnrampSessionResponse,
595
- type CryptoCurrencyCode as CryptoCurrencyCode,
596
611
  type ExchangeStripeTokensInput as ExchangeStripeTokensInput,
597
612
  type ExchangeStripeTokensResponse as ExchangeStripeTokensResponse,
598
613
  type FiatAmount as FiatAmount,
@@ -619,7 +634,6 @@ export declare namespace Onramps {
619
634
  type LinkAuthIntentNoAccount as LinkAuthIntentNoAccount,
620
635
  type ListStripeConsumerWalletsResponse as ListStripeConsumerWalletsResponse,
621
636
  type ListStripePaymentTokensResponse as ListStripePaymentTokensResponse,
622
- type OnrampSessionFees as OnrampSessionFees,
623
637
  type OnrampSessionParams as OnrampSessionParams,
624
638
  type OnrampSessionTransactionDetails as OnrampSessionTransactionDetails,
625
639
  type RefreshStripeQuoteResponse as RefreshStripeQuoteResponse,
@@ -627,10 +641,11 @@ export declare namespace Onramps {
627
641
  type StripeCryptoCustomerActive as StripeCryptoCustomerActive,
628
642
  type StripeCryptoCustomerExpired as StripeCryptoCustomerExpired,
629
643
  type StripeCryptoCustomerNone as StripeCryptoCustomerNone,
644
+ type StripeKYCRegion as StripeKYCRegion,
645
+ type StripeKYCTier as StripeKYCTier,
630
646
  type StripeOnrampCheckoutResponse as StripeOnrampCheckoutResponse,
631
647
  type StripeOnrampSessionStatus as StripeOnrampSessionStatus,
632
648
  type StripePaymentToken as StripePaymentToken,
633
- type StripeQuote as StripeQuote,
634
649
  type StripeTransactionDetails as StripeTransactionDetails,
635
650
  type StripeVerification as StripeVerification,
636
651
  };
@@ -87,7 +87,17 @@ export interface AggregationCondition {
87
87
  /**
88
88
  * Operator to use for policy conditions.
89
89
  */
90
- export type ConditionOperator = 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
90
+ export type ConditionOperator =
91
+ | 'eq'
92
+ | 'gt'
93
+ | 'gte'
94
+ | 'lt'
95
+ | 'lte'
96
+ | 'in'
97
+ | 'in_condition_set'
98
+ | 'contains'
99
+ | 'starts_with'
100
+ | 'ends_with';
91
101
 
92
102
  /**
93
103
  * A condition set for grouping related condition values.
@@ -112,7 +122,7 @@ export interface ConditionSet {
112
122
  /**
113
123
  * A unique identifier for a key quorum.
114
124
  */
115
- owner_id: SharedAPI.KeyQuorumID;
125
+ owner_id: SharedAPI.KeyQuorumID | null;
116
126
  }
117
127
 
118
128
  /**
@@ -205,8 +215,8 @@ export interface ConditionSetItemsResponse {
205
215
  }
206
216
 
207
217
  /**
208
- * Request body for creating a condition set. Exactly one of `owner` or `owner_id`
209
- * is required.
218
+ * Request body for creating a condition set. Optionally provide `owner` or
219
+ * `owner_id` (but not both) to specify ownership.
210
220
  */
211
221
  export interface ConditionSetRequestBody {
212
222
  /**
@@ -342,7 +352,11 @@ export interface EthereumTypedDataMessageCondition {
342
352
  */
343
353
  operator: ConditionOperator;
344
354
 
345
- typed_data: EthereumTypedDataMessageCondition.TypedData;
355
+ /**
356
+ * The typed data structure containing EIP-712 types and the primary type for typed
357
+ * data message policy conditions.
358
+ */
359
+ typed_data: TypedDataInput;
346
360
 
347
361
  /**
348
362
  * Value to compare against in a policy condition. Can be a single string or an
@@ -351,17 +365,34 @@ export interface EthereumTypedDataMessageCondition {
351
365
  value: ConditionValue;
352
366
  }
353
367
 
354
- export namespace EthereumTypedDataMessageCondition {
355
- export interface TypedData {
356
- primary_type: string;
368
+ /**
369
+ * Condition on the message being signed (e.g. in personal_sign).
370
+ */
371
+ export interface MessageSigningCondition {
372
+ /**
373
+ * Supported fields for message signing conditions.
374
+ */
375
+ field: MessageSigningField;
376
+
377
+ field_source: 'message';
357
378
 
358
- /**
359
- * The type definitions for EIP-712 typed data signing.
360
- */
361
- types: WalletsAPI.TypedDataTypesInputParams;
362
- }
379
+ /**
380
+ * Operator to use for policy conditions.
381
+ */
382
+ operator: ConditionOperator;
383
+
384
+ /**
385
+ * Value to compare against in a policy condition. Can be a single string or an
386
+ * array of strings.
387
+ */
388
+ value: ConditionValue;
363
389
  }
364
390
 
391
+ /**
392
+ * Supported fields for message signing conditions.
393
+ */
394
+ export type MessageSigningField = 'content' | 'byte_length';
395
+
365
396
  /**
366
397
  * A policy for controlling wallet operations.
367
398
  */
@@ -388,9 +419,9 @@ export interface Policy {
388
419
  name: string;
389
420
 
390
421
  /**
391
- * The key quorum ID of the owner of the policy.
422
+ * A unique identifier for a key quorum.
392
423
  */
393
- owner_id: string | null;
424
+ owner_id: SharedAPI.KeyQuorumID | null;
394
425
 
395
426
  rules: Array<PolicyRuleResponse>;
396
427
 
@@ -446,7 +477,8 @@ export type PolicyCondition =
446
477
  | SuiTransactionCommandCondition
447
478
  | SuiTransferObjectsCommandCondition
448
479
  | ActionRequestBodyCondition
449
- | AggregationCondition;
480
+ | AggregationCondition
481
+ | MessageSigningCondition;
450
482
 
451
483
  /**
452
484
  * Method the rule applies to.
@@ -461,9 +493,11 @@ export type PolicyMethod =
461
493
  | 'wallet_sendCalls'
462
494
  | 'signTransaction'
463
495
  | 'signAndSendTransaction'
496
+ | 'signMessage'
464
497
  | 'exportPrivateKey'
465
498
  | 'exportSeedPhrase'
466
499
  | 'signTransactionBytes'
500
+ | 'signRawMessageBytes'
467
501
  | 'earn_deposit'
468
502
  | 'earn_withdraw'
469
503
  | 'transfer'
@@ -782,6 +816,19 @@ export interface TronTransactionCondition {
782
816
  value: ConditionValue;
783
817
  }
784
818
 
819
+ /**
820
+ * The typed data structure containing EIP-712 types and the primary type for typed
821
+ * data message policy conditions.
822
+ */
823
+ export interface TypedDataInput {
824
+ primary_type: string;
825
+
826
+ /**
827
+ * The type definitions for EIP-712 typed data signing.
828
+ */
829
+ types: WalletsAPI.TypedDataTypesInputParams;
830
+ }
831
+
785
832
  /**
786
833
  * Request body for updating a condition set. At least one field must be provided.
787
834
  * `owner` and `owner_id` are mutually exclusive.
@@ -828,6 +875,8 @@ export declare namespace Policies {
828
875
  type EthereumTransactionCondition as EthereumTransactionCondition,
829
876
  type EthereumTypedDataDomainCondition as EthereumTypedDataDomainCondition,
830
877
  type EthereumTypedDataMessageCondition as EthereumTypedDataMessageCondition,
878
+ type MessageSigningCondition as MessageSigningCondition,
879
+ type MessageSigningField as MessageSigningField,
831
880
  type Policy as Policy,
832
881
  type PolicyAction as PolicyAction,
833
882
  type PolicyAuthorizationHeaders as PolicyAuthorizationHeaders,
@@ -849,6 +898,7 @@ export declare namespace Policies {
849
898
  type TempoTransactionConditionField as TempoTransactionConditionField,
850
899
  type TronCalldataCondition as TronCalldataCondition,
851
900
  type TronTransactionCondition as TronTransactionCondition,
901
+ type TypedDataInput as TypedDataInput,
852
902
  type UpdateConditionSetRequestBody as UpdateConditionSetRequestBody,
853
903
  };
854
904
  }
@@ -35,8 +35,9 @@ export type EvmAddress = string;
35
35
  export type EvmChecksumAddress = string;
36
36
 
37
37
  /**
38
- * Hyperliquid L1 spot token identifier: 0x followed by 32–40 hex characters,
39
- * normalized to lowercase.
38
+ * Hyperliquid L1 token identifier: 0x followed by either 32 hex characters
39
+ * (16-byte spot/perps token IDs) or 40 hex characters (20-byte HIP-3 DEX token
40
+ * IDs), normalized to lowercase.
40
41
  */
41
42
  export type HyperliquidTokenAddress = string;
42
43
 
@@ -91,11 +92,24 @@ export interface SuccessResponse {
91
92
  success: boolean;
92
93
  }
93
94
 
95
+ /**
96
+ * Token identifier string. EVM-shaped 40-hex token addresses normalize to checksum
97
+ * case, 16-byte Hyperliquid token IDs normalize to lowercase, and all other
98
+ * identifiers pass through unchanged.
99
+ */
100
+ export type TokenIdentifier = string;
101
+
94
102
  /**
95
103
  * Tron address: base58check-encoded, starting with T, 34 characters.
96
104
  */
97
105
  export type TronAddress = string;
98
106
 
107
+ /**
108
+ * Tron address in hex format: 41-prefixed, 42 hex characters (21 bytes), no 0x
109
+ * prefix.
110
+ */
111
+ export type TronHexAddress = string;
112
+
99
113
  export declare namespace Shared {
100
114
  export {
101
115
  type BitcoinAddress as BitcoinAddress,
@@ -111,6 +125,8 @@ export declare namespace Shared {
111
125
  type P256PublicKey as P256PublicKey,
112
126
  type SolanaAddress as SolanaAddress,
113
127
  type SuccessResponse as SuccessResponse,
128
+ type TokenIdentifier as TokenIdentifier,
114
129
  type TronAddress as TronAddress,
130
+ type TronHexAddress as TronHexAddress,
115
131
  };
116
132
  }
@@ -128,7 +128,8 @@ export interface SwapQuoteResponse {
128
128
  output_token: string;
129
129
 
130
130
  /**
131
- * Destination chain CAIP-2 identifier for cross-chain swaps.
131
+ * Destination chain CAIP-2 identifier for cross-chain swaps. Only present for
132
+ * cross-chain swaps.
132
133
  */
133
134
  destination_caip2?: string;
134
135
 
@@ -144,7 +145,7 @@ export interface SwapQuoteResponse {
144
145
  estimated_gas?: WalletsAPI.Gas;
145
146
 
146
147
  /**
147
- * Quote expiry as Unix timestamp (seconds). Present for cross-chain quotes.
148
+ * Quote expiry as Unix timestamp (seconds). Only present for cross-chain quotes.
148
149
  */
149
150
  expires_at?: number;
150
151
  }