@privy-io/node 0.7.0 → 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.
Files changed (66) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/client.d.mts +3 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +3 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/aggregations.d.mts +296 -0
  12. package/resources/aggregations.d.mts.map +1 -0
  13. package/resources/aggregations.d.ts +296 -0
  14. package/resources/aggregations.d.ts.map +1 -0
  15. package/resources/aggregations.js +9 -0
  16. package/resources/aggregations.js.map +1 -0
  17. package/resources/aggregations.mjs +5 -0
  18. package/resources/aggregations.mjs.map +1 -0
  19. package/resources/index.d.mts +1 -0
  20. package/resources/index.d.mts.map +1 -1
  21. package/resources/index.d.ts +1 -0
  22. package/resources/index.d.ts.map +1 -1
  23. package/resources/index.js +3 -1
  24. package/resources/index.js.map +1 -1
  25. package/resources/index.mjs +1 -0
  26. package/resources/index.mjs.map +1 -1
  27. package/resources/key-quorums.d.mts +4 -1
  28. package/resources/key-quorums.d.mts.map +1 -1
  29. package/resources/key-quorums.d.ts +4 -1
  30. package/resources/key-quorums.d.ts.map +1 -1
  31. package/resources/policies.d.mts +19 -16
  32. package/resources/policies.d.mts.map +1 -1
  33. package/resources/policies.d.ts +19 -16
  34. package/resources/policies.d.ts.map +1 -1
  35. package/resources/users.d.mts +5 -5
  36. package/resources/users.d.mts.map +1 -1
  37. package/resources/users.d.ts +5 -5
  38. package/resources/users.d.ts.map +1 -1
  39. package/resources/wallets/balance.d.mts +3 -3
  40. package/resources/wallets/balance.d.mts.map +1 -1
  41. package/resources/wallets/balance.d.ts +3 -3
  42. package/resources/wallets/balance.d.ts.map +1 -1
  43. package/resources/wallets/transactions.d.mts +3 -3
  44. package/resources/wallets/transactions.d.mts.map +1 -1
  45. package/resources/wallets/transactions.d.ts +3 -3
  46. package/resources/wallets/transactions.d.ts.map +1 -1
  47. package/resources/wallets/wallets.d.mts +118 -50
  48. package/resources/wallets/wallets.d.mts.map +1 -1
  49. package/resources/wallets/wallets.d.ts +118 -50
  50. package/resources/wallets/wallets.d.ts.map +1 -1
  51. package/resources/wallets/wallets.js.map +1 -1
  52. package/resources/wallets/wallets.mjs.map +1 -1
  53. package/src/client.ts +19 -0
  54. package/src/resources/aggregations.ts +497 -0
  55. package/src/resources/index.ts +8 -0
  56. package/src/resources/key-quorums.ts +4 -1
  57. package/src/resources/policies.ts +19 -16
  58. package/src/resources/users.ts +6 -6
  59. package/src/resources/wallets/balance.ts +11 -3
  60. package/src/resources/wallets/transactions.ts +11 -3
  61. package/src/resources/wallets/wallets.ts +159 -50
  62. package/src/version.ts +1 -1
  63. package/version.d.mts +1 -1
  64. package/version.d.ts +1 -1
  65. package/version.js +1 -1
  66. 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
+ }
@@ -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 {
@@ -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
 
@@ -255,6 +255,9 @@ export class Policies extends APIResource {
255
255
  }
256
256
  }
257
257
 
