@privy-io/api-types 0.15.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.
Files changed (125) hide show
  1. package/CHANGELOG.md +82 -0
  2. package/client.d.mts +29 -29
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +29 -29
  5. package/client.d.ts.map +1 -1
  6. package/client.js +11 -3
  7. package/client.js.map +1 -1
  8. package/client.mjs +11 -3
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/accounts.d.mts +6 -2
  12. package/resources/accounts.d.mts.map +1 -1
  13. package/resources/accounts.d.ts +6 -2
  14. package/resources/accounts.d.ts.map +1 -1
  15. package/resources/aggregations.d.mts +14 -4
  16. package/resources/aggregations.d.mts.map +1 -1
  17. package/resources/aggregations.d.ts +14 -4
  18. package/resources/aggregations.d.ts.map +1 -1
  19. package/resources/apps.d.mts +44 -23
  20. package/resources/apps.d.mts.map +1 -1
  21. package/resources/apps.d.ts +44 -23
  22. package/resources/apps.d.ts.map +1 -1
  23. package/resources/client-auth.d.mts +21 -5
  24. package/resources/client-auth.d.mts.map +1 -1
  25. package/resources/client-auth.d.ts +21 -5
  26. package/resources/client-auth.d.ts.map +1 -1
  27. package/resources/index.d.mts +14 -14
  28. package/resources/index.d.mts.map +1 -1
  29. package/resources/index.d.ts +14 -14
  30. package/resources/index.d.ts.map +1 -1
  31. package/resources/index.js.map +1 -1
  32. package/resources/index.mjs.map +1 -1
  33. package/resources/intents.d.mts +65 -79
  34. package/resources/intents.d.mts.map +1 -1
  35. package/resources/intents.d.ts +65 -79
  36. package/resources/intents.d.ts.map +1 -1
  37. package/resources/intents.js.map +1 -1
  38. package/resources/intents.mjs.map +1 -1
  39. package/resources/key-quorums.d.mts +9 -8
  40. package/resources/key-quorums.d.mts.map +1 -1
  41. package/resources/key-quorums.d.ts +9 -8
  42. package/resources/key-quorums.d.ts.map +1 -1
  43. package/resources/kraken-embed.d.mts +102 -205
  44. package/resources/kraken-embed.d.mts.map +1 -1
  45. package/resources/kraken-embed.d.ts +102 -205
  46. package/resources/kraken-embed.d.ts.map +1 -1
  47. package/resources/kraken-embed.js.map +1 -1
  48. package/resources/kraken-embed.mjs.map +1 -1
  49. package/resources/onramps.d.mts +50 -48
  50. package/resources/onramps.d.mts.map +1 -1
  51. package/resources/onramps.d.ts +50 -48
  52. package/resources/onramps.d.ts.map +1 -1
  53. package/resources/policies.d.mts +47 -18
  54. package/resources/policies.d.mts.map +1 -1
  55. package/resources/policies.d.ts +47 -18
  56. package/resources/policies.d.ts.map +1 -1
  57. package/resources/shared.d.mts +15 -3
  58. package/resources/shared.d.mts.map +1 -1
  59. package/resources/shared.d.ts +15 -3
  60. package/resources/shared.d.ts.map +1 -1
  61. package/resources/swaps.d.mts +3 -2
  62. package/resources/swaps.d.mts.map +1 -1
  63. package/resources/swaps.d.ts +3 -2
  64. package/resources/swaps.d.ts.map +1 -1
  65. package/resources/wallet-actions.d.mts +134 -21
  66. package/resources/wallet-actions.d.mts.map +1 -1
  67. package/resources/wallet-actions.d.ts +134 -21
  68. package/resources/wallet-actions.d.ts.map +1 -1
  69. package/resources/wallets/balance.d.mts +8 -4
  70. package/resources/wallets/balance.d.mts.map +1 -1
  71. package/resources/wallets/balance.d.ts +8 -4
  72. package/resources/wallets/balance.d.ts.map +1 -1
  73. package/resources/wallets/index.d.mts +1 -1
  74. package/resources/wallets/index.d.mts.map +1 -1
  75. package/resources/wallets/index.d.ts +1 -1
  76. package/resources/wallets/index.d.ts.map +1 -1
  77. package/resources/wallets/index.js.map +1 -1
  78. package/resources/wallets/index.mjs.map +1 -1
  79. package/resources/wallets/transactions.d.mts +5 -1
  80. package/resources/wallets/transactions.d.mts.map +1 -1
  81. package/resources/wallets/transactions.d.ts +5 -1
  82. package/resources/wallets/transactions.d.ts.map +1 -1
  83. package/resources/wallets/wallets.d.mts +603 -87
  84. package/resources/wallets/wallets.d.mts.map +1 -1
  85. package/resources/wallets/wallets.d.ts +603 -87
  86. package/resources/wallets/wallets.d.ts.map +1 -1
  87. package/resources/wallets/wallets.js +15 -2
  88. package/resources/wallets/wallets.js.map +1 -1
  89. package/resources/wallets/wallets.mjs +15 -2
  90. package/resources/wallets/wallets.mjs.map +1 -1
  91. package/resources/webhooks.d.mts +241 -54
  92. package/resources/webhooks.d.mts.map +1 -1
  93. package/resources/webhooks.d.ts +241 -54
  94. package/resources/webhooks.d.ts.map +1 -1
  95. package/resources/webhooks.js.map +1 -1
  96. package/resources/webhooks.mjs.map +1 -1
  97. package/resources/yield.d.mts +26 -27
  98. package/resources/yield.d.mts.map +1 -1
  99. package/resources/yield.d.ts +26 -27
  100. package/resources/yield.d.ts.map +1 -1
  101. package/src/client.ts +163 -17
  102. package/src/resources/accounts.ts +7 -1
  103. package/src/resources/aggregations.ts +16 -3
  104. package/src/resources/apps.ts +60 -30
  105. package/src/resources/client-auth.ts +22 -4
  106. package/src/resources/index.ts +72 -3
  107. package/src/resources/intents.ts +73 -91
  108. package/src/resources/key-quorums.ts +11 -9
  109. package/src/resources/kraken-embed.ts +386 -482
  110. package/src/resources/onramps.ts +69 -54
  111. package/src/resources/policies.ts +66 -16
  112. package/src/resources/shared.ts +18 -2
  113. package/src/resources/swaps.ts +3 -2
  114. package/src/resources/wallet-actions.ts +182 -20
  115. package/src/resources/wallets/balance.ts +13 -1
  116. package/src/resources/wallets/index.ts +34 -0
  117. package/src/resources/wallets/transactions.ts +6 -0
  118. package/src/resources/wallets/wallets.ts +782 -94
  119. package/src/resources/webhooks.ts +293 -57
  120. package/src/resources/yield.ts +29 -30
  121. package/src/version.ts +1 -1
  122. package/version.d.mts +1 -1
  123. package/version.d.ts +1 -1
  124. package/version.js +1 -1
  125. package/version.mjs +1 -1
