@privy-io/node 0.6.2 → 0.8.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 +59 -0
- package/client.d.mts +10 -7
- package/client.d.mts.map +1 -1
- package/client.d.ts +10 -7
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/index.d.mts +2 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts +2 -1
- package/index.d.ts.map +1 -1
- package/index.js +4 -1
- package/index.js.map +1 -1
- package/index.mjs +2 -1
- package/index.mjs.map +1 -1
- package/lib/auth.d.mts +30 -2
- package/lib/auth.d.mts.map +1 -1
- package/lib/auth.d.ts +30 -2
- package/lib/auth.d.ts.map +1 -1
- package/lib/auth.js +14 -5
- package/lib/auth.js.map +1 -1
- package/lib/auth.mjs +11 -3
- package/lib/auth.mjs.map +1 -1
- package/lib/cryptography.d.mts +35 -3
- package/lib/cryptography.d.mts.map +1 -1
- package/lib/cryptography.d.ts +35 -3
- package/lib/cryptography.d.ts.map +1 -1
- package/lib/cryptography.js +53 -6
- package/lib/cryptography.js.map +1 -1
- package/lib/cryptography.mjs +50 -3
- package/lib/cryptography.mjs.map +1 -1
- package/lib/identity-token.d.mts.map +1 -1
- package/lib/identity-token.d.ts.map +1 -1
- package/lib/identity-token.js +0 -1
- package/lib/identity-token.js.map +1 -1
- package/lib/identity-token.mjs +0 -1
- package/lib/identity-token.mjs.map +1 -1
- package/package.json +13 -1
- package/public-api/services/utils/auth.d.mts +10 -1
- package/public-api/services/utils/auth.d.mts.map +1 -1
- package/public-api/services/utils/auth.d.ts +10 -1
- package/public-api/services/utils/auth.d.ts.map +1 -1
- package/public-api/services/utils/auth.js +16 -5
- package/public-api/services/utils/auth.js.map +1 -1
- package/public-api/services/utils/auth.mjs +17 -6
- package/public-api/services/utils/auth.mjs.map +1 -1
- package/resources/aggregations.d.mts +296 -0
- package/resources/aggregations.d.mts.map +1 -0
- package/resources/aggregations.d.ts +296 -0
- package/resources/aggregations.d.ts.map +1 -0
- package/resources/aggregations.js +9 -0
- package/resources/aggregations.js.map +1 -0
- package/resources/aggregations.mjs +5 -0
- package/resources/aggregations.mjs.map +1 -0
- package/resources/apps.d.mts +25 -0
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +25 -0
- package/resources/apps.d.ts.map +1 -1
- package/resources/index.d.mts +4 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/key-quorums.d.mts +4 -1
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +4 -1
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/policies.d.mts +87 -131
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +87 -131
- package/resources/policies.d.ts.map +1 -1
- package/resources/policies.js.map +1 -1
- package/resources/policies.mjs.map +1 -1
- package/resources/users.d.mts +642 -381
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +642 -381
- package/resources/users.d.ts.map +1 -1
- package/resources/wallets/balance.d.mts +3 -3
- package/resources/wallets/balance.d.mts.map +1 -1
- package/resources/wallets/balance.d.ts +3 -3
- 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 +3 -3
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +3 -3
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/wallets.d.mts +215 -53
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +215 -53
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +1 -1
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +1 -1
- package/resources/wallets/wallets.mjs.map +1 -1
- package/solana-kit.d.mts +53 -0
- package/solana-kit.d.mts.map +1 -0
- package/solana-kit.d.ts +53 -0
- package/solana-kit.d.ts.map +1 -0
- package/solana-kit.js +92 -0
- package/solana-kit.js.map +1 -0
- package/solana-kit.mjs +89 -0
- package/solana-kit.mjs.map +1 -0
- package/src/client.ts +150 -3
- package/src/index.ts +5 -0
- package/src/lib/auth.ts +42 -6
- package/src/lib/cryptography.ts +72 -3
- package/src/lib/identity-token.ts +38 -18
- package/src/public-api/services/utils/auth.ts +19 -6
- package/src/resources/aggregations.ts +497 -0
- package/src/resources/apps.ts +44 -0
- package/src/resources/index.ts +74 -2
- package/src/resources/key-quorums.ts +4 -1
- package/src/resources/policies.ts +124 -207
- package/src/resources/users.ts +942 -625
- package/src/resources/wallets/balance.ts +11 -3
- package/src/resources/wallets/index.ts +6 -0
- package/src/resources/wallets/transactions.ts +11 -3
- package/src/resources/wallets/wallets.ts +283 -52
- package/src/solana-kit.ts +148 -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
|
@@ -0,0 +1,497 @@
|
|
|
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 Aggregations extends APIResource {}
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* The RPC method this aggregation applies to.
|
|
10
|
+
*/
|
|
11
|
+
export type AggregationMethod =
|
|
12
|
+
| 'eth_signTransaction'
|
|
13
|
+
| 'eth_signUserOperation'
|
|
14
|
+
| 'signTransaction'
|
|
15
|
+
| 'signTransactionBytes';
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* The metric configuration for an aggregation, defining what field/field_source to
|
|
19
|
+
* measure and the aggregation function to apply.
|
|
20
|
+
*/
|
|
21
|
+
export interface AggregationMetric {
|
|
22
|
+
field: string;
|
|
23
|
+
|
|
24
|
+
field_source: string;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* The aggregation function to apply.
|
|
28
|
+
*/
|
|
29
|
+
function: 'sum';
|
|
30
|
+
|
|
31
|
+
abi?: Array<AggregationMetric.Abi>;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export namespace AggregationMetric {
|
|
35
|
+
export interface Abi {
|
|
36
|
+
type: 'function' | 'constructor' | 'event' | 'fallback' | 'receive';
|
|
37
|
+
|
|
38
|
+
anonymous?: boolean;
|
|
39
|
+
|
|
40
|
+
inputs?: Array<Abi.Input>;
|
|
41
|
+
|
|
42
|
+
name?: string;
|
|
43
|
+
|
|
44
|
+
outputs?: Array<Abi.Output>;
|
|
45
|
+
|
|
46
|
+
stateMutability?: 'pure' | 'view' | 'nonpayable' | 'payable';
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export namespace Abi {
|
|
50
|
+
export interface Input {
|
|
51
|
+
type: string;
|
|
52
|
+
|
|
53
|
+
components?: Array<unknown>;
|
|
54
|
+
|
|
55
|
+
indexed?: boolean;
|
|
56
|
+
|
|
57
|
+
internalType?: string;
|
|
58
|
+
|
|
59
|
+
name?: string;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export interface Output {
|
|
63
|
+
type: string;
|
|
64
|
+
|
|
65
|
+
components?: Array<unknown>;
|
|
66
|
+
|
|
67
|
+
indexed?: boolean;
|
|
68
|
+
|
|
69
|
+
internalType?: string;
|
|
70
|
+
|
|
71
|
+
name?: string;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* The time window configuration for an aggregation.
|
|
78
|
+
*/
|
|
79
|
+
export interface AggregationWindow {
|
|
80
|
+
/**
|
|
81
|
+
* Duration of the rolling window in seconds (1-72 hours).
|
|
82
|
+
*/
|
|
83
|
+
seconds: number;
|
|
84
|
+
|
|
85
|
+
type: 'rolling';
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* A grouping configuration for an aggregation. Maximum of 2 group_by fields
|
|
90
|
+
* allowed.
|
|
91
|
+
*/
|
|
92
|
+
export interface AggregationGroupBy {
|
|
93
|
+
field: string;
|
|
94
|
+
|
|
95
|
+
field_source: string;
|
|
96
|
+
|
|
97
|
+
abi?: Array<AggregationGroupBy.Abi>;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export namespace AggregationGroupBy {
|
|
101
|
+
export interface Abi {
|
|
102
|
+
type: 'function' | 'constructor' | 'event' | 'fallback' | 'receive';
|
|
103
|
+
|
|
104
|
+
anonymous?: boolean;
|
|
105
|
+
|
|
106
|
+
inputs?: Array<Abi.Input>;
|
|
107
|
+
|
|
108
|
+
name?: string;
|
|
109
|
+
|
|
110
|
+
outputs?: Array<Abi.Output>;
|
|
111
|
+
|
|
112
|
+
stateMutability?: 'pure' | 'view' | 'nonpayable' | 'payable';
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export namespace Abi {
|
|
116
|
+
export interface Input {
|
|
117
|
+
type: string;
|
|
118
|
+
|
|
119
|
+
components?: Array<unknown>;
|
|
120
|
+
|
|
121
|
+
indexed?: boolean;
|
|
122
|
+
|
|
123
|
+
internalType?: string;
|
|
124
|
+
|
|
125
|
+
name?: string;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export interface Output {
|
|
129
|
+
type: string;
|
|
130
|
+
|
|
131
|
+
components?: Array<unknown>;
|
|
132
|
+
|
|
133
|
+
indexed?: boolean;
|
|
134
|
+
|
|
135
|
+
internalType?: string;
|
|
136
|
+
|
|
137
|
+
name?: string;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* An aggregation that measures and tracks metrics over a period of time.
|
|
144
|
+
*/
|
|
145
|
+
export interface Aggregation {
|
|
146
|
+
/**
|
|
147
|
+
* Unique ID of the aggregation.
|
|
148
|
+
*/
|
|
149
|
+
id: string;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Unix timestamp of when the aggregation was created in milliseconds.
|
|
153
|
+
*/
|
|
154
|
+
created_at: number;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* The RPC method this aggregation applies to.
|
|
158
|
+
*/
|
|
159
|
+
method: AggregationMethod;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* The metric configuration for an aggregation, defining what field/field_source to
|
|
163
|
+
* measure and the aggregation function to apply.
|
|
164
|
+
*/
|
|
165
|
+
metric: AggregationMetric;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* The name of the aggregation.
|
|
169
|
+
*/
|
|
170
|
+
name: string;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* The key quorum ID of the owner of the aggregation.
|
|
174
|
+
*/
|
|
175
|
+
owner_id: string | null;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* The time window configuration for an aggregation.
|
|
179
|
+
*/
|
|
180
|
+
window: AggregationWindow;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Optional conditions to filter events before aggregation.
|
|
184
|
+
*/
|
|
185
|
+
conditions?: Array<
|
|
186
|
+
| Aggregation.UnionMember0
|
|
187
|
+
| Aggregation.UnionMember1
|
|
188
|
+
| Aggregation.UnionMember2
|
|
189
|
+
| Aggregation.UnionMember3
|
|
190
|
+
| Aggregation.UnionMember4
|
|
191
|
+
| Aggregation.UnionMember5
|
|
192
|
+
| Aggregation.UnionMember6
|
|
193
|
+
| Aggregation.UnionMember7
|
|
194
|
+
| Aggregation.UnionMember8
|
|
195
|
+
| Aggregation.UnionMember9
|
|
196
|
+
| Aggregation.UnionMember10
|
|
197
|
+
| Aggregation.UnionMember11
|
|
198
|
+
| Aggregation.UnionMember12
|
|
199
|
+
| Aggregation.UnionMember13
|
|
200
|
+
>;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Optional grouping configuration for bucketing metrics.
|
|
204
|
+
*/
|
|
205
|
+
group_by?: Array<AggregationGroupBy>;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export namespace Aggregation {
|
|
209
|
+
export interface UnionMember0 {
|
|
210
|
+
field: 'to' | 'value' | 'chain_id';
|
|
211
|
+
|
|
212
|
+
field_source: 'ethereum_transaction';
|
|
213
|
+
|
|
214
|
+
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
215
|
+
|
|
216
|
+
value: string | Array<string>;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
export interface UnionMember1 {
|
|
220
|
+
abi: Array<UnionMember1.Abi>;
|
|
221
|
+
|
|
222
|
+
field: string;
|
|
223
|
+
|
|
224
|
+
field_source: 'ethereum_calldata';
|
|
225
|
+
|
|
226
|
+
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
227
|
+
|
|
228
|
+
value: string | Array<string>;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
export namespace UnionMember1 {
|
|
232
|
+
export interface Abi {
|
|
233
|
+
type: 'function' | 'constructor' | 'event' | 'fallback' | 'receive';
|
|
234
|
+
|
|
235
|
+
anonymous?: boolean;
|
|
236
|
+
|
|
237
|
+
inputs?: Array<Abi.Input>;
|
|
238
|
+
|
|
239
|
+
name?: string;
|
|
240
|
+
|
|
241
|
+
outputs?: Array<Abi.Output>;
|
|
242
|
+
|
|
243
|
+
stateMutability?: 'pure' | 'view' | 'nonpayable' | 'payable';
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
export namespace Abi {
|
|
247
|
+
export interface Input {
|
|
248
|
+
type: string;
|
|
249
|
+
|
|
250
|
+
components?: Array<unknown>;
|
|
251
|
+
|
|
252
|
+
indexed?: boolean;
|
|
253
|
+
|
|
254
|
+
internalType?: string;
|
|
255
|
+
|
|
256
|
+
name?: string;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
export interface Output {
|
|
260
|
+
type: string;
|
|
261
|
+
|
|
262
|
+
components?: Array<unknown>;
|
|
263
|
+
|
|
264
|
+
indexed?: boolean;
|
|
265
|
+
|
|
266
|
+
internalType?: string;
|
|
267
|
+
|
|
268
|
+
name?: string;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
export interface UnionMember2 {
|
|
274
|
+
field: 'chainId' | 'verifyingContract' | 'chain_id' | 'verifying_contract';
|
|
275
|
+
|
|
276
|
+
field_source: 'ethereum_typed_data_domain';
|
|
277
|
+
|
|
278
|
+
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
279
|
+
|
|
280
|
+
value: string | Array<string>;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
export interface UnionMember3 {
|
|
284
|
+
field: string;
|
|
285
|
+
|
|
286
|
+
field_source: 'ethereum_typed_data_message';
|
|
287
|
+
|
|
288
|
+
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
289
|
+
|
|
290
|
+
typed_data: UnionMember3.TypedData;
|
|
291
|
+
|
|
292
|
+
value: string | Array<string>;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
export namespace UnionMember3 {
|
|
296
|
+
export interface TypedData {
|
|
297
|
+
primary_type: string;
|
|
298
|
+
|
|
299
|
+
types: { [key: string]: Array<TypedData.Type> };
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
export namespace TypedData {
|
|
303
|
+
export interface Type {
|
|
304
|
+
name: string;
|
|
305
|
+
|
|
306
|
+
type: string;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
export interface UnionMember4 {
|
|
312
|
+
field: 'contract';
|
|
313
|
+
|
|
314
|
+
field_source: 'ethereum_7702_authorization';
|
|
315
|
+
|
|
316
|
+
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
317
|
+
|
|
318
|
+
value: string | Array<string>;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
export interface UnionMember5 {
|
|
322
|
+
field: 'programId';
|
|
323
|
+
|
|
324
|
+
field_source: 'solana_program_instruction';
|
|
325
|
+
|
|
326
|
+
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
327
|
+
|
|
328
|
+
value: string | Array<string>;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
export interface UnionMember6 {
|
|
332
|
+
field: 'instructionName' | 'Transfer.from' | 'Transfer.to' | 'Transfer.lamports';
|
|
333
|
+
|
|
334
|
+
field_source: 'solana_system_program_instruction';
|
|
335
|
+
|
|
336
|
+
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
337
|
+
|
|
338
|
+
value: string | Array<string>;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
export interface UnionMember7 {
|
|
342
|
+
field:
|
|
343
|
+
| 'instructionName'
|
|
344
|
+
| 'Transfer.source'
|
|
345
|
+
| 'Transfer.destination'
|
|
346
|
+
| 'Transfer.authority'
|
|
347
|
+
| 'Transfer.amount'
|
|
348
|
+
| 'TransferChecked.source'
|
|
349
|
+
| 'TransferChecked.destination'
|
|
350
|
+
| 'TransferChecked.authority'
|
|
351
|
+
| 'TransferChecked.amount'
|
|
352
|
+
| 'TransferChecked.mint'
|
|
353
|
+
| 'Burn.account'
|
|
354
|
+
| 'Burn.mint'
|
|
355
|
+
| 'Burn.authority'
|
|
356
|
+
| 'Burn.amount'
|
|
357
|
+
| 'MintTo.mint'
|
|
358
|
+
| 'MintTo.account'
|
|
359
|
+
| 'MintTo.authority'
|
|
360
|
+
| 'MintTo.amount'
|
|
361
|
+
| 'CloseAccount.account'
|
|
362
|
+
| 'CloseAccount.destination'
|
|
363
|
+
| 'CloseAccount.authority'
|
|
364
|
+
| 'InitializeAccount3.account'
|
|
365
|
+
| 'InitializeAccount3.mint'
|
|
366
|
+
| 'InitializeAccount3.owner';
|
|
367
|
+
|
|
368
|
+
field_source: 'solana_token_program_instruction';
|
|
369
|
+
|
|
370
|
+
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
371
|
+
|
|
372
|
+
value: string | Array<string>;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
export interface UnionMember8 {
|
|
376
|
+
field:
|
|
377
|
+
| 'TransferContract.to_address'
|
|
378
|
+
| 'TransferContract.amount'
|
|
379
|
+
| 'TriggerSmartContract.contract_address'
|
|
380
|
+
| 'TriggerSmartContract.call_value'
|
|
381
|
+
| 'TriggerSmartContract.token_id'
|
|
382
|
+
| 'TriggerSmartContract.call_token_value';
|
|
383
|
+
|
|
384
|
+
field_source: 'tron_transaction';
|
|
385
|
+
|
|
386
|
+
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
387
|
+
|
|
388
|
+
value: string | Array<string>;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
export interface UnionMember9 {
|
|
392
|
+
field: 'current_unix_timestamp';
|
|
393
|
+
|
|
394
|
+
field_source: 'system';
|
|
395
|
+
|
|
396
|
+
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
397
|
+
|
|
398
|
+
value: string | Array<string>;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
export interface UnionMember10 {
|
|
402
|
+
field: string;
|
|
403
|
+
|
|
404
|
+
field_source: 'reference';
|
|
405
|
+
|
|
406
|
+
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
407
|
+
|
|
408
|
+
value: string | Array<string>;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
export interface UnionMember11 {
|
|
412
|
+
abi: Array<UnionMember11.Abi>;
|
|
413
|
+
|
|
414
|
+
field: string;
|
|
415
|
+
|
|
416
|
+
field_source: 'tron_trigger_smart_contract_data';
|
|
417
|
+
|
|
418
|
+
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
419
|
+
|
|
420
|
+
value: string | Array<string>;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
export namespace UnionMember11 {
|
|
424
|
+
export interface Abi {
|
|
425
|
+
type: 'function' | 'constructor' | 'event' | 'fallback' | 'receive';
|
|
426
|
+
|
|
427
|
+
anonymous?: boolean;
|
|
428
|
+
|
|
429
|
+
inputs?: Array<Abi.Input>;
|
|
430
|
+
|
|
431
|
+
name?: string;
|
|
432
|
+
|
|
433
|
+
outputs?: Array<Abi.Output>;
|
|
434
|
+
|
|
435
|
+
stateMutability?: 'pure' | 'view' | 'nonpayable' | 'payable';
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
export namespace Abi {
|
|
439
|
+
export interface Input {
|
|
440
|
+
type: string;
|
|
441
|
+
|
|
442
|
+
components?: Array<unknown>;
|
|
443
|
+
|
|
444
|
+
indexed?: boolean;
|
|
445
|
+
|
|
446
|
+
internalType?: string;
|
|
447
|
+
|
|
448
|
+
name?: string;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
export interface Output {
|
|
452
|
+
type: string;
|
|
453
|
+
|
|
454
|
+
components?: Array<unknown>;
|
|
455
|
+
|
|
456
|
+
indexed?: boolean;
|
|
457
|
+
|
|
458
|
+
internalType?: string;
|
|
459
|
+
|
|
460
|
+
name?: string;
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
export interface UnionMember12 {
|
|
466
|
+
field: 'commandName';
|
|
467
|
+
|
|
468
|
+
field_source: 'sui_transaction_command';
|
|
469
|
+
|
|
470
|
+
operator: 'eq' | 'in';
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* SUI transaction commands allowlist for raw_sign endpoint policy evaluation
|
|
474
|
+
*/
|
|
475
|
+
value: WalletsAPI.SuiCommandName | Array<WalletsAPI.SuiCommandName>;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
export interface UnionMember13 {
|
|
479
|
+
field: 'recipient' | 'amount';
|
|
480
|
+
|
|
481
|
+
field_source: 'sui_transfer_objects_command';
|
|
482
|
+
|
|
483
|
+
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
484
|
+
|
|
485
|
+
value: string | Array<string>;
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
export declare namespace Aggregations {
|
|
490
|
+
export {
|
|
491
|
+
type AggregationMethod as AggregationMethod,
|
|
492
|
+
type AggregationMetric as AggregationMetric,
|
|
493
|
+
type AggregationWindow as AggregationWindow,
|
|
494
|
+
type AggregationGroupBy as AggregationGroupBy,
|
|
495
|
+
type Aggregation as Aggregation,
|
|
496
|
+
};
|
|
497
|
+
}
|
package/src/resources/apps.ts
CHANGED
|
@@ -85,6 +85,8 @@ export interface AppResponse {
|
|
|
85
85
|
|
|
86
86
|
show_wallet_login_first: boolean;
|
|
87
87
|
|
|
88
|
+
smart_wallet_config: AppResponse.Enabled | AppResponse.UnionMember1;
|
|
89
|
+
|
|
88
90
|
sms_auth: boolean;
|
|
89
91
|
|
|
90
92
|
solana_wallet_auth: boolean;
|
|
@@ -171,6 +173,48 @@ export namespace AppResponse {
|
|
|
171
173
|
}
|
|
172
174
|
}
|
|
173
175
|
|
|
176
|
+
export interface Enabled {
|
|
177
|
+
enabled: false;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export interface UnionMember1 {
|
|
181
|
+
configured_networks: Array<UnionMember1.ConfiguredNetwork>;
|
|
182
|
+
|
|
183
|
+
enabled: true;
|
|
184
|
+
|
|
185
|
+
smart_wallet_type:
|
|
186
|
+
| 'safe'
|
|
187
|
+
| 'kernel'
|
|
188
|
+
| 'light_account'
|
|
189
|
+
| 'biconomy'
|
|
190
|
+
| 'coinbase_smart_wallet'
|
|
191
|
+
| 'thirdweb';
|
|
192
|
+
|
|
193
|
+
smart_wallet_version?: string;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export namespace UnionMember1 {
|
|
197
|
+
export interface ConfiguredNetwork {
|
|
198
|
+
bundler_url: string;
|
|
199
|
+
|
|
200
|
+
chain_id: string;
|
|
201
|
+
|
|
202
|
+
chain_name?: string;
|
|
203
|
+
|
|
204
|
+
paymaster_context?: ConfiguredNetwork.PaymasterContext;
|
|
205
|
+
|
|
206
|
+
paymaster_url?: string;
|
|
207
|
+
|
|
208
|
+
rpc_url?: string;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export namespace ConfiguredNetwork {
|
|
212
|
+
export interface PaymasterContext {
|
|
213
|
+
policy_id: string;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
174
218
|
export interface FundingConfig {
|
|
175
219
|
cross_chain_bridging_enabled: boolean;
|
|
176
220
|
|
package/src/resources/index.ts
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
+
export {
|
|
4
|
+
Aggregations,
|
|
5
|
+
type AggregationMethod,
|
|
6
|
+
type AggregationMetric,
|
|
7
|
+
type AggregationWindow,
|
|
8
|
+
type AggregationGroupBy,
|
|
9
|
+
type Aggregation,
|
|
10
|
+
} from './aggregations';
|
|
3
11
|
export { Analytics, type AnalyticsEventInput } from './analytics';
|
|
4
12
|
export { Apps, type AppResponse } from './apps';
|
|
5
13
|
export {
|
|
@@ -20,6 +28,11 @@ export {
|
|
|
20
28
|
export {
|
|
21
29
|
Policies,
|
|
22
30
|
type Policy,
|
|
31
|
+
type SuiTransactionCommandOperator,
|
|
32
|
+
type SuiTransferObjectsCommandField,
|
|
33
|
+
type TronTransactionCondition,
|
|
34
|
+
type SuiTransactionCommandCondition,
|
|
35
|
+
type SuiTransferObjectsCommandCondition,
|
|
23
36
|
type PolicyCreateRuleResponse,
|
|
24
37
|
type PolicyDeleteResponse,
|
|
25
38
|
type PolicyDeleteRuleResponse,
|
|
@@ -39,6 +52,17 @@ export {
|
|
|
39
52
|
type AuthenticatedUser,
|
|
40
53
|
type LinkedAccount,
|
|
41
54
|
type User,
|
|
55
|
+
type LinkedAccountEmail,
|
|
56
|
+
type LinkedAccountPhone,
|
|
57
|
+
type LinkedAccountBaseWallet,
|
|
58
|
+
type LinkedAccountEthereum,
|
|
59
|
+
type SmartWalletType,
|
|
60
|
+
type LinkedAccountSmartWallet,
|
|
61
|
+
type LinkedAccountSolana,
|
|
62
|
+
type LinkedAccountFarcaster,
|
|
63
|
+
type LinkedAccountPasskey,
|
|
64
|
+
type LinkedAccountTelegram,
|
|
65
|
+
type EmbeddedWalletRecoveryMethod,
|
|
42
66
|
type LinkedAccountEthereumEmbeddedWallet,
|
|
43
67
|
type LinkedAccountSolanaEmbeddedWallet,
|
|
44
68
|
type LinkedAccountBitcoinSegwitEmbeddedWallet,
|
|
@@ -46,8 +70,50 @@ export {
|
|
|
46
70
|
type LinkedAccountCurveSigningEmbeddedWallet,
|
|
47
71
|
type LinkedAccountEmbeddedWallet,
|
|
48
72
|
type LinkedAccountEmbeddedWalletWithID,
|
|
49
|
-
type
|
|
50
|
-
type
|
|
73
|
+
type LinkedAccountGoogleOAuth,
|
|
74
|
+
type LinkedAccountTwitterOAuth,
|
|
75
|
+
type LinkedAccountDiscordOAuth,
|
|
76
|
+
type LinkedAccountGitHubOAuth,
|
|
77
|
+
type LinkedAccountLinkedInOAuth,
|
|
78
|
+
type LinkedAccountSpotifyOAuth,
|
|
79
|
+
type LinkedAccountInstagramOAuth,
|
|
80
|
+
type LinkedAccountTiktokOAuth,
|
|
81
|
+
type LinkedAccountLineOAuth,
|
|
82
|
+
type LinkedAccountTwitchOAuth,
|
|
83
|
+
type LinkedAccountAppleOAuth,
|
|
84
|
+
type LinkedAccountCustomOAuth,
|
|
85
|
+
type LinkedAccountCustomJwt,
|
|
86
|
+
type CrossAppEmbeddedWallet,
|
|
87
|
+
type CrossAppSmartWallet,
|
|
88
|
+
type LinkedAccountCrossApp,
|
|
89
|
+
type LinkedAccountAuthorizationKey,
|
|
90
|
+
type LinkedAccountType,
|
|
91
|
+
type CustomMetadata,
|
|
92
|
+
type LinkedAccountWalletInput,
|
|
93
|
+
type LinkedAccountEmailInput,
|
|
94
|
+
type LinkedAccountPhoneInput,
|
|
95
|
+
type LinkedAccountGoogleInput,
|
|
96
|
+
type LinkedAccountTwitterInput,
|
|
97
|
+
type LinkedAccountDiscordInput,
|
|
98
|
+
type LinkedAccountGitHubInput,
|
|
99
|
+
type LinkedAccountSpotifyInput,
|
|
100
|
+
type LinkedAccountInstagramInput,
|
|
101
|
+
type LinkedAccountTiktokInput,
|
|
102
|
+
type LinkedAccountLineInput,
|
|
103
|
+
type LinkedAccountTwitchInput,
|
|
104
|
+
type LinkedAccountAppleInput,
|
|
105
|
+
type LinkedAccountLinkedInInput,
|
|
106
|
+
type LinkedAccountFarcasterInput,
|
|
107
|
+
type LinkedAccountTelegramInput,
|
|
108
|
+
type LinkedAccountCustomJwtInput,
|
|
109
|
+
type LinkedAccountInput,
|
|
110
|
+
type UserBatchCreateInput,
|
|
111
|
+
type SMSMfaMethod,
|
|
112
|
+
type TotpMfaMethod,
|
|
113
|
+
type PasskeyMfaMethod,
|
|
114
|
+
type LinkedMfaMethod,
|
|
115
|
+
type OAuthTokens,
|
|
116
|
+
type UserWithIdentityToken,
|
|
51
117
|
type UserCreateParams,
|
|
52
118
|
type UserListParams,
|
|
53
119
|
type UserGetByCustomAuthIDParams,
|
|
@@ -76,6 +142,12 @@ export {
|
|
|
76
142
|
type WalletChainType,
|
|
77
143
|
type ExtendedChainType,
|
|
78
144
|
type WalletCustodian,
|
|
145
|
+
type CustodialWalletProvider,
|
|
146
|
+
type CustodialWalletChainType,
|
|
147
|
+
type CustodialWalletCreateInput,
|
|
148
|
+
type CustodialWallet,
|
|
149
|
+
type HpkeImportConfig,
|
|
150
|
+
type SuiCommandName,
|
|
79
151
|
type EthereumPersonalSignRpcInput,
|
|
80
152
|
type EthereumSignTransactionRpcInput,
|
|
81
153
|
type EthereumSendTransactionRpcInput,
|
|
@@ -93,6 +93,9 @@ export class KeyQuorums extends APIResource {
|
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
+
/**
|
|
97
|
+
* A key quorum for authorizing wallet operations.
|
|
98
|
+
*/
|
|
96
99
|
export interface KeyQuorum {
|
|
97
100
|
id: string;
|
|
98
101
|
|
|
@@ -158,7 +161,7 @@ export interface KeyQuorumUpdateParams {
|
|
|
158
161
|
authorization_threshold?: number;
|
|
159
162
|
|
|
160
163
|
/**
|
|
161
|
-
* Body param
|
|
164
|
+
* Body param
|
|
162
165
|
*/
|
|
163
166
|
display_name?: string;
|
|
164
167
|
|