@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.
Files changed (68) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/client.d.mts +6 -6
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +6 -6
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/apps.d.mts +9 -3
  10. package/resources/apps.d.mts.map +1 -1
  11. package/resources/apps.d.ts +9 -3
  12. package/resources/apps.d.ts.map +1 -1
  13. package/resources/client-auth.d.mts +1 -1
  14. package/resources/client-auth.d.mts.map +1 -1
  15. package/resources/client-auth.d.ts +1 -1
  16. package/resources/client-auth.d.ts.map +1 -1
  17. package/resources/index.d.mts +3 -3
  18. package/resources/index.d.mts.map +1 -1
  19. package/resources/index.d.ts +3 -3
  20. package/resources/index.d.ts.map +1 -1
  21. package/resources/index.js.map +1 -1
  22. package/resources/index.mjs.map +1 -1
  23. package/resources/intents.d.mts +18 -3
  24. package/resources/intents.d.mts.map +1 -1
  25. package/resources/intents.d.ts +18 -3
  26. package/resources/intents.d.ts.map +1 -1
  27. package/resources/key-quorums.d.mts +10 -5
  28. package/resources/key-quorums.d.mts.map +1 -1
  29. package/resources/key-quorums.d.ts +10 -5
  30. package/resources/key-quorums.d.ts.map +1 -1
  31. package/resources/kraken-embed.d.mts +452 -1
  32. package/resources/kraken-embed.d.mts.map +1 -1
  33. package/resources/kraken-embed.d.ts +452 -1
  34. package/resources/kraken-embed.d.ts.map +1 -1
  35. package/resources/policies.d.mts +4 -2
  36. package/resources/policies.d.mts.map +1 -1
  37. package/resources/policies.d.ts +4 -2
  38. package/resources/policies.d.ts.map +1 -1
  39. package/resources/wallets/balance.d.mts +14 -1
  40. package/resources/wallets/balance.d.mts.map +1 -1
  41. package/resources/wallets/balance.d.ts +14 -1
  42. package/resources/wallets/balance.d.ts.map +1 -1
  43. package/resources/wallets/wallets.d.mts +8 -1
  44. package/resources/wallets/wallets.d.mts.map +1 -1
  45. package/resources/wallets/wallets.d.ts +8 -1
  46. package/resources/wallets/wallets.d.ts.map +1 -1
  47. package/resources/wallets/wallets.js.map +1 -1
  48. package/resources/wallets/wallets.mjs.map +1 -1
  49. package/resources/webhooks.d.mts +43 -2
  50. package/resources/webhooks.d.mts.map +1 -1
  51. package/resources/webhooks.d.ts +43 -2
  52. package/resources/webhooks.d.ts.map +1 -1
  53. package/src/client.ts +74 -0
  54. package/src/resources/apps.ts +10 -3
  55. package/src/resources/client-auth.ts +2 -1
  56. package/src/resources/index.ts +37 -0
  57. package/src/resources/intents.ts +27 -2
  58. package/src/resources/key-quorums.ts +10 -5
  59. package/src/resources/kraken-embed.ts +1406 -0
  60. package/src/resources/policies.ts +4 -2
  61. package/src/resources/wallets/balance.ts +14 -1
  62. package/src/resources/wallets/wallets.ts +11 -1
  63. package/src/resources/webhooks.ts +52 -0
  64. package/src/version.ts +1 -1
  65. package/version.d.mts +1 -1
  66. package/version.d.ts +1 -1
  67. package/version.js +1 -1
  68. 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.12.0'; // x-release-please-version
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.12.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.12.0";
1
+ export declare const VERSION = "0.14.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.12.0'; // x-release-please-version
4
+ exports.VERSION = '0.14.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.12.0'; // x-release-please-version
1
+ export const VERSION = '0.14.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map