@privy-io/node 0.9.0 → 0.10.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 (100) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/client.d.mts +12 -6
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +12 -6
  5. package/client.d.ts.map +1 -1
  6. package/client.js +13 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +13 -0
  9. package/client.mjs.map +1 -1
  10. package/index.d.mts +1 -1
  11. package/index.d.mts.map +1 -1
  12. package/index.d.ts +1 -1
  13. package/index.d.ts.map +1 -1
  14. package/package.json +1 -1
  15. package/public-api/services/ethereum.d.mts +4 -1
  16. package/public-api/services/ethereum.d.mts.map +1 -1
  17. package/public-api/services/ethereum.d.ts +4 -1
  18. package/public-api/services/ethereum.d.ts.map +1 -1
  19. package/public-api/services/ethereum.js +8 -0
  20. package/public-api/services/ethereum.js.map +1 -1
  21. package/public-api/services/ethereum.mjs +8 -0
  22. package/public-api/services/ethereum.mjs.map +1 -1
  23. package/public-api/services/webhooks.d.mts +3 -1
  24. package/public-api/services/webhooks.d.mts.map +1 -1
  25. package/public-api/services/webhooks.d.ts +3 -1
  26. package/public-api/services/webhooks.d.ts.map +1 -1
  27. package/public-api/services/webhooks.js +1 -0
  28. package/public-api/services/webhooks.js.map +1 -1
  29. package/public-api/services/webhooks.mjs +1 -0
  30. package/public-api/services/webhooks.mjs.map +1 -1
  31. package/resources/accounts.d.mts +72 -0
  32. package/resources/accounts.d.mts.map +1 -0
  33. package/resources/accounts.d.ts +72 -0
  34. package/resources/accounts.d.ts.map +1 -0
  35. package/resources/accounts.js +9 -0
  36. package/resources/accounts.js.map +1 -0
  37. package/resources/accounts.mjs +5 -0
  38. package/resources/accounts.mjs.map +1 -0
  39. package/resources/client-auth.d.mts +15 -1
  40. package/resources/client-auth.d.mts.map +1 -1
  41. package/resources/client-auth.d.ts +15 -1
  42. package/resources/client-auth.d.ts.map +1 -1
  43. package/resources/index.d.mts +5 -3
  44. package/resources/index.d.mts.map +1 -1
  45. package/resources/index.d.ts +5 -3
  46. package/resources/index.d.ts.map +1 -1
  47. package/resources/index.js +5 -1
  48. package/resources/index.js.map +1 -1
  49. package/resources/index.mjs +2 -0
  50. package/resources/index.mjs.map +1 -1
  51. package/resources/intents.d.mts +104 -0
  52. package/resources/intents.d.mts.map +1 -0
  53. package/resources/intents.d.ts +104 -0
  54. package/resources/intents.d.ts.map +1 -0
  55. package/resources/intents.js +9 -0
  56. package/resources/intents.js.map +1 -0
  57. package/resources/intents.mjs +5 -0
  58. package/resources/intents.mjs.map +1 -0
  59. package/resources/key-quorums.d.mts +14 -0
  60. package/resources/key-quorums.d.mts.map +1 -1
  61. package/resources/key-quorums.d.ts +14 -0
  62. package/resources/key-quorums.d.ts.map +1 -1
  63. package/resources/policies.d.mts +8 -8
  64. package/resources/policies.d.ts +8 -8
  65. package/resources/wallets/wallets.d.mts +8 -1
  66. package/resources/wallets/wallets.d.mts.map +1 -1
  67. package/resources/wallets/wallets.d.ts +8 -1
  68. package/resources/wallets/wallets.d.ts.map +1 -1
  69. package/resources/wallets/wallets.js.map +1 -1
  70. package/resources/wallets/wallets.mjs.map +1 -1
  71. package/resources/webhooks.d.mts +38 -1
  72. package/resources/webhooks.d.mts.map +1 -1
  73. package/resources/webhooks.d.ts +38 -1
  74. package/resources/webhooks.d.ts.map +1 -1
  75. package/resources/yield.d.mts +48 -1
  76. package/resources/yield.d.mts.map +1 -1
  77. package/resources/yield.d.ts +48 -1
  78. package/resources/yield.d.ts.map +1 -1
  79. package/src/client.ts +50 -0
  80. package/src/index.ts +1 -1
  81. package/src/public-api/services/ethereum.ts +16 -0
  82. package/src/public-api/services/webhooks.ts +49 -2
  83. package/src/resources/accounts.ts +90 -0
  84. package/src/resources/client-auth.ts +22 -0
  85. package/src/resources/index.ts +16 -0
  86. package/src/resources/intents.ts +138 -0
  87. package/src/resources/key-quorums.ts +17 -0
  88. package/src/resources/policies.ts +8 -8
  89. package/src/resources/wallets/wallets.ts +9 -1
  90. package/src/resources/webhooks.ts +60 -0
  91. package/src/resources/yield.ts +59 -0
  92. package/src/version.ts +1 -1
  93. package/version.d.mts +1 -1
  94. package/version.d.mts.map +1 -1
  95. package/version.d.ts +1 -1
  96. package/version.d.ts.map +1 -1
  97. package/version.js +1 -1
  98. package/version.js.map +1 -1
  99. package/version.mjs +1 -1
  100. package/version.mjs.map +1 -1
