@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
package/resources/policies.d.mts
CHANGED
|
@@ -66,7 +66,7 @@ export interface AggregationCondition {
|
|
|
66
66
|
/**
|
|
67
67
|
* Operator to use for policy conditions.
|
|
68
68
|
*/
|
|
69
|
-
export type ConditionOperator = 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
69
|
+
export type ConditionOperator = 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set' | 'contains' | 'starts_with' | 'ends_with';
|
|
70
70
|
/**
|
|
71
71
|
* A condition set for grouping related condition values.
|
|
72
72
|
*/
|
|
@@ -87,7 +87,7 @@ export interface ConditionSet {
|
|
|
87
87
|
/**
|
|
88
88
|
* A unique identifier for a key quorum.
|
|
89
89
|
*/
|
|
90
|
-
owner_id: SharedAPI.KeyQuorumID;
|
|
90
|
+
owner_id: SharedAPI.KeyQuorumID | null;
|
|
91
91
|
}
|
|
92
92
|
/**
|
|
93
93
|
* Headers required to authorize modifications to condition sets.
|
|
@@ -165,8 +165,8 @@ export interface ConditionSetItemsResponse {
|
|
|
165
165
|
next_cursor: string | null;
|
|
166
166
|
}
|
|
167
167
|
/**
|
|
168
|
-
* Request body for creating a condition set.
|
|
169
|
-
*
|
|
168
|
+
* Request body for creating a condition set. Optionally provide `owner` or
|
|
169
|
+
* `owner_id` (but not both) to specify ownership.
|
|
170
170
|
*/
|
|
171
171
|
export interface ConditionSetRequestBody {
|
|
172
172
|
/**
|
|
@@ -277,22 +277,40 @@ export interface EthereumTypedDataMessageCondition {
|
|
|
277
277
|
* Operator to use for policy conditions.
|
|
278
278
|
*/
|
|
279
279
|
operator: ConditionOperator;
|
|
280
|
-
|
|
280
|
+
/**
|
|
281
|
+
* The typed data structure containing EIP-712 types and the primary type for typed
|
|
282
|
+
* data message policy conditions.
|
|
283
|
+
*/
|
|
284
|
+
typed_data: TypedDataInput;
|
|
281
285
|
/**
|
|
282
286
|
* Value to compare against in a policy condition. Can be a single string or an
|
|
283
287
|
* array of strings.
|
|
284
288
|
*/
|
|
285
289
|
value: ConditionValue;
|
|
286
290
|
}
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
291
|
+
/**
|
|
292
|
+
* Condition on the message being signed (e.g. in personal_sign).
|
|
293
|
+
*/
|
|
294
|
+
export interface MessageSigningCondition {
|
|
295
|
+
/**
|
|
296
|
+
* Supported fields for message signing conditions.
|
|
297
|
+
*/
|
|
298
|
+
field: MessageSigningField;
|
|
299
|
+
field_source: 'message';
|
|
300
|
+
/**
|
|
301
|
+
* Operator to use for policy conditions.
|
|
302
|
+
*/
|
|
303
|
+
operator: ConditionOperator;
|
|
304
|
+
/**
|
|
305
|
+
* Value to compare against in a policy condition. Can be a single string or an
|
|
306
|
+
* array of strings.
|
|
307
|
+
*/
|
|
308
|
+
value: ConditionValue;
|
|
295
309
|
}
|
|
310
|
+
/**
|
|
311
|
+
* Supported fields for message signing conditions.
|
|
312
|
+
*/
|
|
313
|
+
export type MessageSigningField = 'content' | 'byte_length';
|
|
296
314
|
/**
|
|
297
315
|
* A policy for controlling wallet operations.
|
|
298
316
|
*/
|
|
@@ -315,9 +333,9 @@ export interface Policy {
|
|
|
315
333
|
*/
|
|
316
334
|
name: string;
|
|
317
335
|
/**
|
|
318
|
-
*
|
|
336
|
+
* A unique identifier for a key quorum.
|
|
319
337
|
*/
|
|
320
|
-
owner_id:
|
|
338
|
+
owner_id: SharedAPI.KeyQuorumID | null;
|
|
321
339
|
rules: Array<PolicyRuleResponse>;
|
|
322
340
|
/**
|
|
323
341
|
* Version of the policy. Currently, 1.0 is the only version.
|
|
@@ -350,11 +368,11 @@ export interface PolicyAuthorizationHeaders {
|
|
|
350
368
|
/**
|
|
351
369
|
* A condition that must be true for the rule action to be applied.
|
|
352
370
|
*/
|
|
353
|
-
export type PolicyCondition = EthereumTransactionCondition | EthereumCalldataCondition | EthereumTypedDataDomainCondition | EthereumTypedDataMessageCondition | Ethereum7702AuthorizationCondition | SolanaProgramInstructionCondition | SolanaSystemProgramInstructionCondition | SolanaTokenProgramInstructionCondition | SystemCondition | TronTransactionCondition | TronCalldataCondition | SuiTransactionCommandCondition | SuiTransferObjectsCommandCondition | ActionRequestBodyCondition | AggregationCondition;
|
|
371
|
+
export type PolicyCondition = EthereumTransactionCondition | EthereumCalldataCondition | EthereumTypedDataDomainCondition | EthereumTypedDataMessageCondition | Ethereum7702AuthorizationCondition | TempoTransactionCondition | SolanaProgramInstructionCondition | SolanaSystemProgramInstructionCondition | SolanaTokenProgramInstructionCondition | SystemCondition | TronTransactionCondition | TronCalldataCondition | SuiTransactionCommandCondition | SuiTransferObjectsCommandCondition | ActionRequestBodyCondition | AggregationCondition | MessageSigningCondition;
|
|
354
372
|
/**
|
|
355
373
|
* Method the rule applies to.
|
|
356
374
|
*/
|
|
357
|
-
export type PolicyMethod = 'eth_sendTransaction' | 'eth_signTransaction' | 'eth_signUserOperation' | 'eth_signTypedData_v4' | 'eth_sign7702Authorization' | 'wallet_sendCalls' | 'signTransaction' | 'signAndSendTransaction' | 'exportPrivateKey' | 'exportSeedPhrase' | 'signTransactionBytes' | 'earn_deposit' | 'earn_withdraw' | 'transfer' | '*';
|
|
375
|
+
export type PolicyMethod = 'eth_sendTransaction' | 'eth_signTransaction' | 'eth_signUserOperation' | 'eth_signTypedData_v4' | 'personal_sign' | 'eth_sign7702Authorization' | 'wallet_sendCalls' | 'signTransaction' | 'signAndSendTransaction' | 'signMessage' | 'exportPrivateKey' | 'exportSeedPhrase' | 'signTransactionBytes' | 'signRawMessageBytes' | 'earn_deposit' | 'earn_withdraw' | 'transfer' | '*';
|
|
358
376
|
/**
|
|
359
377
|
* Unique ID of the policy to take actions on.
|
|
360
378
|
*/
|
|
@@ -515,6 +533,32 @@ export interface SystemCondition {
|
|
|
515
533
|
*/
|
|
516
534
|
value: ConditionValue;
|
|
517
535
|
}
|
|
536
|
+
/**
|
|
537
|
+
* A Tempo (type 118) transaction-level field. Evaluated once per transaction (not
|
|
538
|
+
* per call).
|
|
539
|
+
*/
|
|
540
|
+
export interface TempoTransactionCondition {
|
|
541
|
+
/**
|
|
542
|
+
* Tempo (type 118) transaction-level fields that can be referenced in a policy
|
|
543
|
+
* condition.
|
|
544
|
+
*/
|
|
545
|
+
field: TempoTransactionConditionField;
|
|
546
|
+
field_source: 'tempo_transaction';
|
|
547
|
+
/**
|
|
548
|
+
* Operator to use for policy conditions.
|
|
549
|
+
*/
|
|
550
|
+
operator: ConditionOperator;
|
|
551
|
+
/**
|
|
552
|
+
* Value to compare against in a policy condition. Can be a single string or an
|
|
553
|
+
* array of strings.
|
|
554
|
+
*/
|
|
555
|
+
value: ConditionValue;
|
|
556
|
+
}
|
|
557
|
+
/**
|
|
558
|
+
* Tempo (type 118) transaction-level fields that can be referenced in a policy
|
|
559
|
+
* condition.
|
|
560
|
+
*/
|
|
561
|
+
export type TempoTransactionConditionField = 'fee_token' | 'fee_payer_signature' | 'nonce_key' | 'valid_before' | 'valid_after';
|
|
518
562
|
/**
|
|
519
563
|
* Decoded calldata from a TRON TriggerSmartContract interaction.
|
|
520
564
|
*/
|
|
@@ -555,6 +599,17 @@ export interface TronTransactionCondition {
|
|
|
555
599
|
*/
|
|
556
600
|
value: ConditionValue;
|
|
557
601
|
}
|
|
602
|
+
/**
|
|
603
|
+
* The typed data structure containing EIP-712 types and the primary type for typed
|
|
604
|
+
* data message policy conditions.
|
|
605
|
+
*/
|
|
606
|
+
export interface TypedDataInput {
|
|
607
|
+
primary_type: string;
|
|
608
|
+
/**
|
|
609
|
+
* The type definitions for EIP-712 typed data signing.
|
|
610
|
+
*/
|
|
611
|
+
types: WalletsAPI.TypedDataTypesInputParams;
|
|
612
|
+
}
|
|
558
613
|
/**
|
|
559
614
|
* Request body for updating a condition set. At least one field must be provided.
|
|
560
615
|
* `owner` and `owner_id` are mutually exclusive.
|
|
@@ -576,6 +631,6 @@ export interface UpdateConditionSetRequestBody {
|
|
|
576
631
|
owner_id?: SharedAPI.OwnerIDInput | null;
|
|
577
632
|
}
|
|
578
633
|
export declare namespace Policies {
|
|
579
|
-
export { type AbiParameter as AbiParameter, type AbiSchema as AbiSchema, type ActionRequestBodyCondition as ActionRequestBodyCondition, type AggregationCondition as AggregationCondition, type ConditionOperator as ConditionOperator, type ConditionSet as ConditionSet, type ConditionSetAuthorizationHeaders as ConditionSetAuthorizationHeaders, type ConditionSetItem as ConditionSetItem, type ConditionSetItemRequestParams as ConditionSetItemRequestParams, type ConditionSetItemValueInput as ConditionSetItemValueInput, type ConditionSetItems as ConditionSetItems, type ConditionSetItemsRequestBody as ConditionSetItemsRequestBody, type ConditionSetItemsResponse as ConditionSetItemsResponse, type ConditionSetRequestBody as ConditionSetRequestBody, type ConditionSetRequestParams as ConditionSetRequestParams, type ConditionValue as ConditionValue, type Ethereum7702AuthorizationCondition as Ethereum7702AuthorizationCondition, type EthereumCalldataCondition as EthereumCalldataCondition, type EthereumTransactionCondition as EthereumTransactionCondition, type EthereumTypedDataDomainCondition as EthereumTypedDataDomainCondition, type EthereumTypedDataMessageCondition as EthereumTypedDataMessageCondition, type Policy as Policy, type PolicyAction as PolicyAction, type PolicyAuthorizationHeaders as PolicyAuthorizationHeaders, type PolicyCondition as PolicyCondition, type PolicyMethod as PolicyMethod, type PolicyRequestBody as PolicyRequestBody, type PolicyRuleRequestBody as PolicyRuleRequestBody, type PolicyRuleRequestParams as PolicyRuleRequestParams, type PolicyRuleResponse as PolicyRuleResponse, type SolanaProgramInstructionCondition as SolanaProgramInstructionCondition, type SolanaSystemProgramInstructionCondition as SolanaSystemProgramInstructionCondition, type SolanaTokenProgramInstructionCondition as SolanaTokenProgramInstructionCondition, type SuiTransactionCommandCondition as SuiTransactionCommandCondition, type SuiTransactionCommandOperator as SuiTransactionCommandOperator, type SuiTransferObjectsCommandCondition as SuiTransferObjectsCommandCondition, type SuiTransferObjectsCommandField as SuiTransferObjectsCommandField, type SystemCondition as SystemCondition, type TronCalldataCondition as TronCalldataCondition, type TronTransactionCondition as TronTransactionCondition, type UpdateConditionSetRequestBody as UpdateConditionSetRequestBody, };
|
|
634
|
+
export { type AbiParameter as AbiParameter, type AbiSchema as AbiSchema, type ActionRequestBodyCondition as ActionRequestBodyCondition, type AggregationCondition as AggregationCondition, type ConditionOperator as ConditionOperator, type ConditionSet as ConditionSet, type ConditionSetAuthorizationHeaders as ConditionSetAuthorizationHeaders, type ConditionSetItem as ConditionSetItem, type ConditionSetItemRequestParams as ConditionSetItemRequestParams, type ConditionSetItemValueInput as ConditionSetItemValueInput, type ConditionSetItems as ConditionSetItems, type ConditionSetItemsRequestBody as ConditionSetItemsRequestBody, type ConditionSetItemsResponse as ConditionSetItemsResponse, type ConditionSetRequestBody as ConditionSetRequestBody, type ConditionSetRequestParams as ConditionSetRequestParams, type ConditionValue as ConditionValue, type Ethereum7702AuthorizationCondition as Ethereum7702AuthorizationCondition, type EthereumCalldataCondition as EthereumCalldataCondition, type EthereumTransactionCondition as EthereumTransactionCondition, type EthereumTypedDataDomainCondition as EthereumTypedDataDomainCondition, type EthereumTypedDataMessageCondition as EthereumTypedDataMessageCondition, type MessageSigningCondition as MessageSigningCondition, type MessageSigningField as MessageSigningField, type Policy as Policy, type PolicyAction as PolicyAction, type PolicyAuthorizationHeaders as PolicyAuthorizationHeaders, type PolicyCondition as PolicyCondition, type PolicyMethod as PolicyMethod, type PolicyRequestBody as PolicyRequestBody, type PolicyRuleRequestBody as PolicyRuleRequestBody, type PolicyRuleRequestParams as PolicyRuleRequestParams, type PolicyRuleResponse as PolicyRuleResponse, type SolanaProgramInstructionCondition as SolanaProgramInstructionCondition, type SolanaSystemProgramInstructionCondition as SolanaSystemProgramInstructionCondition, type SolanaTokenProgramInstructionCondition as SolanaTokenProgramInstructionCondition, type SuiTransactionCommandCondition as SuiTransactionCommandCondition, type SuiTransactionCommandOperator as SuiTransactionCommandOperator, type SuiTransferObjectsCommandCondition as SuiTransferObjectsCommandCondition, type SuiTransferObjectsCommandField as SuiTransferObjectsCommandField, type SystemCondition as SystemCondition, type TempoTransactionCondition as TempoTransactionCondition, type TempoTransactionConditionField as TempoTransactionConditionField, type TronCalldataCondition as TronCalldataCondition, type TronTransactionCondition as TronTransactionCondition, type TypedDataInput as TypedDataInput, type UpdateConditionSetRequestBody as UpdateConditionSetRequestBody, };
|
|
580
635
|
}
|
|
581
636
|
//# sourceMappingURL=policies.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"policies.d.mts","sourceRoot":"","sources":["../src/resources/policies.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"policies.d.mts","sourceRoot":"","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|
67
67
|
* Operator to use for policy conditions.
|
|
68
68
|
*/
|
|
69
|
-
export type ConditionOperator = 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
69
|
+
export type ConditionOperator = 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set' | 'contains' | 'starts_with' | 'ends_with';
|
|
70
70
|
/**
|
|
71
71
|
* A condition set for grouping related condition values.
|
|
72
72
|
*/
|
|
@@ -87,7 +87,7 @@ export interface ConditionSet {
|
|
|
87
87
|
/**
|
|
88
88
|
* A unique identifier for a key quorum.
|
|
89
89
|
*/
|
|
90
|
-
owner_id: SharedAPI.KeyQuorumID;
|
|
90
|
+
owner_id: SharedAPI.KeyQuorumID | null;
|
|
91
91
|
}
|
|
92
92
|
/**
|
|
93
93
|
* Headers required to authorize modifications to condition sets.
|
|
@@ -165,8 +165,8 @@ export interface ConditionSetItemsResponse {
|
|
|
165
165
|
next_cursor: string | null;
|
|
166
166
|
}
|
|
167
167
|
/**
|
|
168
|
-
* Request body for creating a condition set.
|
|
169
|
-
*
|
|
168
|
+
* Request body for creating a condition set. Optionally provide `owner` or
|
|
169
|
+
* `owner_id` (but not both) to specify ownership.
|
|
170
170
|
*/
|
|
171
171
|
export interface ConditionSetRequestBody {
|
|
172
172
|
/**
|
|
@@ -277,22 +277,40 @@ export interface EthereumTypedDataMessageCondition {
|
|
|
277
277
|
* Operator to use for policy conditions.
|
|
278
278
|
*/
|
|
279
279
|
operator: ConditionOperator;
|
|
280
|
-
|
|
280
|
+
/**
|
|
281
|
+
* The typed data structure containing EIP-712 types and the primary type for typed
|
|
282
|
+
* data message policy conditions.
|
|
283
|
+
*/
|
|
284
|
+
typed_data: TypedDataInput;
|
|
281
285
|
/**
|
|
282
286
|
* Value to compare against in a policy condition. Can be a single string or an
|
|
283
287
|
* array of strings.
|
|
284
288
|
*/
|
|
285
289
|
value: ConditionValue;
|
|
286
290
|
}
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
291
|
+
/**
|
|
292
|
+
* Condition on the message being signed (e.g. in personal_sign).
|
|
293
|
+
*/
|
|
294
|
+
export interface MessageSigningCondition {
|
|
295
|
+
/**
|
|
296
|
+
* Supported fields for message signing conditions.
|
|
297
|
+
*/
|
|
298
|
+
field: MessageSigningField;
|
|
299
|
+
field_source: 'message';
|
|
300
|
+
/**
|
|
301
|
+
* Operator to use for policy conditions.
|
|
302
|
+
*/
|
|
303
|
+
operator: ConditionOperator;
|
|
304
|
+
/**
|
|
305
|
+
* Value to compare against in a policy condition. Can be a single string or an
|
|
306
|
+
* array of strings.
|
|
307
|
+
*/
|
|
308
|
+
value: ConditionValue;
|
|
295
309
|
}
|
|
310
|
+
/**
|
|
311
|
+
* Supported fields for message signing conditions.
|
|
312
|
+
*/
|
|
313
|
+
export type MessageSigningField = 'content' | 'byte_length';
|
|
296
314
|
/**
|
|
297
315
|
* A policy for controlling wallet operations.
|
|
298
316
|
*/
|
|
@@ -315,9 +333,9 @@ export interface Policy {
|
|
|
315
333
|
*/
|
|
316
334
|
name: string;
|
|
317
335
|
/**
|
|
318
|
-
*
|
|
336
|
+
* A unique identifier for a key quorum.
|
|
319
337
|
*/
|
|
320
|
-
owner_id:
|
|
338
|
+
owner_id: SharedAPI.KeyQuorumID | null;
|
|
321
339
|
rules: Array<PolicyRuleResponse>;
|
|
322
340
|
/**
|
|
323
341
|
* Version of the policy. Currently, 1.0 is the only version.
|
|
@@ -350,11 +368,11 @@ export interface PolicyAuthorizationHeaders {
|
|
|
350
368
|
/**
|
|
351
369
|
* A condition that must be true for the rule action to be applied.
|
|
352
370
|
*/
|
|
353
|
-
export type PolicyCondition = EthereumTransactionCondition | EthereumCalldataCondition | EthereumTypedDataDomainCondition | EthereumTypedDataMessageCondition | Ethereum7702AuthorizationCondition | SolanaProgramInstructionCondition | SolanaSystemProgramInstructionCondition | SolanaTokenProgramInstructionCondition | SystemCondition | TronTransactionCondition | TronCalldataCondition | SuiTransactionCommandCondition | SuiTransferObjectsCommandCondition | ActionRequestBodyCondition | AggregationCondition;
|
|
371
|
+
export type PolicyCondition = EthereumTransactionCondition | EthereumCalldataCondition | EthereumTypedDataDomainCondition | EthereumTypedDataMessageCondition | Ethereum7702AuthorizationCondition | TempoTransactionCondition | SolanaProgramInstructionCondition | SolanaSystemProgramInstructionCondition | SolanaTokenProgramInstructionCondition | SystemCondition | TronTransactionCondition | TronCalldataCondition | SuiTransactionCommandCondition | SuiTransferObjectsCommandCondition | ActionRequestBodyCondition | AggregationCondition | MessageSigningCondition;
|
|
354
372
|
/**
|
|
355
373
|
* Method the rule applies to.
|
|
356
374
|
*/
|
|
357
|
-
export type PolicyMethod = 'eth_sendTransaction' | 'eth_signTransaction' | 'eth_signUserOperation' | 'eth_signTypedData_v4' | 'eth_sign7702Authorization' | 'wallet_sendCalls' | 'signTransaction' | 'signAndSendTransaction' | 'exportPrivateKey' | 'exportSeedPhrase' | 'signTransactionBytes' | 'earn_deposit' | 'earn_withdraw' | 'transfer' | '*';
|
|
375
|
+
export type PolicyMethod = 'eth_sendTransaction' | 'eth_signTransaction' | 'eth_signUserOperation' | 'eth_signTypedData_v4' | 'personal_sign' | 'eth_sign7702Authorization' | 'wallet_sendCalls' | 'signTransaction' | 'signAndSendTransaction' | 'signMessage' | 'exportPrivateKey' | 'exportSeedPhrase' | 'signTransactionBytes' | 'signRawMessageBytes' | 'earn_deposit' | 'earn_withdraw' | 'transfer' | '*';
|
|
358
376
|
/**
|
|
359
377
|
* Unique ID of the policy to take actions on.
|
|
360
378
|
*/
|
|
@@ -515,6 +533,32 @@ export interface SystemCondition {
|
|
|
515
533
|
*/
|
|
516
534
|
value: ConditionValue;
|
|
517
535
|
}
|
|
536
|
+
/**
|
|
537
|
+
* A Tempo (type 118) transaction-level field. Evaluated once per transaction (not
|
|
538
|
+
* per call).
|
|
539
|
+
*/
|
|
540
|
+
export interface TempoTransactionCondition {
|
|
541
|
+
/**
|
|
542
|
+
* Tempo (type 118) transaction-level fields that can be referenced in a policy
|
|
543
|
+
* condition.
|
|
544
|
+
*/
|
|
545
|
+
field: TempoTransactionConditionField;
|
|
546
|
+
field_source: 'tempo_transaction';
|
|
547
|
+
/**
|
|
548
|
+
* Operator to use for policy conditions.
|
|
549
|
+
*/
|
|
550
|
+
operator: ConditionOperator;
|
|
551
|
+
/**
|
|
552
|
+
* Value to compare against in a policy condition. Can be a single string or an
|
|
553
|
+
* array of strings.
|
|
554
|
+
*/
|
|
555
|
+
value: ConditionValue;
|
|
556
|
+
}
|
|
557
|
+
/**
|
|
558
|
+
* Tempo (type 118) transaction-level fields that can be referenced in a policy
|
|
559
|
+
* condition.
|
|
560
|
+
*/
|
|
561
|
+
export type TempoTransactionConditionField = 'fee_token' | 'fee_payer_signature' | 'nonce_key' | 'valid_before' | 'valid_after';
|
|
518
562
|
/**
|
|
519
563
|
* Decoded calldata from a TRON TriggerSmartContract interaction.
|
|
520
564
|
*/
|
|
@@ -555,6 +599,17 @@ export interface TronTransactionCondition {
|
|
|
555
599
|
*/
|
|
556
600
|
value: ConditionValue;
|
|
557
601
|
}
|
|
602
|
+
/**
|
|
603
|
+
* The typed data structure containing EIP-712 types and the primary type for typed
|
|
604
|
+
* data message policy conditions.
|
|
605
|
+
*/
|
|
606
|
+
export interface TypedDataInput {
|
|
607
|
+
primary_type: string;
|
|
608
|
+
/**
|
|
609
|
+
* The type definitions for EIP-712 typed data signing.
|
|
610
|
+
*/
|
|
611
|
+
types: WalletsAPI.TypedDataTypesInputParams;
|
|
612
|
+
}
|
|
558
613
|
/**
|
|
559
614
|
* Request body for updating a condition set. At least one field must be provided.
|
|
560
615
|
* `owner` and `owner_id` are mutually exclusive.
|
|
@@ -576,6 +631,6 @@ export interface UpdateConditionSetRequestBody {
|
|
|
576
631
|
owner_id?: SharedAPI.OwnerIDInput | null;
|
|
577
632
|
}
|
|
578
633
|
export declare namespace Policies {
|
|
579
|
-
export { type AbiParameter as AbiParameter, type AbiSchema as AbiSchema, type ActionRequestBodyCondition as ActionRequestBodyCondition, type AggregationCondition as AggregationCondition, type ConditionOperator as ConditionOperator, type ConditionSet as ConditionSet, type ConditionSetAuthorizationHeaders as ConditionSetAuthorizationHeaders, type ConditionSetItem as ConditionSetItem, type ConditionSetItemRequestParams as ConditionSetItemRequestParams, type ConditionSetItemValueInput as ConditionSetItemValueInput, type ConditionSetItems as ConditionSetItems, type ConditionSetItemsRequestBody as ConditionSetItemsRequestBody, type ConditionSetItemsResponse as ConditionSetItemsResponse, type ConditionSetRequestBody as ConditionSetRequestBody, type ConditionSetRequestParams as ConditionSetRequestParams, type ConditionValue as ConditionValue, type Ethereum7702AuthorizationCondition as Ethereum7702AuthorizationCondition, type EthereumCalldataCondition as EthereumCalldataCondition, type EthereumTransactionCondition as EthereumTransactionCondition, type EthereumTypedDataDomainCondition as EthereumTypedDataDomainCondition, type EthereumTypedDataMessageCondition as EthereumTypedDataMessageCondition, type Policy as Policy, type PolicyAction as PolicyAction, type PolicyAuthorizationHeaders as PolicyAuthorizationHeaders, type PolicyCondition as PolicyCondition, type PolicyMethod as PolicyMethod, type PolicyRequestBody as PolicyRequestBody, type PolicyRuleRequestBody as PolicyRuleRequestBody, type PolicyRuleRequestParams as PolicyRuleRequestParams, type PolicyRuleResponse as PolicyRuleResponse, type SolanaProgramInstructionCondition as SolanaProgramInstructionCondition, type SolanaSystemProgramInstructionCondition as SolanaSystemProgramInstructionCondition, type SolanaTokenProgramInstructionCondition as SolanaTokenProgramInstructionCondition, type SuiTransactionCommandCondition as SuiTransactionCommandCondition, type SuiTransactionCommandOperator as SuiTransactionCommandOperator, type SuiTransferObjectsCommandCondition as SuiTransferObjectsCommandCondition, type SuiTransferObjectsCommandField as SuiTransferObjectsCommandField, type SystemCondition as SystemCondition, type TronCalldataCondition as TronCalldataCondition, type TronTransactionCondition as TronTransactionCondition, type UpdateConditionSetRequestBody as UpdateConditionSetRequestBody, };
|
|
634
|
+
export { type AbiParameter as AbiParameter, type AbiSchema as AbiSchema, type ActionRequestBodyCondition as ActionRequestBodyCondition, type AggregationCondition as AggregationCondition, type ConditionOperator as ConditionOperator, type ConditionSet as ConditionSet, type ConditionSetAuthorizationHeaders as ConditionSetAuthorizationHeaders, type ConditionSetItem as ConditionSetItem, type ConditionSetItemRequestParams as ConditionSetItemRequestParams, type ConditionSetItemValueInput as ConditionSetItemValueInput, type ConditionSetItems as ConditionSetItems, type ConditionSetItemsRequestBody as ConditionSetItemsRequestBody, type ConditionSetItemsResponse as ConditionSetItemsResponse, type ConditionSetRequestBody as ConditionSetRequestBody, type ConditionSetRequestParams as ConditionSetRequestParams, type ConditionValue as ConditionValue, type Ethereum7702AuthorizationCondition as Ethereum7702AuthorizationCondition, type EthereumCalldataCondition as EthereumCalldataCondition, type EthereumTransactionCondition as EthereumTransactionCondition, type EthereumTypedDataDomainCondition as EthereumTypedDataDomainCondition, type EthereumTypedDataMessageCondition as EthereumTypedDataMessageCondition, type MessageSigningCondition as MessageSigningCondition, type MessageSigningField as MessageSigningField, type Policy as Policy, type PolicyAction as PolicyAction, type PolicyAuthorizationHeaders as PolicyAuthorizationHeaders, type PolicyCondition as PolicyCondition, type PolicyMethod as PolicyMethod, type PolicyRequestBody as PolicyRequestBody, type PolicyRuleRequestBody as PolicyRuleRequestBody, type PolicyRuleRequestParams as PolicyRuleRequestParams, type PolicyRuleResponse as PolicyRuleResponse, type SolanaProgramInstructionCondition as SolanaProgramInstructionCondition, type SolanaSystemProgramInstructionCondition as SolanaSystemProgramInstructionCondition, type SolanaTokenProgramInstructionCondition as SolanaTokenProgramInstructionCondition, type SuiTransactionCommandCondition as SuiTransactionCommandCondition, type SuiTransactionCommandOperator as SuiTransactionCommandOperator, type SuiTransferObjectsCommandCondition as SuiTransferObjectsCommandCondition, type SuiTransferObjectsCommandField as SuiTransferObjectsCommandField, type SystemCondition as SystemCondition, type TempoTransactionCondition as TempoTransactionCondition, type TempoTransactionConditionField as TempoTransactionConditionField, type TronCalldataCondition as TronCalldataCondition, type TronTransactionCondition as TronTransactionCondition, type TypedDataInput as TypedDataInput, type UpdateConditionSetRequestBody as UpdateConditionSetRequestBody, };
|
|
580
635
|
}
|
|
581
636
|
//# sourceMappingURL=policies.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"policies.d.ts","sourceRoot":"","sources":["../src/resources/policies.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"policies.d.ts","sourceRoot":"","sources":["../src/resources/policies.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,KAAK,SAAS,oBAAiB;AACtC,OAAO,KAAK,UAAU,6BAA0B;AAEhD,qBAAa,QAAS,SAAQ,WAAW;CAAG;AAE5C;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IAEb,UAAU,CAAC,EAAE,KAAK,CAAC;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC,CAAC;IAE/C,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;AAEvD,yBAAiB,SAAS,CAAC;IACzB,UAAiB,aAAa;QAC5B,IAAI,EAAE,UAAU,GAAG,aAAa,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,CAAC;QAEpE,SAAS,CAAC,EAAE,OAAO,CAAC;QAEpB,MAAM,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;QAEzC,IAAI,CAAC,EAAE,MAAM,CAAC;QAEd,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,YAAY,CAAC,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Ae,IAAI,eAAe,EACvC,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,6BAA6B,IAAI,6BAA6B,GACpE,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"policies.mjs","sourceRoot":"","sources":["../src/resources/policies.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"policies.mjs","sourceRoot":"","sources":["../src/resources/policies.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAK/C,MAAM,OAAO,QAAS,SAAQ,WAAW;CAAG"}
|
package/resources/shared.d.mts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.mjs";
|
|
2
2
|
export declare class Shared extends APIResource {
|
|
3
3
|
}
|
|
4
|
+
/**
|
|
5
|
+
* Bitcoin address: bech32 (bc1), P2SH (3), or P2PKH (1).
|
|
6
|
+
*/
|
|
7
|
+
export type BitcoinAddress = string;
|
|
4
8
|
/**
|
|
5
9
|
* A monetary value with its currency denomination.
|
|
6
10
|
*/
|
|
@@ -14,6 +18,20 @@ export interface CurrencyAmount {
|
|
|
14
18
|
*/
|
|
15
19
|
value: string;
|
|
16
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* EVM address: 0x followed by 40 hex characters. Preserves input case.
|
|
23
|
+
*/
|
|
24
|
+
export type EvmAddress = string;
|
|
25
|
+
/**
|
|
26
|
+
* EVM address normalized to EIP-55 checksum case.
|
|
27
|
+
*/
|
|
28
|
+
export type EvmChecksumAddress = string;
|
|
29
|
+
/**
|
|
30
|
+
* Hyperliquid L1 token identifier: 0x followed by either 32 hex characters
|
|
31
|
+
* (16-byte spot/perps token IDs) or 40 hex characters (20-byte HIP-3 DEX token
|
|
32
|
+
* IDs), normalized to lowercase.
|
|
33
|
+
*/
|
|
34
|
+
export type HyperliquidTokenAddress = string;
|
|
17
35
|
/**
|
|
18
36
|
* A unique identifier for a key quorum.
|
|
19
37
|
*/
|
|
@@ -47,13 +65,32 @@ export interface OwnerInputUser {
|
|
|
47
65
|
* A P-256 (secp256r1) public key.
|
|
48
66
|
*/
|
|
49
67
|
export type P256PublicKey = string;
|
|
68
|
+
/**
|
|
69
|
+
* Solana address: base58-encoded public key (32 bytes).
|
|
70
|
+
*/
|
|
71
|
+
export type SolanaAddress = string;
|
|
50
72
|
/**
|
|
51
73
|
* A simple success response.
|
|
52
74
|
*/
|
|
53
75
|
export interface SuccessResponse {
|
|
54
76
|
success: boolean;
|
|
55
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* Token identifier string. EVM-shaped 40-hex token addresses normalize to checksum
|
|
80
|
+
* case, 16-byte Hyperliquid token IDs normalize to lowercase, and all other
|
|
81
|
+
* identifiers pass through unchanged.
|
|
82
|
+
*/
|
|
83
|
+
export type TokenIdentifier = string;
|
|
84
|
+
/**
|
|
85
|
+
* Tron address: base58check-encoded, starting with T, 34 characters.
|
|
86
|
+
*/
|
|
87
|
+
export type TronAddress = string;
|
|
88
|
+
/**
|
|
89
|
+
* Tron address in hex format: 41-prefixed, 42 hex characters (21 bytes), no 0x
|
|
90
|
+
* prefix.
|
|
91
|
+
*/
|
|
92
|
+
export type TronHexAddress = string;
|
|
56
93
|
export declare namespace Shared {
|
|
57
|
-
export { type CurrencyAmount as CurrencyAmount, type KeyQuorumID as KeyQuorumID, type OwnerIDInput as OwnerIDInput, type OwnerInput as OwnerInput, type OwnerInputPublicKey as OwnerInputPublicKey, type OwnerInputUser as OwnerInputUser, type P256PublicKey as P256PublicKey, type SuccessResponse as SuccessResponse, };
|
|
94
|
+
export { type BitcoinAddress as BitcoinAddress, type CurrencyAmount as CurrencyAmount, type EvmAddress as EvmAddress, type EvmChecksumAddress as EvmChecksumAddress, type HyperliquidTokenAddress as HyperliquidTokenAddress, type KeyQuorumID as KeyQuorumID, type OwnerIDInput as OwnerIDInput, type OwnerInput as OwnerInput, type OwnerInputPublicKey as OwnerInputPublicKey, type OwnerInputUser as OwnerInputUser, type P256PublicKey as P256PublicKey, type SolanaAddress as SolanaAddress, type SuccessResponse as SuccessResponse, type TokenIdentifier as TokenIdentifier, type TronAddress as TronAddress, type TronHexAddress as TronHexAddress, };
|
|
58
95
|
}
|
|
59
96
|
//# sourceMappingURL=shared.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.mts","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"shared.d.mts","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,qBAAa,MAAO,SAAQ,WAAW;CAAG;AAE1C;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC;AAEpC;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC;IAEhB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC;AAEhC;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC;AAExC;;;;GAIG;AACH,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC;AAE7C;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC;AAEjC;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,IAAI,CAAC;AAEzC;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,cAAc,GAAG,mBAAmB,CAAC;AAE9D;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,UAAU,EAAE,aAAa,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC;AAEnC;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC;AAEnC;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC;AAErC;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC;AAEjC;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC;AAEpC,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;CACH"}
|
package/resources/shared.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.js";
|
|
2
2
|
export declare class Shared extends APIResource {
|
|
3
3
|
}
|
|
4
|
+
/**
|
|
5
|
+
* Bitcoin address: bech32 (bc1), P2SH (3), or P2PKH (1).
|
|
6
|
+
*/
|
|
7
|
+
export type BitcoinAddress = string;
|
|
4
8
|
/**
|
|
5
9
|
* A monetary value with its currency denomination.
|
|
6
10
|
*/
|
|
@@ -14,6 +18,20 @@ export interface CurrencyAmount {
|
|
|
14
18
|
*/
|
|
15
19
|
value: string;
|
|
16
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* EVM address: 0x followed by 40 hex characters. Preserves input case.
|
|
23
|
+
*/
|
|
24
|
+
export type EvmAddress = string;
|
|
25
|
+
/**
|
|
26
|
+
* EVM address normalized to EIP-55 checksum case.
|
|
27
|
+
*/
|
|
28
|
+
export type EvmChecksumAddress = string;
|
|
29
|
+
/**
|
|
30
|
+
* Hyperliquid L1 token identifier: 0x followed by either 32 hex characters
|
|
31
|
+
* (16-byte spot/perps token IDs) or 40 hex characters (20-byte HIP-3 DEX token
|
|
32
|
+
* IDs), normalized to lowercase.
|
|
33
|
+
*/
|
|
34
|
+
export type HyperliquidTokenAddress = string;
|
|
17
35
|
/**
|
|
18
36
|
* A unique identifier for a key quorum.
|
|
19
37
|
*/
|
|
@@ -47,13 +65,32 @@ export interface OwnerInputUser {
|
|
|
47
65
|
* A P-256 (secp256r1) public key.
|
|
48
66
|
*/
|
|
49
67
|
export type P256PublicKey = string;
|
|
68
|
+
/**
|
|
69
|
+
* Solana address: base58-encoded public key (32 bytes).
|
|
70
|
+
*/
|
|
71
|
+
export type SolanaAddress = string;
|
|
50
72
|
/**
|
|
51
73
|
* A simple success response.
|
|
52
74
|
*/
|
|
53
75
|
export interface SuccessResponse {
|
|
54
76
|
success: boolean;
|
|
55
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* Token identifier string. EVM-shaped 40-hex token addresses normalize to checksum
|
|
80
|
+
* case, 16-byte Hyperliquid token IDs normalize to lowercase, and all other
|
|
81
|
+
* identifiers pass through unchanged.
|
|
82
|
+
*/
|
|
83
|
+
export type TokenIdentifier = string;
|
|
84
|
+
/**
|
|
85
|
+
* Tron address: base58check-encoded, starting with T, 34 characters.
|
|
86
|
+
*/
|
|
87
|
+
export type TronAddress = string;
|
|
88
|
+
/**
|
|
89
|
+
* Tron address in hex format: 41-prefixed, 42 hex characters (21 bytes), no 0x
|
|
90
|
+
* prefix.
|
|
91
|
+
*/
|
|
92
|
+
export type TronHexAddress = string;
|
|
56
93
|
export declare namespace Shared {
|
|
57
|
-
export { type CurrencyAmount as CurrencyAmount, type KeyQuorumID as KeyQuorumID, type OwnerIDInput as OwnerIDInput, type OwnerInput as OwnerInput, type OwnerInputPublicKey as OwnerInputPublicKey, type OwnerInputUser as OwnerInputUser, type P256PublicKey as P256PublicKey, type SuccessResponse as SuccessResponse, };
|
|
94
|
+
export { type BitcoinAddress as BitcoinAddress, type CurrencyAmount as CurrencyAmount, type EvmAddress as EvmAddress, type EvmChecksumAddress as EvmChecksumAddress, type HyperliquidTokenAddress as HyperliquidTokenAddress, type KeyQuorumID as KeyQuorumID, type OwnerIDInput as OwnerIDInput, type OwnerInput as OwnerInput, type OwnerInputPublicKey as OwnerInputPublicKey, type OwnerInputUser as OwnerInputUser, type P256PublicKey as P256PublicKey, type SolanaAddress as SolanaAddress, type SuccessResponse as SuccessResponse, type TokenIdentifier as TokenIdentifier, type TronAddress as TronAddress, type TronHexAddress as TronHexAddress, };
|
|
58
95
|
}
|
|
59
96
|
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAE/C,qBAAa,MAAO,SAAQ,WAAW;CAAG;AAE1C;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC;AAEpC;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC;IAEhB;;OAEG;IACH,KAAK,EAA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BAAmB,EAC/C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;CACH"}
|
package/resources/shared.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.mjs","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"shared.mjs","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,MAAM,OAAO,MAAO,SAAQ,WAAW;CAAG"}
|