258
+ /**
259
+ * A policy for controlling wallet operations.
260
+ */
258
261
  export interface Policy {
259
262
  /**
260
263
  * Unique ID of the created policy. This will be the primary identifier when using
@@ -342,7 +345,7 @@ export namespace Policy {
342
345
  * eth_sendTransaction request.
343
346
  */
344
347
  export interface EthereumTransactionCondition {
345
- field: 'to' | 'value';
348
+ field: 'to' | 'value' | 'chain_id';
346
349
 
347
350
  field_source: 'ethereum_transaction';
348
351
 
@@ -614,7 +617,7 @@ export namespace PolicyCreateRuleResponse {
614
617
  * eth_sendTransaction request.
615
618
  */
616
619
  export interface EthereumTransactionCondition {
617
- field: 'to' | 'value';
620
+ field: 'to' | 'value' | 'chain_id';
618
621
 
619
622
  field_source: 'ethereum_transaction';
620
623
 
@@ -820,7 +823,7 @@ export namespace PolicyUpdateRuleResponse {
820
823
  * eth_sendTransaction request.
821
824
  */
822
825
  export interface EthereumTransactionCondition {
823
- field: 'to' | 'value';
826
+ field: 'to' | 'value' | 'chain_id';
824
827
 
825
828
  field_source: 'ethereum_transaction';
826
829
 
@@ -1016,7 +1019,7 @@ export namespace PolicyGetRuleResponse {
1016
1019
  * eth_sendTransaction request.
1017
1020
  */
1018
1021
  export interface EthereumTransactionCondition {
1019
- field: 'to' | 'value';
1022
+ field: 'to' | 'value' | 'chain_id';
1020
1023
 
1021
1024
  field_source: 'ethereum_transaction';
1022
1025
 
@@ -1173,7 +1176,7 @@ export interface PolicyCreateParams {
1173
1176
  name: string;
1174
1177
 
1175
1178
  /**
1176
- * Body param:
1179
+ * Body param
1177
1180
  */
1178
1181
  rules: Array<PolicyCreateParams.Rule>;
1179
1182
 
@@ -1251,7 +1254,7 @@ export namespace PolicyCreateParams {
1251
1254
  * eth_sendTransaction request.
1252
1255
  */
1253
1256
  export interface EthereumTransactionCondition {
1254
- field: 'to' | 'value';
1257
+ field: 'to' | 'value' | 'chain_id';
1255
1258
 
1256
1259
  field_source: 'ethereum_transaction';
1257
1260
 
@@ -1422,7 +1425,7 @@ export interface PolicyCreateRuleParams {
1422
1425
  action: 'ALLOW' | 'DENY';
1423
1426
 
1424
1427
  /**
1425
- * Body param:
1428
+ * Body param
1426
1429
  */
1427
1430
  conditions: Array<
1428
1431
  | PolicyCreateRuleParams.EthereumTransactionCondition
@@ -1455,7 +1458,7 @@ export interface PolicyCreateRuleParams {
1455
1458
  | '*';
1456
1459
 
1457
1460
  /**
1458
- * Body param:
1461
+ * Body param
1459
1462
  */
1460
1463
  name: string;
1461
1464
 
@@ -1472,7 +1475,7 @@ export namespace PolicyCreateRuleParams {
1472
1475
  * eth_sendTransaction request.
1473
1476
  */
1474
1477
  export interface EthereumTransactionCondition {
1475
- field: 'to' | 'value';
1478
+ field: 'to' | 'value' | 'chain_id';
1476
1479
 
1477
1480
  field_source: 'ethereum_transaction';
1478
1481
 
@@ -1627,7 +1630,7 @@ export interface PolicyDeleteParams {
1627
1630
 
1628
1631
  export interface PolicyDeleteRuleParams {
1629
1632
  /**
1630
- * Path param:
1633
+ * Path param
1631
1634
  */
1632
1635
  policy_id: string;
1633
1636
 
@@ -1658,7 +1661,7 @@ export interface PolicyUpdateParams {
1658
1661
  owner_id?: string | null;
1659
1662
 
1660
1663
  /**
1661
- * Body param:
1664
+ * Body param
1662
1665
  */
1663
1666
  rules?: Array<PolicyUpdateParams.Rule>;
1664
1667
 
@@ -1736,7 +1739,7 @@ export namespace PolicyUpdateParams {
1736
1739
  * eth_sendTransaction request.
1737
1740
  */
1738
1741
  export interface EthereumTransactionCondition {
1739
- field: 'to' | 'value';
1742
+ field: 'to' | 'value' | 'chain_id';
1740
1743
 
1741
1744
  field_source: 'ethereum_transaction';
1742
1745
 
@@ -1884,7 +1887,7 @@ export namespace PolicyUpdateParams {
1884
1887
 
1885
1888
  export interface PolicyUpdateRuleParams {
1886
1889
  /**
1887
- * Path param:
1890
+ * Path param
1888
1891
  */
1889
1892
  policy_id: string;
1890
1893
 
@@ -1894,7 +1897,7 @@ export interface PolicyUpdateRuleParams {
1894
1897
  action: 'ALLOW' | 'DENY';
1895
1898
 
1896
1899
  /**
1897
- * Body param:
1900
+ * Body param
1898
1901
  */
1899
1902
  conditions: Array<
1900
1903
  | PolicyUpdateRuleParams.EthereumTransactionCondition
@@ -1927,7 +1930,7 @@ export interface PolicyUpdateRuleParams {
1927
1930
  | '*';
1928
1931
 
1929
1932
  /**
1930
- * Body param:
1933
+ * Body param
1931
1934
  */
1932
1935
  name: string;
1933
1936
 
@@ -1944,7 +1947,7 @@ export namespace PolicyUpdateRuleParams {
1944
1947
  * eth_sendTransaction request.
1945
1948
  */
1946
1949
  export interface EthereumTransactionCondition {
1947
- field: 'to' | 'value';
1950
+ field: 'to' | 'value' | 'chain_id';
1948
1951
 
1949
1952
  field_source: 'ethereum_transaction';
1950
1953
 
@@ -1119,6 +1119,12 @@ export interface LinkedAccountCustomOAuth {
1119
1119
 
1120
1120
  subject: string;
1121
1121
 
1122
+ /**
1123
+ * The ID of a custom OAuth provider, set up for this app. Must start with
1124
+ * "custom:".
1125
+ */
1126
+ type: ClientAuthAPI.CustomOAuthProviderID;
1127
+
1122
1128
  verified_at: number;
1123
1129
 
1124
1130
  email?: string;
@@ -1127,12 +1133,6 @@ export interface LinkedAccountCustomOAuth {
1127
1133
 
1128
1134
  profile_picture_url?: string;
1129
1135
 
1130
- /**
1131
- * The ID of a custom OAuth provider, set up for this app. Must start with
1132
- * "custom:".
1133
- */
1134
- type?: ClientAuthAPI.CustomOAuthProviderID;
1135
-
1136
1136
  username?: string;
1137
1137
  }
1138
1138