@@ -0,0 +1,90 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import * as WalletsAPI from './wallets/wallets';
5
+
6
+ export class Accounts extends APIResource {}
7
+
8
+ /**
9
+ * A wallet belonging to a digital asset account.
10
+ */
11
+ export interface AccountWallet {
12
+ /**
13
+ * The wallet ID.
14
+ */
15
+ id: string;
16
+
17
+ /**
18
+ * The on-chain address of the wallet.
19
+ */
20
+ address: string;
21
+
22
+ /**
23
+ * The wallet chain types that offer first class support.
24
+ */
25
+ chain_type: WalletsAPI.FirstClassChainType;
26
+
27
+ /**
28
+ * Information about the custodian managing this wallet.
29
+ */
30
+ custody?: WalletsAPI.WalletCustodian;
31
+ }
32
+
33
+ /**
34
+ * A digital asset account that groups wallets under a single entity.
35
+ */
36
+ export interface AccountResponse {
37
+ /**
38
+ * The account ID.
39
+ */
40
+ id: string;
41
+
42
+ /**
43
+ * An optional display name for the account.
44
+ */
45
+ display_name: string | null;
46
+
47
+ /**
48
+ * The wallets belonging to this account.
49
+ */
50
+ wallets: Array<AccountWallet>;
51
+ }
52
+
53
+ /**
54
+ * Configuration for a wallet to create within an account.
55
+ */
56
+ export interface AccountWalletConfigurationItem {
57
+ /**
58
+ * The wallet chain types that offer first class support.
59
+ */
60
+ chain_type: WalletsAPI.FirstClassChainType;
61
+
62
+ /**
63
+ * Information about the custodian managing this wallet.
64
+ */
65
+ custody?: WalletsAPI.WalletCustodian;
66
+ }
67
+
68
+ /**
69
+ * Input for creating a digital asset account.
70
+ */
71
+ export interface CreateAccountInput {
72
+ /**
73
+ * Configuration for wallets to create.
74
+ */
75
+ wallets_configuration: Array<AccountWalletConfigurationItem>;
76
+
77
+ /**
78
+ * An optional display name for the account.
79
+ */
80
+ display_name?: string;
81
+ }
82
+
83
+ export declare namespace Accounts {
84
+ export {
85
+ type AccountWallet as AccountWallet,
86
+ type AccountResponse as AccountResponse,
87
+ type AccountWalletConfigurationItem as AccountWalletConfigurationItem,
88
+ type CreateAccountInput as CreateAccountInput,
89
+ };
90
+ }
@@ -36,6 +36,11 @@ export type CustomOAuthProviderID = `custom:${string}`;
36
36
  */
37
37
  export type OAuthProviderID = ExternalOAuthProviderID | PrivyOAuthProviderID;
38
38
 