@@ -1,7 +1,6 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../core/resource';
4
- import * as IntentsAPI from './intents';
5
4
  import * as KeyQuorumsAPI from './key-quorums';
6
5
  import * as PoliciesAPI from './policies';
7
6
  import * as SharedAPI from './shared';
@@ -123,108 +122,83 @@ export interface IntentAuthorization {
123
122
  }
124
123
 
125
124
  /**
126
- * A leaf member (user or key) of a nested key quorum in an intent authorization.
125
+ * A key member of an intent authorization quorum.
127
126
  */
128
- export type IntentAuthorizationKeyQuorumMember =
129
- | IntentAuthorizationKeyQuorumMember.UserMember
130
- | IntentAuthorizationKeyQuorumMember.KeyMember;
131
-
132
- export namespace IntentAuthorizationKeyQuorumMember {
133
- export interface UserMember {
134
- /**
135
- * Unix timestamp when this member signed, or null if not yet signed.
136
- */
137
- signed_at: number | null;
138
-
139
- type: 'user';
140
-
141
- /**
142
- * User ID of the key quorum member
143
- */
144
- user_id: string;
145
- }
146
-
147
- export interface KeyMember {
148
- /**
149
- * Public key of the key quorum member
150
- */
151
- public_key: string;
127
+ export interface IntentAuthorizationKeyMember {
128
+ /**
129
+ * Public key of the key quorum member
130
+ */
131
+ public_key: string;
152
132
 
153
- /**
154
- * Unix timestamp when this member signed, or null if not yet signed.
155
- */
156
- signed_at: number | null;
133
+ /**
134
+ * Unix timestamp when this member signed, or null if not yet signed.
135
+ */
136
+ signed_at: number | null;
157
137
 
158
- type: 'key';
159
- }
138
+ type: 'key';
160
139
  }
161
140
 
162
141
  /**
163
- * A member of an intent authorization quorum. Can be a user, key, or nested key
164
- * quorum.
142
+ * A nested key quorum member of an intent authorization quorum.
165
143
  */
166
- export type IntentAuthorizationMember =
167
- | IntentAuthorizationMember.UserMember
168
- | IntentAuthorizationMember.KeyMember
169
- | IntentAuthorizationMember.KeyQuorumMember;
170
-
171
- export namespace IntentAuthorizationMember {
172
- export interface UserMember {
173
- /**
174
- * Unix timestamp when this member signed, or null if not yet signed.
175
- */
176
- signed_at: number | null;
177
-
178
- type: 'user';
144
+ export interface IntentAuthorizationKeyQuorum {
145
+ /**
146
+ * ID of the child key quorum member
147
+ */
148
+ key_quorum_id: string;
179
149
 
180
- /**
181
- * User ID of the key quorum member
182
- */
183
- user_id: string;
184
- }
150
+ /**
151
+ * Members of this child quorum
152
+ */
153
+ members: Array<IntentAuthorizationKeyQuorumMember>;
185
154
 
186
- export interface KeyMember {
187
- /**
188
- * Public key of the key quorum member
189
- */
190
- public_key: string;
155
+ /**
156
+ * Number of signatures required from this child quorum
157
+ */
158
+ threshold: number;
191
159
 
192
- /**
193
- * Unix timestamp when this member signed, or null if not yet signed.
194
- */
195
- signed_at: number | null;
160
+ /**
161
+ * Whether this child key quorum has met its signature threshold
162
+ */
163
+ threshold_met: boolean;
196
164
 
197
- type: 'key';
198
- }
165
+ type: 'key_quorum';
199
166
 
200
- export interface KeyQuorumMember {
201
- /**
202
- * ID of the child key quorum member
203
- */
204
- key_quorum_id: string;
167
+ /**
168
+ * Display name for the child key quorum (if any)
169
+ */
170
+ display_name?: string;
171
+ }
205
172
 
206
- /**
207
- * Members of this child quorum
208
- */
209
- members: Array<IntentsAPI.IntentAuthorizationKeyQuorumMember>;
173
+ /**
174
+ * A leaf member (user or key) of a nested key quorum in an intent authorization.
175
+ */
176
+ export type IntentAuthorizationKeyQuorumMember = IntentAuthorizationUserMember | IntentAuthorizationKeyMember;
210
177
 
211
- /**
212
- * Number of signatures required from this child quorum
213
- */
214
- threshold: number;
178
+ /**
179
+ * A member of an intent authorization quorum. Can be a user, key, or nested key
180
+ * quorum.
181
+ */
182
+ export type IntentAuthorizationMember =
183
+ | IntentAuthorizationUserMember
184
+ | IntentAuthorizationKeyMember
185
+ | IntentAuthorizationKeyQuorum;
215
186
 
216
- /**
217
- * Whether this child key quorum has met its signature threshold
218
- */
219
- threshold_met: boolean;
187
+ /**
188
+ * A user member of an intent authorization quorum.
189
+ */
190
+ export interface IntentAuthorizationUserMember {
191
+ /**
192
+ * Unix timestamp when this member signed, or null if not yet signed.
193
+ */
194
+ signed_at: number | null;
220
195
 
221
- type: 'key_quorum';
196
+ type: 'user';
222
197
 
223
- /**
224
- * Display name for the child key quorum (if any)
225
- */
226
- display_name?: string;
227
- }
198
+ /**
199
+ * User ID of the key quorum member
200
+ */
201
+ user_id: string;
228
202
  }
229
203
 
230
204
  /**
@@ -516,6 +490,11 @@ export interface RuleIntentCreateRequestDetails {
516
490
  url: string;
517
491
  }
518
492
 
493
+ /**
494
+ * Empty request body for a rule delete intent.
495
+ */
496
+ export interface RuleIntentDeleteRequestBody {}
497
+
519
498
  /**
520
499
  * Request details for deleting a rule via intent.
521
500
  */
@@ -524,11 +503,10 @@ export interface RuleIntentDeleteRequestDetails {
524
503
 
525
504
  url: string;
526
505
 
527
- body?: RuleIntentDeleteRequestDetails.Body;
528
- }
529
-
530
- export namespace RuleIntentDeleteRequestDetails {
531
- export interface Body {}
506
+ /**
507
+ * Empty request body for a rule delete intent.
508
+ */
509
+ body?: RuleIntentDeleteRequestBody;
532
510
  }
533
511
 
534
512
  /**
@@ -738,8 +716,11 @@ export declare namespace Intents {
738
716
  type BaseActionResult as BaseActionResult,
739
717
  type BaseIntentResponse as BaseIntentResponse,
740
718
  type IntentAuthorization as IntentAuthorization,
719
+ type IntentAuthorizationKeyMember as IntentAuthorizationKeyMember,
720
+ type IntentAuthorizationKeyQuorum as IntentAuthorizationKeyQuorum,
741
721
  type IntentAuthorizationKeyQuorumMember as IntentAuthorizationKeyQuorumMember,
742
722
  type IntentAuthorizationMember as IntentAuthorizationMember,
723
+ type IntentAuthorizationUserMember as IntentAuthorizationUserMember,
743
724
  type IntentAuthorizeInput as IntentAuthorizeInput,
744
725
  type IntentCreationHeaders as IntentCreationHeaders,
745
726
  type IntentResponse as IntentResponse,
@@ -752,6 +733,7 @@ export declare namespace Intents {
752
733
  type RpcIntentResponse as RpcIntentResponse,
753
734
  type RuleDeleteIntentResponse as RuleDeleteIntentResponse,
754
735
  type RuleIntentCreateRequestDetails as RuleIntentCreateRequestDetails,
736
+ type RuleIntentDeleteRequestBody as RuleIntentDeleteRequestBody,
755
737
  type RuleIntentDeleteRequestDetails as RuleIntentDeleteRequestDetails,
756
738
  type RuleIntentRequestDetails as RuleIntentRequestDetails,
757
739
  type RuleIntentResponse as RuleIntentResponse,
@@ -4,13 +4,22 @@ import { APIResource } from '../core/resource';
4
4
 
5
5
  export class KeyQuorums extends APIResource {}
6
6
 
7
+ /**
8
+ * A public key authorized to sign on a key quorum.
9
+ */
10
+ export interface AuthorizationKey {
11
+ display_name: string | null;
12
+
13
+ public_key: string;
14
+ }
15
+
7
16
  /**
8
17
  * A key quorum for authorizing wallet operations.
9
18
  */
10
19
  export interface KeyQuorum {
11
20
  id: string;
12
21
 
13
- authorization_keys: Array<KeyQuorum.AuthorizationKey>;
22
+ authorization_keys: Array<AuthorizationKey>;
14
23
 
15
24
  authorization_threshold: number | null;
16
25
 
@@ -24,14 +33,6 @@ export interface KeyQuorum {
24
33
  key_quorum_ids?: Array<string>;
25
34
  }
26
35
 
27
- export namespace KeyQuorum {
28
- export interface AuthorizationKey {
29
- display_name: string | null;
30
-
31
- public_key: string;
32
- }
33
- }
34
-
35
36
  /**
36
37
  * Headers required to authorize modifications to key quorums.
37
38
  */
@@ -123,6 +124,7 @@ export interface KeyQuorumUpdateRequestBody {
123
124
 
124
125
  export declare namespace KeyQuorums {
125
126
  export {
127
+ type AuthorizationKey as AuthorizationKey,
126
128
  type KeyQuorum as KeyQuorum,
127
129
  type KeyQuorumAuthorizationHeaders as KeyQuorumAuthorizationHeaders,
128
130
  type KeyQuorumCreateRequestBody as KeyQuorumCreateRequestBody,