@privy-io/api-types 0.14.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.
- package/CHANGELOG.md +119 -0
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- package/client.d.mts +33 -27
- package/client.d.mts.map +1 -1
- package/client.d.ts +33 -27
- package/client.d.ts.map +1 -1
- package/client.js +17 -3
- package/client.js.map +1 -1
- package/client.mjs +17 -3
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/index.d.mts +2 -2
- package/internal/qs/index.d.mts.map +1 -1
- package/internal/qs/index.d.ts +2 -2
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/index.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +4 -4
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +4 -4
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/package.json +1 -1
- package/pagination.d.mts +1 -0
- package/pagination.d.mts.map +1 -1
- package/pagination.d.ts +1 -0
- package/pagination.d.ts.map +1 -1
- package/pagination.mjs +1 -0
- package/pagination.mjs.map +1 -1
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/accounts.d.mts +6 -2
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +6 -2
- package/resources/accounts.d.ts.map +1 -1
- package/resources/accounts.mjs.map +1 -1
- package/resources/aggregations.d.mts +14 -4
- package/resources/aggregations.d.mts.map +1 -1
- package/resources/aggregations.d.ts +14 -4
- package/resources/aggregations.d.ts.map +1 -1
- package/resources/aggregations.mjs.map +1 -1
- package/resources/analytics.d.mts +1 -1
- package/resources/analytics.d.mts.map +1 -1
- package/resources/analytics.d.ts +1 -1
- package/resources/analytics.d.ts.map +1 -1
- package/resources/analytics.mjs.map +1 -1
- package/resources/apps.d.mts +42 -37
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +42 -37
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.mjs.map +1 -1
- package/resources/client-auth.d.mts +176 -217
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +176 -217
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/client-auth.js.map +1 -1
- package/resources/client-auth.mjs.map +1 -1
- package/resources/cross-app.d.mts.map +1 -1
- package/resources/cross-app.d.ts.map +1 -1
- package/resources/cross-app.mjs.map +1 -1
- package/resources/embedded-wallets.d.mts.map +1 -1
- package/resources/embedded-wallets.d.ts.map +1 -1
- package/resources/embedded-wallets.mjs.map +1 -1
- package/resources/fiat.d.mts.map +1 -1
- package/resources/fiat.d.ts.map +1 -1
- package/resources/fiat.mjs.map +1 -1
- package/resources/funding.d.mts.map +1 -1
- package/resources/funding.d.ts.map +1 -1
- package/resources/funding.mjs.map +1 -1
- package/resources/index.d.mts +15 -13
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +15 -13
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/intents.d.mts +112 -79
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +112 -79
- package/resources/intents.d.ts.map +1 -1
- package/resources/intents.js.map +1 -1
- package/resources/intents.mjs.map +1 -1
- package/resources/key-quorums.d.mts +9 -8
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +9 -8
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/key-quorums.mjs.map +1 -1
- package/resources/kraken-embed.d.mts +252 -154
- package/resources/kraken-embed.d.mts.map +1 -1
- package/resources/kraken-embed.d.ts +252 -154
- package/resources/kraken-embed.d.ts.map +1 -1
- package/resources/kraken-embed.js.map +1 -1
- package/resources/kraken-embed.mjs.map +1 -1
- package/resources/oauth.d.mts +77 -0
- package/resources/oauth.d.mts.map +1 -0
- package/resources/oauth.d.ts +77 -0
- package/resources/oauth.d.ts.map +1 -0
- package/resources/oauth.js +9 -0
- package/resources/oauth.js.map +1 -0
- package/resources/oauth.mjs +5 -0
- package/resources/oauth.mjs.map +1 -0
- package/resources/onramps.d.mts +458 -0
- package/resources/onramps.d.mts.map +1 -0
- package/resources/onramps.d.ts +458 -0
- package/resources/onramps.d.ts.map +1 -0
- package/resources/onramps.js +9 -0
- package/resources/onramps.js.map +1 -0
- package/resources/onramps.mjs +5 -0
- package/resources/onramps.mjs.map +1 -0
- package/resources/organizations.d.mts.map +1 -1
- package/resources/organizations.d.ts.map +1 -1
- package/resources/organizations.mjs.map +1 -1
- package/resources/policies.d.mts +73 -18
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +73 -18
- package/resources/policies.d.ts.map +1 -1
- package/resources/policies.mjs.map +1 -1
- package/resources/shared.d.mts +38 -1
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +38 -1
- package/resources/shared.d.ts.map +1 -1
- package/resources/shared.mjs.map +1 -1
- package/resources/swaps.d.mts +44 -5
- package/resources/swaps.d.mts.map +1 -1
- package/resources/swaps.d.ts +44 -5
- package/resources/swaps.d.ts.map +1 -1
- package/resources/swaps.mjs.map +1 -1
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts.map +1 -1
- package/resources/transactions.mjs.map +1 -1
- package/resources/users.d.mts +3 -0
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +3 -0
- package/resources/users.d.ts.map +1 -1
- package/resources/users.mjs.map +1 -1
- package/resources/wallet-actions.d.mts +207 -9
- package/resources/wallet-actions.d.mts.map +1 -1
- package/resources/wallet-actions.d.ts +207 -9
- package/resources/wallet-actions.d.ts.map +1 -1
- package/resources/wallet-actions.js.map +1 -1
- package/resources/wallet-actions.mjs.map +1 -1
- package/resources/wallets/balance.d.mts +8 -4
- package/resources/wallets/balance.d.mts.map +1 -1
- package/resources/wallets/balance.d.ts +8 -4
- package/resources/wallets/balance.d.ts.map +1 -1
- package/resources/wallets/balance.mjs.map +1 -1
- package/resources/wallets/index.d.mts +1 -1
- package/resources/wallets/index.d.mts.map +1 -1
- package/resources/wallets/index.d.ts +1 -1
- package/resources/wallets/index.d.ts.map +1 -1
- package/resources/wallets/index.js.map +1 -1
- package/resources/wallets/index.mjs.map +1 -1
- package/resources/wallets/transactions.d.mts +5 -1
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +5 -1
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/transactions.mjs.map +1 -1
- package/resources/wallets/wallets.d.mts +749 -84
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +749 -84
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +15 -2
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +15 -2
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/wallets.d.mts.map +1 -1
- package/resources/wallets.d.ts.map +1 -1
- package/resources/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +314 -54
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +314 -54
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/resources/yield.d.mts +26 -27
- package/resources/yield.d.mts.map +1 -1
- package/resources/yield.d.ts +26 -27
- package/resources/yield.d.ts.map +1 -1
- package/resources/yield.mjs.map +1 -1
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/client.ts +389 -65
- package/src/resources/accounts.ts +7 -1
- package/src/resources/aggregations.ts +16 -3
- package/src/resources/analytics.ts +1 -1
- package/src/resources/apps.ts +57 -51
- package/src/resources/client-auth.ts +215 -308
- package/src/resources/index.ts +180 -25
- package/src/resources/intents.ts +132 -91
- package/src/resources/key-quorums.ts +11 -9
- package/src/resources/kraken-embed.ts +591 -432
- package/src/resources/oauth.ts +96 -0
- package/src/resources/onramps.ts +652 -0
- package/src/resources/policies.ts +106 -16
- package/src/resources/shared.ts +53 -0
- package/src/resources/swaps.ts +52 -5
- package/src/resources/users.ts +3 -0
- package/src/resources/wallet-actions.ts +274 -8
- package/src/resources/wallets/balance.ts +13 -1
- package/src/resources/wallets/index.ts +43 -0
- package/src/resources/wallets/transactions.ts +6 -0
- package/src/resources/wallets/wallets.ts +969 -93
- package/src/resources/webhooks.ts +383 -57
- package/src/resources/yield.ts +29 -30
- package/src/version.ts +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -87,7 +87,17 @@ export interface AggregationCondition {
|
|
|
87
87
|
/**
|
|
88
88
|
* Operator to use for policy conditions.
|
|
89
89
|
*/
|
|
90
|
-
export type ConditionOperator =
|
|
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.
|
|
209
|
-
*
|
|
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
|
-
|
|
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
|
-
|
|
355
|
-
|
|
356
|
-
|
|
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;
|
|
357
376
|
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
377
|
+
field_source: 'message';
|
|
378
|
+
|
|
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
|
-
*
|
|
422
|
+
* A unique identifier for a key quorum.
|
|
392
423
|
*/
|
|
393
|
-
owner_id:
|
|
424
|
+
owner_id: SharedAPI.KeyQuorumID | null;
|
|
394
425
|
|
|
395
426
|
rules: Array<PolicyRuleResponse>;
|
|
396
427
|
|
|
@@ -436,6 +467,7 @@ export type PolicyCondition =
|
|
|
436
467
|
| EthereumTypedDataDomainCondition
|
|
437
468
|
| EthereumTypedDataMessageCondition
|
|
438
469
|
| Ethereum7702AuthorizationCondition
|
|
470
|
+
| TempoTransactionCondition
|
|
439
471
|
| SolanaProgramInstructionCondition
|
|
440
472
|
| SolanaSystemProgramInstructionCondition
|
|
441
473
|
| SolanaTokenProgramInstructionCondition
|
|
@@ -445,7 +477,8 @@ export type PolicyCondition =
|
|
|
445
477
|
| SuiTransactionCommandCondition
|
|
446
478
|
| SuiTransferObjectsCommandCondition
|
|
447
479
|
| ActionRequestBodyCondition
|
|
448
|
-
| AggregationCondition
|
|
480
|
+
| AggregationCondition
|
|
481
|
+
| MessageSigningCondition;
|
|
449
482
|
|
|
450
483
|
/**
|
|
451
484
|
* Method the rule applies to.
|
|
@@ -455,13 +488,16 @@ export type PolicyMethod =
|
|
|
455
488
|
| 'eth_signTransaction'
|
|
456
489
|
| 'eth_signUserOperation'
|
|
457
490
|
| 'eth_signTypedData_v4'
|
|
491
|
+
| 'personal_sign'
|
|
458
492
|
| 'eth_sign7702Authorization'
|
|
459
493
|
| 'wallet_sendCalls'
|
|
460
494
|
| 'signTransaction'
|
|
461
495
|
| 'signAndSendTransaction'
|
|
496
|
+
| 'signMessage'
|
|
462
497
|
| 'exportPrivateKey'
|
|
463
498
|
| 'exportSeedPhrase'
|
|
464
499
|
| 'signTransactionBytes'
|
|
500
|
+
| 'signRawMessageBytes'
|
|
465
501
|
| 'earn_deposit'
|
|
466
502
|
| 'earn_withdraw'
|
|
467
503
|
| 'transfer'
|
|
@@ -689,6 +725,42 @@ export interface SystemCondition {
|
|
|
689
725
|
value: ConditionValue;
|
|
690
726
|
}
|
|
691
727
|
|
|
728
|
+
/**
|
|
729
|
+
* A Tempo (type 118) transaction-level field. Evaluated once per transaction (not
|
|
730
|
+
* per call).
|
|
731
|
+
*/
|
|
732
|
+
export interface TempoTransactionCondition {
|
|
733
|
+
/**
|
|
734
|
+
* Tempo (type 118) transaction-level fields that can be referenced in a policy
|
|
735
|
+
* condition.
|
|
736
|
+
*/
|
|
737
|
+
field: TempoTransactionConditionField;
|
|
738
|
+
|
|
739
|
+
field_source: 'tempo_transaction';
|
|
740
|
+
|
|
741
|
+
/**
|
|
742
|
+
* Operator to use for policy conditions.
|
|
743
|
+
*/
|
|
744
|
+
operator: ConditionOperator;
|
|
745
|
+
|
|
746
|
+
/**
|
|
747
|
+
* Value to compare against in a policy condition. Can be a single string or an
|
|
748
|
+
* array of strings.
|
|
749
|
+
*/
|
|
750
|
+
value: ConditionValue;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
/**
|
|
754
|
+
* Tempo (type 118) transaction-level fields that can be referenced in a policy
|
|
755
|
+
* condition.
|
|
756
|
+
*/
|
|
757
|
+
export type TempoTransactionConditionField =
|
|
758
|
+
| 'fee_token'
|
|
759
|
+
| 'fee_payer_signature'
|
|
760
|
+
| 'nonce_key'
|
|
761
|
+
| 'valid_before'
|
|
762
|
+
| 'valid_after';
|
|
763
|
+
|
|
692
764
|
/**
|
|
693
765
|
* Decoded calldata from a TRON TriggerSmartContract interaction.
|
|
694
766
|
*/
|
|
@@ -744,6 +816,19 @@ export interface TronTransactionCondition {
|
|
|
744
816
|
value: ConditionValue;
|
|
745
817
|
}
|
|
746
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
|
+
|
|
747
832
|
/**
|
|
748
833
|
* Request body for updating a condition set. At least one field must be provided.
|
|
749
834
|
* `owner` and `owner_id` are mutually exclusive.
|
|
@@ -790,6 +875,8 @@ export declare namespace Policies {
|
|
|
790
875
|
type EthereumTransactionCondition as EthereumTransactionCondition,
|
|
791
876
|
type EthereumTypedDataDomainCondition as EthereumTypedDataDomainCondition,
|
|
792
877
|
type EthereumTypedDataMessageCondition as EthereumTypedDataMessageCondition,
|
|
878
|
+
type MessageSigningCondition as MessageSigningCondition,
|
|
879
|
+
type MessageSigningField as MessageSigningField,
|
|
793
880
|
type Policy as Policy,
|
|
794
881
|
type PolicyAction as PolicyAction,
|
|
795
882
|
type PolicyAuthorizationHeaders as PolicyAuthorizationHeaders,
|
|
@@ -807,8 +894,11 @@ export declare namespace Policies {
|
|
|
807
894
|
type SuiTransferObjectsCommandCondition as SuiTransferObjectsCommandCondition,
|
|
808
895
|
type SuiTransferObjectsCommandField as SuiTransferObjectsCommandField,
|
|
809
896
|
type SystemCondition as SystemCondition,
|
|
897
|
+
type TempoTransactionCondition as TempoTransactionCondition,
|
|
898
|
+
type TempoTransactionConditionField as TempoTransactionConditionField,
|
|
810
899
|
type TronCalldataCondition as TronCalldataCondition,
|
|
811
900
|
type TronTransactionCondition as TronTransactionCondition,
|
|
901
|
+
type TypedDataInput as TypedDataInput,
|
|
812
902
|
type UpdateConditionSetRequestBody as UpdateConditionSetRequestBody,
|
|
813
903
|
};
|
|
814
904
|
}
|
package/src/resources/shared.ts
CHANGED
|
@@ -4,6 +4,11 @@ import { APIResource } from '../core/resource';
|
|
|
4
4
|
|
|
5
5
|
export class Shared extends APIResource {}
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* Bitcoin address: bech32 (bc1), P2SH (3), or P2PKH (1).
|
|
9
|
+
*/
|
|
10
|
+
export type BitcoinAddress = string;
|
|
11
|
+
|
|
7
12
|
/**
|
|
8
13
|
* A monetary value with its currency denomination.
|
|
9
14
|
*/
|
|
@@ -19,6 +24,23 @@ export interface CurrencyAmount {
|
|
|
19
24
|
value: string;
|
|
20
25
|
}
|
|
21
26
|
|
|
27
|
+
/**
|
|
28
|
+
* EVM address: 0x followed by 40 hex characters. Preserves input case.
|
|
29
|
+
*/
|
|
30
|
+
export type EvmAddress = string;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* EVM address normalized to EIP-55 checksum case.
|
|
34
|
+
*/
|
|
35
|
+
export type EvmChecksumAddress = string;
|
|
36
|
+
|
|
37
|
+
/**
|
|
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.
|
|
41
|
+
*/
|
|
42
|
+
export type HyperliquidTokenAddress = string;
|
|
43
|
+
|
|
22
44
|
/**
|
|
23
45
|
* A unique identifier for a key quorum.
|
|
24
46
|
*/
|
|
@@ -58,6 +80,11 @@ export interface OwnerInputUser {
|
|
|
58
80
|
*/
|
|
59
81
|
export type P256PublicKey = string;
|
|
60
82
|
|
|
83
|
+
/**
|
|
84
|
+
* Solana address: base58-encoded public key (32 bytes).
|
|
85
|
+
*/
|
|
86
|
+
export type SolanaAddress = string;
|
|
87
|
+
|
|
61
88
|
/**
|
|
62
89
|
* A simple success response.
|
|
63
90
|
*/
|
|
@@ -65,15 +92,41 @@ export interface SuccessResponse {
|
|
|
65
92
|
success: boolean;
|
|
66
93
|
}
|
|
67
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
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Tron address: base58check-encoded, starting with T, 34 characters.
|
|
104
|
+
*/
|
|
105
|
+
export type TronAddress = string;
|
|
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
|
+
|
|
68
113
|
export declare namespace Shared {
|
|
69
114
|
export {
|
|
115
|
+
type BitcoinAddress as BitcoinAddress,
|
|
70
116
|
type CurrencyAmount as CurrencyAmount,
|
|
117
|
+
type EvmAddress as EvmAddress,
|
|
118
|
+
type EvmChecksumAddress as EvmChecksumAddress,
|
|
119
|
+
type HyperliquidTokenAddress as HyperliquidTokenAddress,
|
|
71
120
|
type KeyQuorumID as KeyQuorumID,
|
|
72
121
|
type OwnerIDInput as OwnerIDInput,
|
|
73
122
|
type OwnerInput as OwnerInput,
|
|
74
123
|
type OwnerInputPublicKey as OwnerInputPublicKey,
|
|
75
124
|
type OwnerInputUser as OwnerInputUser,
|
|
76
125
|
type P256PublicKey as P256PublicKey,
|
|
126
|
+
type SolanaAddress as SolanaAddress,
|
|
77
127
|
type SuccessResponse as SuccessResponse,
|
|
128
|
+
type TokenIdentifier as TokenIdentifier,
|
|
129
|
+
type TronAddress as TronAddress,
|
|
130
|
+
type TronHexAddress as TronHexAddress,
|
|
78
131
|
};
|
|
79
132
|
}
|
package/src/resources/swaps.ts
CHANGED
|
@@ -15,10 +15,16 @@ export interface SwapDestination {
|
|
|
15
15
|
asset_address: string;
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
* CAIP-2 chain identifier for the destination.
|
|
19
|
-
*
|
|
18
|
+
* CAIP-2 chain identifier for the destination. Defaults to source chain if
|
|
19
|
+
* omitted. Specify a different chain for cross-chain swaps.
|
|
20
20
|
*/
|
|
21
21
|
caip2?: string;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Address to receive the output tokens. Defaults to the swapping wallet address.
|
|
25
|
+
* Required when swapping between different chain types (e.g. EVM to Solana).
|
|
26
|
+
*/
|
|
27
|
+
destination_address?: string;
|
|
22
28
|
}
|
|
23
29
|
|
|
24
30
|
/**
|
|
@@ -31,10 +37,18 @@ export interface SwapQuoteDestination {
|
|
|
31
37
|
asset_address: string;
|
|
32
38
|
|
|
33
39
|
/**
|
|
34
|
-
* CAIP-2 chain identifier for the destination.
|
|
35
|
-
*
|
|
40
|
+
* CAIP-2 chain identifier for the destination. Defaults to source chain if
|
|
41
|
+
* omitted. Will result in a cross-chain swap if source and destination chains
|
|
42
|
+
* differ.
|
|
36
43
|
*/
|
|
37
44
|
caip2?: string;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Address to receive the output tokens. Defaults to the swapping wallet address.
|
|
48
|
+
* Required when swapping between chains with different address types (e.g. EVM to
|
|
49
|
+
* Solana).
|
|
50
|
+
*/
|
|
51
|
+
destination_address?: string;
|
|
38
52
|
}
|
|
39
53
|
|
|
40
54
|
/**
|
|
@@ -61,6 +75,11 @@ export interface SwapQuoteRequestBody {
|
|
|
61
75
|
*/
|
|
62
76
|
amount_type?: WalletsAPI.AmountType;
|
|
63
77
|
|
|
78
|
+
/**
|
|
79
|
+
* Total fees assessed on a transfer, in BPS
|
|
80
|
+
*/
|
|
81
|
+
fee_configuration?: WalletsAPI.FeeConfiguration;
|
|
82
|
+
|
|
64
83
|
/**
|
|
65
84
|
* Maximum slippage tolerance in basis points (e.g., 50 for 0.5%). If omitted,
|
|
66
85
|
* auto-slippage is used.
|
|
@@ -83,7 +102,8 @@ export interface SwapQuoteResponse {
|
|
|
83
102
|
est_output_amount: string;
|
|
84
103
|
|
|
85
104
|
/**
|
|
86
|
-
* Estimated gas cost in base units of the native token.
|
|
105
|
+
* Estimated gas cost in base units of the native token. @deprecated For
|
|
106
|
+
* cross-chain swaps, use estimated_gas instead.
|
|
87
107
|
*/
|
|
88
108
|
gas_estimate: string;
|
|
89
109
|
|
|
@@ -106,6 +126,28 @@ export interface SwapQuoteResponse {
|
|
|
106
126
|
* Token address being bought.
|
|
107
127
|
*/
|
|
108
128
|
output_token: string;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Destination chain CAIP-2 identifier for cross-chain swaps. Only present for
|
|
132
|
+
* cross-chain swaps.
|
|
133
|
+
*/
|
|
134
|
+
destination_caip2?: string;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Estimated fees for the swap. Only present for cross-chain swaps.
|
|
138
|
+
*/
|
|
139
|
+
estimated_fees?: Array<WalletsAPI.FeeLineItem>;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Gas cost for a blockchain action. Includes both raw base-unit amount and a
|
|
143
|
+
* human-readable decimal string, plus the gas token symbol.
|
|
144
|
+
*/
|
|
145
|
+
estimated_gas?: WalletsAPI.Gas;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Quote expiry as Unix timestamp (seconds). Only present for cross-chain quotes.
|
|
149
|
+
*/
|
|
150
|
+
expires_at?: number;
|
|
109
151
|
}
|
|
110
152
|
|
|
111
153
|
/**
|
|
@@ -132,6 +174,11 @@ export interface SwapRequestBody {
|
|
|
132
174
|
*/
|
|
133
175
|
amount_type?: WalletsAPI.AmountType;
|
|
134
176
|
|
|
177
|
+
/**
|
|
178
|
+
* Total fees assessed on a transfer, in BPS
|
|
179
|
+
*/
|
|
180
|
+
fee_configuration?: WalletsAPI.FeeConfiguration;
|
|
181
|
+
|
|
135
182
|
/**
|
|
136
183
|
* Maximum slippage tolerance in basis points (e.g., 50 for 0.5%).
|
|
137
184
|
*/
|
package/src/resources/users.ts
CHANGED
|
@@ -406,6 +406,9 @@ export interface LinkedAccountEmailInput {
|
|
|
406
406
|
type: 'email';
|
|
407
407
|
}
|
|
408
408
|
|
|
409
|
+
/**
|
|
410
|
+
* A linked embedded wallet account across all supported chain types.
|
|
411
|
+
*/
|
|
409
412
|
export type LinkedAccountEmbeddedWallet =
|
|
410
413
|
| LinkedAccountEthereumEmbeddedWallet
|
|
411
414
|
| LinkedAccountSolanaEmbeddedWallet
|