39
+ /**
40
+ * Bridge provider variant — production or sandbox.
41
+ */
42
+ export type BridgeOnrampProvider = 'bridge' | 'bridge-sandbox';
43
+
39
44
  /**
40
45
  * Valid set of onramp providers
41
46
  */
@@ -49,6 +54,8 @@ export interface GetFiatCustomerRequestInput {
49
54
  * Valid set of onramp providers
50
55
  */
51
56
  provider: OnrampProvider;
57
+
58
+ kyc_redirect_url?: string;
52
59
  }
53
60
 
54
61
  /**
@@ -61,6 +68,15 @@ export interface CreateOrUpdateFiatCustomerRequestInput {
61
68
  * Valid set of onramp providers
62
69
  */
63
70
  provider: OnrampProvider;
71
+
72
+ kyc_redirect_url?: string;
73
+ }
74
+
75
+ /**
76
+ * A rejection reason for a customer KYC verification.
77
+ */
78
+ export interface BridgeFiatRejectionReason {
79
+ reason: string;
64
80
  }
65
81
 
66
82
  /**
@@ -84,6 +100,8 @@ export interface BridgeFiatCustomerResponse {
84
100
  | 'under_review';
85
101
 
86
102
  kyc_url?: string;
103
+
104
+ rejection_reasons?: Array<BridgeFiatRejectionReason>;
87
105
  }
88
106
 
89
107
  /**
@@ -107,6 +125,8 @@ export interface BridgeSandboxFiatCustomerResponse {
107
125
  | 'under_review';
108
126
 
109
127
  kyc_url?: string;
128
+
129
+ rejection_reasons?: Array<BridgeFiatRejectionReason>;
110
130
  }
111
131
 
112
132
  /**
@@ -307,9 +327,11 @@ export declare namespace ClientAuth {
307
327
  type PrivyOAuthProviderID as PrivyOAuthProviderID,
308
328
  type CustomOAuthProviderID as CustomOAuthProviderID,
309
329
  type OAuthProviderID as OAuthProviderID,
330
+ type BridgeOnrampProvider as BridgeOnrampProvider,
310
331
  type OnrampProvider as OnrampProvider,
311
332
  type GetFiatCustomerRequestInput as GetFiatCustomerRequestInput,
312
333
  type CreateOrUpdateFiatCustomerRequestInput as CreateOrUpdateFiatCustomerRequestInput,
334
+ type BridgeFiatRejectionReason as BridgeFiatRejectionReason,
313
335
  type BridgeFiatCustomerResponse as BridgeFiatCustomerResponse,
314
336
  type BridgeSandboxFiatCustomerResponse as BridgeSandboxFiatCustomerResponse,
315
337
  type FiatCustomerResponse as FiatCustomerResponse,
@@ -1,5 +1,12 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
+ export {
4
+ Accounts,
5
+ type AccountWallet,
6
+ type AccountResponse,
7
+ type AccountWalletConfigurationItem,
8
+ type CreateAccountInput,
9
+ } from './accounts';
3
10
  export {
4
11
  Aggregations,
5
12
  type AggregationMethod,
@@ -17,9 +24,11 @@ export {
17
24
  type PrivyOAuthProviderID,
18
25
  type CustomOAuthProviderID,
19
26
  type OAuthProviderID,
27
+ type BridgeOnrampProvider,
20
28
  type OnrampProvider,
21
29
  type GetFiatCustomerRequestInput,
22
30
  type CreateOrUpdateFiatCustomerRequestInput,
31
+ type BridgeFiatRejectionReason,
23
32
  type BridgeFiatCustomerResponse,
24
33
  type BridgeSandboxFiatCustomerResponse,
25
34
  type FiatCustomerResponse,
@@ -40,6 +49,7 @@ export {
40
49
  type BridgeSandboxFiatVirtualAccountResponse,
41
50
  type FiatVirtualAccountResponse,
42
51
  } from './client-auth';
52
+ export { Intents, type IntentAuthorizationKeyQuorumMember, type IntentAuthorizationMember } from './intents';
43
53
  export {
44
54
  KeyQuorums,
45
55
  type KeyQuorum,
@@ -245,9 +255,12 @@ export {
245
255
  type KrakenEmbedUserVerifiedWebhookPayload,
246
256
  type KrakenEmbedUserDisabledWebhookPayload,
247
257
  type KrakenEmbedUserClosedWebhookPayload,
258
+ type YieldDepositConfirmedWebhookPayload,
259
+ type YieldWithdrawConfirmedWebhookPayload,
248
260
  } from './webhooks';
249
261
  export {
250
262
  Yield,
263
+ type EvmCaip2ChainID,
251
264
  type EthereumYieldProvider,
252
265
  type EthereumYieldSweepType,
253
266
  type EthereumYieldSweepStatus,
@@ -261,4 +274,7 @@ export {
261
274
  type EthereumYieldPositionsInput,
262
275
  type EthereumVaultPosition,
263
276
  type EthereumYieldPositionResponse,
277
+ type EthereumYieldClaimInput,
278
+ type EthereumYieldClaimReward,
279
+ type EthereumYieldClaimResponse,
264
280
  } from './yield';
@@ -0,0 +1,138 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import * as IntentsAPI from './intents';
5
+
6
+ export class Intents extends APIResource {}
7
+
8
+ /**
9
+ * A leaf member (user or key) of a nested key quorum in an intent authorization.
10
+ */
11
+ export type IntentAuthorizationKeyQuorumMember =
12
+ | IntentAuthorizationKeyQuorumMember.UserMember
13
+ | IntentAuthorizationKeyQuorumMember.KeyMember;
14
+
15
+ export namespace IntentAuthorizationKeyQuorumMember {
16
+ export interface UserMember {
17
+ /**
18
+ * Whether this member has signed the intent
19
+ */
20
+ has_signed: boolean;
21
+
22
+ type: 'user';
23
+
24
+ /**
25
+ * User ID of the key quorum member
26
+ */
27
+ user_id: string;
28
+
29
+ /**
30
+ * Display name for the user (email, etc)
31
+ */
32
+ display_name?: string;
33
+ }
34
+
35
+ export interface KeyMember {
36
+ /**
37
+ * Whether this key has signed the intent
38
+ */
39
+ has_signed: boolean;
40
+
41
+ /**
42
+ * Public key of the key quorum member
43
+ */
44
+ public_key: string;
45
+
46
+ type: 'key';
47
+
48
+ /**
49
+ * Display name for the key (if any)
50
+ */
51
+ display_name?: string;
52
+ }
53
+ }
54
+
55
+ /**
56
+ * A member of an intent authorization quorum. Can be a user, key, or nested key
57
+ * quorum.
58
+ */
59
+ export type IntentAuthorizationMember =
60
+ | IntentAuthorizationMember.UserMember
61
+ | IntentAuthorizationMember.KeyMember
62
+ | IntentAuthorizationMember.KeyQuorumMember;
63
+
64
+ export namespace IntentAuthorizationMember {
65
+ export interface UserMember {
66
+ /**
67
+ * Whether this member has signed the intent
68
+ */
69
+ has_signed: boolean;
70
+
71
+ type: 'user';
72
+
73
+ /**
74
+ * User ID of the key quorum member
75
+ */
76
+ user_id: string;
77
+
78
+ /**
79
+ * Display name for the user (email, etc)
80
+ */
81
+ display_name?: string;
82
+ }
83
+
84
+ export interface KeyMember {
85
+ /**
86
+ * Whether this key has signed the intent
87
+ */
88
+ has_signed: boolean;
89
+
90
+ /**
91
+ * Public key of the key quorum member
92
+ */
93
+ public_key: string;
94
+
95
+ type: 'key';
96
+
97
+ /**
98
+ * Display name for the key (if any)
99
+ */
100
+ display_name?: string;
101
+ }
102
+
103
+ export interface KeyQuorumMember {
104
+ /**
105
+ * Whether this child key quorum has fulfilled its threshold
106
+ */
107
+ has_signed: boolean;
108
+
109
+ /**
110
+ * ID of the child key quorum member
111
+ */
112
+ key_quorum_id: string;
113
+
114
+ /**
115
+ * Members of this child quorum
116
+ */
117
+ members: Array<IntentsAPI.IntentAuthorizationKeyQuorumMember>;
118
+
119
+ /**
120
+ * Number of signatures required from this child quorum
121
+ */
122
+ threshold: number;
123
+
124
+ type: 'key_quorum';
125
+
126
+ /**
127
+ * Display name for the child key quorum (if any)
128
+ */
129
+ display_name?: string;
130
+ }
131
+ }
132
+
133
+ export declare namespace Intents {
134
+ export {
135
+ type IntentAuthorizationKeyQuorumMember as IntentAuthorizationKeyQuorumMember,
136
+ type IntentAuthorizationMember as IntentAuthorizationMember,
137
+ };
138
+ }
@@ -105,6 +105,11 @@ export interface KeyQuorum {
105
105
 
106
106
  display_name?: string;
107
107
 
108
+ /**
109
+ * List of nested key quorum IDs that are members of this key quorum.
110
+ */
111
+ key_quorum_ids?: Array<string>;
112
+
108
113
  user_ids?: Array<string>;
109
114
  }
