@privy-io/api-types 0.12.0 → 0.14.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 +22 -0
- package/client.d.mts +6 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -6
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/apps.d.mts +9 -3
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +9 -3
- package/resources/apps.d.ts.map +1 -1
- package/resources/client-auth.d.mts +1 -1
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +1 -1
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/index.d.mts +3 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/intents.d.mts +18 -3
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +18 -3
- package/resources/intents.d.ts.map +1 -1
- package/resources/key-quorums.d.mts +10 -5
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +10 -5
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/kraken-embed.d.mts +452 -1
- package/resources/kraken-embed.d.mts.map +1 -1
- package/resources/kraken-embed.d.ts +452 -1
- package/resources/kraken-embed.d.ts.map +1 -1
- package/resources/policies.d.mts +4 -2
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +4 -2
- package/resources/policies.d.ts.map +1 -1
- package/resources/wallets/balance.d.mts +14 -1
- package/resources/wallets/balance.d.mts.map +1 -1
- package/resources/wallets/balance.d.ts +14 -1
- package/resources/wallets/balance.d.ts.map +1 -1
- package/resources/wallets/wallets.d.mts +8 -1
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +8 -1
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +43 -2
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +43 -2
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +74 -0
- package/src/resources/apps.ts +10 -3
- package/src/resources/client-auth.ts +2 -1
- package/src/resources/index.ts +37 -0
- package/src/resources/intents.ts +27 -2
- package/src/resources/key-quorums.ts +10 -5
- package/src/resources/kraken-embed.ts +1406 -0
- package/src/resources/policies.ts +4 -2
- package/src/resources/wallets/balance.ts +14 -1
- package/src/resources/wallets/wallets.ts +11 -1
- package/src/resources/webhooks.ts +52 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -205,7 +205,8 @@ export interface ConditionSetItemsResponse {
|
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
/**
|
|
208
|
-
* Request body for creating a condition set.
|
|
208
|
+
* Request body for creating a condition set. Exactly one of `owner` or `owner_id`
|
|
209
|
+
* is required.
|
|
209
210
|
*/
|
|
210
211
|
export interface ConditionSetRequestBody {
|
|
211
212
|
/**
|
|
@@ -744,7 +745,8 @@ export interface TronTransactionCondition {
|
|
|
744
745
|
}
|
|
745
746
|
|
|
746
747
|
/**
|
|
747
|
-
* Request body for updating a condition set.
|
|
748
|
+
* Request body for updating a condition set. At least one field must be provided.
|
|
749
|
+
* `owner` and `owner_id` are mutually exclusive.
|
|
748
750
|
*/
|
|
749
751
|
export interface UpdateConditionSetRequestBody {
|
|
750
752
|
/**
|
|
@@ -68,10 +68,15 @@ export interface BalanceGetParams {
|
|
|
68
68
|
/**
|
|
69
69
|
* The token contract address(es) to query in format "chain:address" (e.g.,
|
|
70
70
|
* "base:0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913" or
|
|
71
|
-
* "solana:EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v").
|
|
71
|
+
* "solana:EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"). Cannot be used together
|
|
72
|
+
* with `asset`/`chain` or with `include_currency`.
|
|
72
73
|
*/
|
|
73
74
|
token?: string | Array<string>;
|
|
74
75
|
|
|
76
|
+
/**
|
|
77
|
+
* Named asset(s) to query (e.g. `eth`, `usdc`). Use together with `chain` to scope
|
|
78
|
+
* the query. Cannot be used with `token`.
|
|
79
|
+
*/
|
|
75
80
|
asset?:
|
|
76
81
|
| 'usdc'
|
|
77
82
|
| 'usdc.e'
|
|
@@ -83,6 +88,10 @@ export interface BalanceGetParams {
|
|
|
83
88
|
| 'sol'
|
|
84
89
|
| Array<WalletsAPI.WalletAsset>;
|
|
85
90
|
|
|
91
|
+
/**
|
|
92
|
+
* Chain(s) to query named assets on (e.g. `base`, `ethereum`). Use together with
|
|
93
|
+
* `asset`. Cannot be used with `token`.
|
|
94
|
+
*/
|
|
86
95
|
chain?:
|
|
87
96
|
| 'ethereum'
|
|
88
97
|
| 'arbitrum'
|
|
@@ -121,6 +130,10 @@ export interface BalanceGetParams {
|
|
|
121
130
|
| 'solana_testnet'
|
|
122
131
|
>;
|
|
123
132
|
|
|
133
|
+
/**
|
|
134
|
+
* If set, balances are converted to the specified fiat currency. Not supported
|
|
135
|
+
* when `token` is provided.
|
|
136
|
+
*/
|
|
124
137
|
include_currency?: 'usd' | 'eur';
|
|
125
138
|
}
|
|
126
139
|
|
|
@@ -1524,6 +1524,8 @@ export interface SolanaSignAndSendTransactionRpcInput {
|
|
|
1524
1524
|
|
|
1525
1525
|
chain_type?: 'solana';
|
|
1526
1526
|
|
|
1527
|
+
optimistic_broadcast?: boolean;
|
|
1528
|
+
|
|
1527
1529
|
reference_id?: string;
|
|
1528
1530
|
|
|
1529
1531
|
sponsor?: boolean;
|
|
@@ -1565,6 +1567,8 @@ export interface SolanaSignAndSendTransactionRpcResponseData {
|
|
|
1565
1567
|
|
|
1566
1568
|
reference_id?: string | null;
|
|
1567
1569
|
|
|
1570
|
+
signed_transaction?: string;
|
|
1571
|
+
|
|
1568
1572
|
transaction_id?: string;
|
|
1569
1573
|
}
|
|
1570
1574
|
|
|
@@ -3298,7 +3302,8 @@ export type WalletRpcResponse =
|
|
|
3298
3302
|
export type WalletSolanaAsset = 'sol' | 'usdc' | 'eurc' | 'usdb';
|
|
3299
3303
|
|
|
3300
3304
|
/**
|
|
3301
|
-
* Request body for updating a wallet.
|
|
3305
|
+
* Request body for updating a wallet. `owner` and `owner_id` are mutually
|
|
3306
|
+
* exclusive.
|
|
3302
3307
|
*/
|
|
3303
3308
|
export interface WalletUpdateRequestBody {
|
|
3304
3309
|
/**
|
|
@@ -3992,6 +3997,11 @@ export declare namespace WalletRpcParams {
|
|
|
3992
3997
|
*/
|
|
3993
3998
|
chain_type?: 'solana';
|
|
3994
3999
|
|
|
4000
|
+
/**
|
|
4001
|
+
* Body param
|
|
4002
|
+
*/
|
|
4003
|
+
optimistic_broadcast?: boolean;
|
|
4004
|
+
|
|
3995
4005
|
/**
|
|
3996
4006
|
* Body param
|
|
3997
4007
|
*/
|
|
@@ -482,6 +482,56 @@ export interface IntentFailedWebhookPayload {
|
|
|
482
482
|
created_by_id?: string;
|
|
483
483
|
}
|
|
484
484
|
|
|
485
|
+
/**
|
|
486
|
+
* Payload for the intent.rejected webhook event.
|
|
487
|
+
*/
|
|
488
|
+
export interface IntentRejectedWebhookPayload {
|
|
489
|
+
/**
|
|
490
|
+
* Unix timestamp when the intent was created.
|
|
491
|
+
*/
|
|
492
|
+
created_at: number;
|
|
493
|
+
|
|
494
|
+
/**
|
|
495
|
+
* Unix timestamp when the intent expires.
|
|
496
|
+
*/
|
|
497
|
+
expires_at: number;
|
|
498
|
+
|
|
499
|
+
/**
|
|
500
|
+
* The unique ID of the intent.
|
|
501
|
+
*/
|
|
502
|
+
intent_id: string;
|
|
503
|
+
|
|
504
|
+
/**
|
|
505
|
+
* Type of intent.
|
|
506
|
+
*/
|
|
507
|
+
intent_type: IntentsAPI.IntentType;
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
* Unix timestamp when the intent was rejected.
|
|
511
|
+
*/
|
|
512
|
+
rejected_at: number;
|
|
513
|
+
|
|
514
|
+
/**
|
|
515
|
+
* The current status of the intent.
|
|
516
|
+
*/
|
|
517
|
+
status: string;
|
|
518
|
+
|
|
519
|
+
/**
|
|
520
|
+
* The type of webhook event.
|
|
521
|
+
*/
|
|
522
|
+
type: 'intent.rejected';
|
|
523
|
+
|
|
524
|
+
/**
|
|
525
|
+
* Display name of the user who created the intent.
|
|
526
|
+
*/
|
|
527
|
+
created_by_display_name?: string;
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* The ID of the user who created the intent.
|
|
531
|
+
*/
|
|
532
|
+
created_by_id?: string;
|
|
533
|
+
}
|
|
534
|
+
|
|
485
535
|
/**
|
|
486
536
|
* Payload for the kraken_embed.quote.cancelled webhook event.
|
|
487
537
|
*/
|
|
@@ -2642,6 +2692,7 @@ export type WebhookPayload =
|
|
|
2642
2692
|
| UserOperationCompletedWebhookPayload
|
|
2643
2693
|
| IntentCreatedWebhookPayload
|
|
2644
2694
|
| IntentAuthorizedWebhookPayload
|
|
2695
|
+
| IntentRejectedWebhookPayload
|
|
2645
2696
|
| IntentExecutedWebhookPayload
|
|
2646
2697
|
| IntentFailedWebhookPayload
|
|
2647
2698
|
| WalletActionSwapCreatedWebhookPayload
|
|
@@ -2755,6 +2806,7 @@ export declare namespace Webhooks {
|
|
|
2755
2806
|
type IntentCreatedWebhookPayload as IntentCreatedWebhookPayload,
|
|
2756
2807
|
type IntentExecutedWebhookPayload as IntentExecutedWebhookPayload,
|
|
2757
2808
|
type IntentFailedWebhookPayload as IntentFailedWebhookPayload,
|
|
2809
|
+
type IntentRejectedWebhookPayload as IntentRejectedWebhookPayload,
|
|
2758
2810
|
type KrakenEmbedQuoteCancelledWebhookPayload as KrakenEmbedQuoteCancelledWebhookPayload,
|
|
2759
2811
|
type KrakenEmbedQuoteExecutedWebhookPayload as KrakenEmbedQuoteExecutedWebhookPayload,
|
|
2760
2812
|
type KrakenEmbedQuoteExecutionFailedWebhookPayload as KrakenEmbedQuoteExecutionFailedWebhookPayload,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.14.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.14.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.14.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.14.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|