@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.
- package/CHANGELOG.md +82 -0
- package/client.d.mts +29 -29
- package/client.d.mts.map +1 -1
- package/client.d.ts +29 -29
- package/client.d.ts.map +1 -1
- package/client.js +11 -3
- package/client.js.map +1 -1
- package/client.mjs +11 -3
- package/client.mjs.map +1 -1
- package/package.json +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/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/apps.d.mts +44 -23
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +44 -23
- package/resources/apps.d.ts.map +1 -1
- package/resources/client-auth.d.mts +21 -5
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +21 -5
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/index.d.mts +14 -14
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +14 -14
- 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 +65 -79
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +65 -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/kraken-embed.d.mts +102 -205
- package/resources/kraken-embed.d.mts.map +1 -1
- package/resources/kraken-embed.d.ts +102 -205
- 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/onramps.d.mts +50 -48
- package/resources/onramps.d.mts.map +1 -1
- package/resources/onramps.d.ts +50 -48
- package/resources/onramps.d.ts.map +1 -1
- package/resources/policies.d.mts +47 -18
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +47 -18
- package/resources/policies.d.ts.map +1 -1
- package/resources/shared.d.mts +15 -3
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +15 -3
- package/resources/shared.d.ts.map +1 -1
- package/resources/swaps.d.mts +3 -2
- package/resources/swaps.d.mts.map +1 -1
- package/resources/swaps.d.ts +3 -2
- package/resources/swaps.d.ts.map +1 -1
- package/resources/wallet-actions.d.mts +134 -21
- package/resources/wallet-actions.d.mts.map +1 -1
- package/resources/wallet-actions.d.ts +134 -21
- package/resources/wallet-actions.d.ts.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/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/wallets.d.mts +603 -87
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +603 -87
- 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/webhooks.d.mts +241 -54
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +241 -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/src/client.ts +163 -17
- package/src/resources/accounts.ts +7 -1
- package/src/resources/aggregations.ts +16 -3
- package/src/resources/apps.ts +60 -30
- package/src/resources/client-auth.ts +22 -4
- package/src/resources/index.ts +72 -3
- package/src/resources/intents.ts +73 -91
- package/src/resources/key-quorums.ts +11 -9
- package/src/resources/kraken-embed.ts +386 -482
- package/src/resources/onramps.ts +69 -54
- package/src/resources/policies.ts +66 -16
- package/src/resources/shared.ts +18 -2
- package/src/resources/swaps.ts +3 -2
- package/src/resources/wallet-actions.ts +182 -20
- package/src/resources/wallets/balance.ts +13 -1
- package/src/resources/wallets/index.ts +34 -0
- package/src/resources/wallets/transactions.ts +6 -0
- package/src/resources/wallets/wallets.ts +782 -94
- package/src/resources/webhooks.ts +293 -57
- package/src/resources/yield.ts +29 -30
- 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
package/src/resources/intents.ts
CHANGED
|
@@ -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
|
|
125
|
+
* A key member of an intent authorization quorum.
|
|
127
126
|
*/
|
|
128
|
-
export
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
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
|
-
|
|
155
|
-
|
|
156
|
-
|
|
133
|
+
/**
|
|
134
|
+
* Unix timestamp when this member signed, or null if not yet signed.
|
|
135
|
+
*/
|
|
136
|
+
signed_at: number | null;
|
|
157
137
|
|
|
158
|
-
|
|
159
|
-
}
|
|
138
|
+
type: 'key';
|
|
160
139
|
}
|
|
161
140
|
|
|
162
141
|
/**
|
|
163
|
-
* A member of an intent authorization quorum.
|
|
164
|
-
* quorum.
|
|
142
|
+
* A nested key quorum member of an intent authorization quorum.
|
|
165
143
|
*/
|
|
166
|
-
export
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
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
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
}
|
|
150
|
+
/**
|
|
151
|
+
* Members of this child quorum
|
|
152
|
+
*/
|
|
153
|
+
members: Array<IntentAuthorizationKeyQuorumMember>;
|
|
185
154
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
public_key: string;
|
|
155
|
+
/**
|
|
156
|
+
* Number of signatures required from this child quorum
|
|
157
|
+
*/
|
|
158
|
+
threshold: number;
|
|
191
159
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
160
|
+
/**
|
|
161
|
+
* Whether this child key quorum has met its signature threshold
|
|
162
|
+
*/
|
|
163
|
+
threshold_met: boolean;
|
|
196
164
|
|
|
197
|
-
|
|
198
|
-
}
|
|
165
|
+
type: 'key_quorum';
|
|
199
166
|
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
167
|
+
/**
|
|
168
|
+
* Display name for the child key quorum (if any)
|
|
169
|
+
*/
|
|
170
|
+
display_name?: string;
|
|
171
|
+
}
|
|
205
172
|
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
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
|
-
|
|
213
|
-
|
|
214
|
-
|
|
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
|
-
|
|
218
|
-
|
|
219
|
-
|
|
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
|
-
|
|
196
|
+
type: 'user';
|
|
222
197
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
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
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
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<
|
|
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,
|