110
115
 
@@ -132,6 +137,12 @@ export interface KeyQuorumCreateParams {
132
137
 
133
138
  display_name?: string;
134
139
 
140
+ /**
141
+ * List of key quorum IDs that should be members of this key quorum. Key quorums
142
+ * can only be nested 1 level deep.
143
+ */
144
+ key_quorum_ids?: Array<string>;
145
+
135
146
  /**
136
147
  * List of P-256 public keys of the keys that should be authorized to sign on the
137
148
  * key quorum, in base64-encoded DER format.
@@ -165,6 +176,12 @@ export interface KeyQuorumUpdateParams {
165
176
  */
166
177
  display_name?: string;
167
178
 
179
+ /**
180
+ * Body param: List of key quorum IDs that should be members of this key quorum.
181
+ * Key quorums can only be nested 1 level deep.
182
+ */
183
+ key_quorum_ids?: Array<string>;
184
+
168
185
  /**
169
186
  * Body param: List of P-256 public keys of the keys that should be authorized to
170
187
  * sign on the key quorum, in base64-encoded DER format.
@@ -417,7 +417,7 @@ export namespace Policy {
417
417
  }
418
418
 
419
419
  /**
420
- * Allowed contract addresses for eth_signAuthorization requests.
420
+ * Allowed contract addresses for eth_sign7702Authorization requests.
421
421
  */
422
422
  export interface Ethereum7702AuthorizationCondition {
423
423
  field: 'contract';
@@ -689,7 +689,7 @@ export namespace PolicyCreateRuleResponse {
689
689
  }
690
690
 
691
691
  /**
692
- * Allowed contract addresses for eth_signAuthorization requests.
692
+ * Allowed contract addresses for eth_sign7702Authorization requests.
693
693
  */
694
694
  export interface Ethereum7702AuthorizationCondition {
695
695
  field: 'contract';
@@ -895,7 +895,7 @@ export namespace PolicyUpdateRuleResponse {
895
895
  }
896
896
 
897
897
  /**
898
- * Allowed contract addresses for eth_signAuthorization requests.
898
+ * Allowed contract addresses for eth_sign7702Authorization requests.
899
899
  */
900
900
  export interface Ethereum7702AuthorizationCondition {
901
901
  field: 'contract';
@@ -1091,7 +1091,7 @@ export namespace PolicyGetRuleResponse {
1091
1091
  }
1092
1092
 
1093
1093
  /**
1094
- * Allowed contract addresses for eth_signAuthorization requests.
1094
+ * Allowed contract addresses for eth_sign7702Authorization requests.
1095
1095
  */
1096
1096
  export interface Ethereum7702AuthorizationCondition {
1097
1097
  field: 'contract';
@@ -1325,7 +1325,7 @@ export namespace PolicyCreateParams {
1325
1325
  }
1326
1326
 
1327
1327
  /**
1328
- * Allowed contract addresses for eth_signAuthorization requests.
1328
+ * Allowed contract addresses for eth_sign7702Authorization requests.
1329
1329
  */
1330
1330
  export interface Ethereum7702AuthorizationCondition {
1331
1331
  field: 'contract';
@@ -1546,7 +1546,7 @@ export namespace PolicyCreateRuleParams {
1546
1546
  }
1547
1547
 
1548
1548
  /**
1549
- * Allowed contract addresses for eth_signAuthorization requests.
1549
+ * Allowed contract addresses for eth_sign7702Authorization requests.
1550
1550
  */
1551
1551
  export interface Ethereum7702AuthorizationCondition {
1552
1552
  field: 'contract';
@@ -1809,7 +1809,7 @@ export namespace PolicyUpdateParams {
1809
1809
  }
1810
1810
 
1811
1811
  /**
1812
- * Allowed contract addresses for eth_signAuthorization requests.
1812
+ * Allowed contract addresses for eth_sign7702Authorization requests.
1813
1813
  */
1814
1814
  export interface Ethereum7702AuthorizationCondition {
1815
1815
  field: 'contract';
@@ -2017,7 +2017,7 @@ export namespace PolicyUpdateRuleParams {
2017
2017
  }
2018
2018
 
2019
2019
  /**
2020
- * Allowed contract addresses for eth_signAuthorization requests.
2020
+ * Allowed contract addresses for eth_sign7702Authorization requests.
2021
2021
  */
2022
2022
  export interface Ethereum7702AuthorizationCondition {
2023
2023
  field: 'contract';
@@ -399,7 +399,15 @@ export type WalletChainType =
399
399
  * Information about the custodian managing this wallet.
400
400
  */
401
401
  export interface WalletCustodian {
402
- name: string;
402
+ /**
403
+ * The custodian responsible for the wallet.
404
+ */
405
+ provider: string;
406
+
407
+ /**
408
+ * The resource ID of the beneficiary of the custodial wallet.
409
+ */
410
+ provider_user_id: string;
403
411
  }
404
412
 
405
413
  /**
@@ -1252,6 +1252,64 @@ export interface KrakenEmbedUserClosedWebhookPayload {
1252
1252
  user_id: string;
1253
1253
  }
1254
1254
 
1255
+ /**
1256
+ * Payload for the yield.deposit.confirmed webhook event.
1257
+ */
1258
+ export interface YieldDepositConfirmedWebhookPayload {
1259
+ assets: string;
1260
+
1261
+ block_number: number;
1262
+
1263
+ caip2: string;
1264
+
1265
+ log_index: number;
1266
+
1267
+ owner: string;
1268
+
1269
+ sender: string;
1270
+
1271
+ shares: string;
1272
+
1273
+ transaction_hash: string;
1274
+
1275
+ /**
1276
+ * The type of webhook event.
1277
+ */
1278
+ type: 'yield.deposit.confirmed';
1279
+
1280
+ vault_address: string;
1281
+ }
1282
+
1283
+ /**
1284
+ * Payload for the yield.withdraw.confirmed webhook event.
1285
+ */
1286
+ export interface YieldWithdrawConfirmedWebhookPayload {
1287
+ assets: string;
1288
+
1289
+ block_number: number;
1290
+
1291
+ caip2: string;
1292
+
1293
+ log_index: number;
1294
+
1295
+ owner: string;
1296
+
1297
+ receiver: string;
1298
+
1299
+ sender: string;
1300
+
1301
+ shares: string;
1302
+
1303
+ transaction_hash: string;
1304
+
1305
+ /**
1306
+ * The type of webhook event.
1307
+ */
1308
+ type: 'yield.withdraw.confirmed';
1309
+
1310
+ vault_address: string;
1311
+ }
1312
+
1255
1313
  export declare namespace Webhooks {
1256
1314
  export {
1257
1315
  type UserCreatedWebhookPayload as UserCreatedWebhookPayload,
@@ -1283,5 +1341,7 @@ export declare namespace Webhooks {
1283
1341
  type KrakenEmbedUserVerifiedWebhookPayload as KrakenEmbedUserVerifiedWebhookPayload,
1284
1342
  type KrakenEmbedUserDisabledWebhookPayload as KrakenEmbedUserDisabledWebhookPayload,
1285
1343
  type KrakenEmbedUserClosedWebhookPayload as KrakenEmbedUserClosedWebhookPayload,
1344
+ type YieldDepositConfirmedWebhookPayload as YieldDepositConfirmedWebhookPayload,
1345
+ type YieldWithdrawConfirmedWebhookPayload as YieldWithdrawConfirmedWebhookPayload,
1286
1346
  };
1287
1347
  }
@@ -4,6 +4,11 @@ import { APIResource } from '../core/resource';
4
4
 
5
5
  export class Yield extends APIResource {}
6
6
 
7
+ /**
8
+ * An EVM CAIP-2 chain identifier (e.g., "eip155:8453" for Base).
9
+ */
10
+ export type EvmCaip2ChainID = string;
11
+
7
12
  /**
8
13
  * Supported yield/lending protocol providers.
9
14
  */
@@ -311,8 +316,59 @@ export namespace EthereumYieldPositionResponse {
311
316
  }
312
317
  }
313
318
 
319
+ /**
320
+ * Input for claiming incentive rewards from vault participation.
321
+ */
322
+ export interface EthereumYieldClaimInput {
323
+ /**
324
+ * An EVM CAIP-2 chain identifier (e.g., "eip155:8453" for Base).
325
+ */
326
+ caip2: EvmCaip2ChainID;
327
+ }
328
+
329
+ /**
330
+ * A single reward token claimed from vault participation.
331
+ */
332
+ export interface EthereumYieldClaimReward {
333
+ /**
334
+ * Amount claimed in the smallest unit.
335
+ */
336
+ amount: string;
337
+
338
+ /**
339
+ * Reward token contract address.
340
+ */
341
+ token_address: string;
342
+
343
+ /**
344
+ * Reward token symbol (e.g., "MORPHO").
345
+ */
346
+ token_symbol: string;
347
+ }
348
+
349
+ /**
350
+ * Response from a yield reward claim operation.
351
+ */
352
+ export interface EthereumYieldClaimResponse {
353
+ /**
354
+ * Privy transaction record ID for the claim operation.
355
+ */
356
+ id: string;
357
+
358
+ /**
359
+ * An EVM CAIP-2 chain identifier (e.g., "eip155:8453" for Base).
360
+ */
361
+ caip2: EvmCaip2ChainID;
362
+
363
+ /**
364
+ * List of reward tokens claimed.
365
+ */
366
+ rewards: Array<EthereumYieldClaimReward>;
367
+ }
368
+
314
369
  export declare namespace Yield {
315
370
  export {
371
+ type EvmCaip2ChainID as EvmCaip2ChainID,
316
372
  type EthereumYieldProvider as EthereumYieldProvider,
317
373
  type EthereumYieldSweepType as EthereumYieldSweepType,
318
374
  type EthereumYieldSweepStatus as EthereumYieldSweepStatus,
@@ -326,5 +382,8 @@ export declare namespace Yield {
326
382
  type EthereumYieldPositionsInput as EthereumYieldPositionsInput,
327
383
  type EthereumVaultPosition as EthereumVaultPosition,
328
384
  type EthereumYieldPositionResponse as EthereumYieldPositionResponse,
385
+ type EthereumYieldClaimInput as EthereumYieldClaimInput,
386
+ type EthereumYieldClaimReward as EthereumYieldClaimReward,
387
+ type EthereumYieldClaimResponse as EthereumYieldClaimResponse,
329
388
  };
330
389
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.9.0'; // x-release-please-version
1
+ export const VERSION = '0.10.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.9.0";
1
+ export declare const VERSION = "0.10.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.mts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAU,CAAC"}
1
+ {"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.9.0";
1
+ export declare const VERSION = "0.10.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAU,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
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.9.0'; // x-release-please-version
4
+ exports.VERSION = '0.10.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,OAAO,CAAC,CAAC,2BAA2B"}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"}
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.9.0'; // x-release-please-version
1
+ export const VERSION = '0.10.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map
package/version.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,CAAC,2BAA2B"}
1
+ {"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"}