@dfns/sdk 0.8.24 → 0.8.25

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.
@@ -19,6 +19,8 @@ export type CreateAllocationBody = {
19
19
  };
20
20
  /** The slippage tolerance for this trade in [basis point](https://en.wikipedia.org/wiki/Basis_point) (BPS). Slippage tolerance defines the maximum price difference you're willing to accept during a trade from the estimated quote, ensuring you still receive at least a minimum number of tokens if the price shifts. One basis point equals one-hundredth of a percentage point, or 0.01%. */
21
21
  slippageBps: number;
22
+ /** Id of the fee sponsor that will pay the network fees for this allocation. When set, allocation transactions are broadcast as sponsored user operations. */
23
+ feeSponsorId?: string | undefined;
22
24
  } | {
23
25
  /** Wallet id. */
24
26
  walletId: string;
@@ -29,6 +31,8 @@ export type CreateAllocationBody = {
29
31
  provider?: ("M0" | "Yield.xyz") | undefined;
30
32
  /** USDS amount in smallest unit, e.g. "1000000000000000000" = 1 USDS */
31
33
  amount: string;
34
+ /** Id of the fee sponsor that will pay the network fees for this allocation. When set, allocation transactions are broadcast as sponsored user operations. */
35
+ feeSponsorId?: string | undefined;
32
36
  } | {
33
37
  /** Wallet id. */
34
38
  walletId: string;
@@ -39,6 +43,8 @@ export type CreateAllocationBody = {
39
43
  provider?: ("M0" | "Yield.xyz") | undefined;
40
44
  /** USDC amount in smallest unit, e.g. "1000000" = 1 USDC */
41
45
  amount: string;
46
+ /** Id of the fee sponsor that will pay the network fees for this allocation. When set, allocation transactions are broadcast as sponsored user operations. */
47
+ feeSponsorId?: string | undefined;
42
48
  } | {
43
49
  /** Wallet id. */
44
50
  walletId: string;
@@ -49,6 +55,8 @@ export type CreateAllocationBody = {
49
55
  provider?: ("M0" | "Yield.xyz") | undefined;
50
56
  /** USDT amount in smallest unit, e.g. "1000000" = 1 USDT */
51
57
  amount: string;
58
+ /** Id of the fee sponsor that will pay the network fees for this allocation. When set, allocation transactions are broadcast as sponsored user operations. */
59
+ feeSponsorId?: string | undefined;
52
60
  } | {
53
61
  /** Wallet id. */
54
62
  walletId: string;
@@ -59,6 +67,8 @@ export type CreateAllocationBody = {
59
67
  provider?: ("M0" | "Yield.xyz") | undefined;
60
68
  /** USDC amount in smallest unit, e.g. "1000000" = 1 USDC */
61
69
  amount: string;
70
+ /** Id of the fee sponsor that will pay the network fees for this allocation. When set, allocation transactions are broadcast as sponsored user operations. */
71
+ feeSponsorId?: string | undefined;
62
72
  } | {
63
73
  /** Wallet id. */
64
74
  walletId: string;
@@ -69,6 +79,8 @@ export type CreateAllocationBody = {
69
79
  provider?: ("M0" | "Yield.xyz") | undefined;
70
80
  /** USDC amount in smallest unit, e.g. "1000000" = 1 USDC */
71
81
  amount: string;
82
+ /** Id of the fee sponsor that will pay the network fees for this allocation. When set, allocation transactions are broadcast as sponsored user operations. */
83
+ feeSponsorId?: string | undefined;
72
84
  } | {
73
85
  /** Wallet id. */
74
86
  walletId: string;
@@ -79,6 +91,8 @@ export type CreateAllocationBody = {
79
91
  provider?: ("M0" | "Yield.xyz") | undefined;
80
92
  /** PYUSD amount in smallest unit, e.g. "1000000" = 1 PYUSD */
81
93
  amount: string;
94
+ /** Id of the fee sponsor that will pay the network fees for this allocation. When set, allocation transactions are broadcast as sponsored user operations. */
95
+ feeSponsorId?: string | undefined;
82
96
  };
83
97
  export type CreateAllocationResponse = {
84
98
  /** Unique identifier for the allocation investment. */
@@ -169,6 +183,8 @@ export type CreateAllocationResponse = {
169
183
  };
170
184
  /** The slippage tolerance for this trade in [basis point](https://en.wikipedia.org/wiki/Basis_point) (BPS). Slippage tolerance defines the maximum price difference you're willing to accept during a trade from the estimated quote, ensuring you still receive at least a minimum number of tokens if the price shifts. One basis point equals one-hundredth of a percentage point, or 0.01%. */
171
185
  slippageBps: number;
186
+ /** Id of the fee sponsor that will pay the network fees for this allocation. When set, allocation transactions are broadcast as sponsored user operations. */
187
+ feeSponsorId?: string | undefined;
172
188
  } | {
173
189
  /** The type of action being performed on the allocation investment: Deposit to add funds or Withdraw to remove funds. */
174
190
  kind: "Deposit" | "Withdraw";
@@ -176,6 +192,8 @@ export type CreateAllocationResponse = {
176
192
  externalId?: string | undefined;
177
193
  /** Underlying token amount in smallest unit, e.g. "1000000" = 1 USDC. Applies to both deposits and withdrawals. */
178
194
  amount: string;
195
+ /** Id of the fee sponsor that will pay the network fees for this allocation. When set, allocation transactions are broadcast as sponsored user operations. */
196
+ feeSponsorId?: string | undefined;
179
197
  }) | ({
180
198
  /** Wallet id. */
181
199
  walletId: string;
@@ -197,6 +215,8 @@ export type CreateAllocationResponse = {
197
215
  };
198
216
  /** The slippage tolerance for this trade in [basis point](https://en.wikipedia.org/wiki/Basis_point) (BPS). Slippage tolerance defines the maximum price difference you're willing to accept during a trade from the estimated quote, ensuring you still receive at least a minimum number of tokens if the price shifts. One basis point equals one-hundredth of a percentage point, or 0.01%. */
199
217
  slippageBps: number;
218
+ /** Id of the fee sponsor that will pay the network fees for this allocation. When set, allocation transactions are broadcast as sponsored user operations. */
219
+ feeSponsorId?: string | undefined;
200
220
  } | {
201
221
  /** Wallet id. */
202
222
  walletId: string;
@@ -207,6 +227,8 @@ export type CreateAllocationResponse = {
207
227
  provider?: ("M0" | "Yield.xyz") | undefined;
208
228
  /** USDS amount in smallest unit, e.g. "1000000000000000000" = 1 USDS */
209
229
  amount: string;
230
+ /** Id of the fee sponsor that will pay the network fees for this allocation. When set, allocation transactions are broadcast as sponsored user operations. */
231
+ feeSponsorId?: string | undefined;
210
232
  } | {
211
233
  /** Wallet id. */
212
234
  walletId: string;
@@ -217,6 +239,8 @@ export type CreateAllocationResponse = {
217
239
  provider?: ("M0" | "Yield.xyz") | undefined;
218
240
  /** USDC amount in smallest unit, e.g. "1000000" = 1 USDC */
219
241
  amount: string;
242
+ /** Id of the fee sponsor that will pay the network fees for this allocation. When set, allocation transactions are broadcast as sponsored user operations. */
243
+ feeSponsorId?: string | undefined;
220
244
  } | {
221
245
  /** Wallet id. */
222
246
  walletId: string;
@@ -227,6 +251,8 @@ export type CreateAllocationResponse = {
227
251
  provider?: ("M0" | "Yield.xyz") | undefined;
228
252
  /** USDT amount in smallest unit, e.g. "1000000" = 1 USDT */
229
253
  amount: string;
254
+ /** Id of the fee sponsor that will pay the network fees for this allocation. When set, allocation transactions are broadcast as sponsored user operations. */
255
+ feeSponsorId?: string | undefined;
230
256
  } | {
231
257
  /** Wallet id. */
232
258
  walletId: string;
@@ -237,6 +263,8 @@ export type CreateAllocationResponse = {
237
263
  provider?: ("M0" | "Yield.xyz") | undefined;
238
264
  /** USDC amount in smallest unit, e.g. "1000000" = 1 USDC */
239
265
  amount: string;
266
+ /** Id of the fee sponsor that will pay the network fees for this allocation. When set, allocation transactions are broadcast as sponsored user operations. */
267
+ feeSponsorId?: string | undefined;
240
268
  } | {
241
269
  /** Wallet id. */
242
270
  walletId: string;
@@ -247,6 +275,8 @@ export type CreateAllocationResponse = {
247
275
  provider?: ("M0" | "Yield.xyz") | undefined;
248
276
  /** USDC amount in smallest unit, e.g. "1000000" = 1 USDC */
249
277
  amount: string;
278
+ /** Id of the fee sponsor that will pay the network fees for this allocation. When set, allocation transactions are broadcast as sponsored user operations. */
279
+ feeSponsorId?: string | undefined;
250
280
  } | {
251
281
  /** Wallet id. */
252
282
  walletId: string;
@@ -257,6 +287,8 @@ export type CreateAllocationResponse = {
257
287
  provider?: ("M0" | "Yield.xyz") | undefined;
258
288
  /** PYUSD amount in smallest unit, e.g. "1000000" = 1 PYUSD */
259
289
  amount: string;
290
+ /** Id of the fee sponsor that will pay the network fees for this allocation. When set, allocation transactions are broadcast as sponsored user operations. */
291
+ feeSponsorId?: string | undefined;
260
292
  });
261
293
  /** The failure reason, if any. Only present when status is Failed. */
262
294
  failureReason?: string | undefined;
@@ -283,6 +315,8 @@ export type CreateAllocationActionBody = {
283
315
  };
284
316
  /** The slippage tolerance for this trade in [basis point](https://en.wikipedia.org/wiki/Basis_point) (BPS). Slippage tolerance defines the maximum price difference you're willing to accept during a trade from the estimated quote, ensuring you still receive at least a minimum number of tokens if the price shifts. One basis point equals one-hundredth of a percentage point, or 0.01%. */
285
317
  slippageBps: number;
318
+ /** Id of the fee sponsor that will pay the network fees for this allocation. When set, allocation transactions are broadcast as sponsored user operations. */
319
+ feeSponsorId?: string | undefined;
286
320
  } | {
287
321
  /** The type of action being performed on the allocation investment: Deposit to add funds or Withdraw to remove funds. */
288
322
  kind: "Deposit" | "Withdraw";
@@ -290,6 +324,8 @@ export type CreateAllocationActionBody = {
290
324
  externalId?: string | undefined;
291
325
  /** Underlying token amount in smallest unit, e.g. "1000000" = 1 USDC. Applies to both deposits and withdrawals. */
292
326
  amount: string;
327
+ /** Id of the fee sponsor that will pay the network fees for this allocation. When set, allocation transactions are broadcast as sponsored user operations. */
328
+ feeSponsorId?: string | undefined;
293
329
  };
294
330
  export type CreateAllocationActionParams = {
295
331
  /** Unique identifier for the allocation investment. */
@@ -384,6 +420,8 @@ export type CreateAllocationActionResponse = {
384
420
  };
385
421
  /** The slippage tolerance for this trade in [basis point](https://en.wikipedia.org/wiki/Basis_point) (BPS). Slippage tolerance defines the maximum price difference you're willing to accept during a trade from the estimated quote, ensuring you still receive at least a minimum number of tokens if the price shifts. One basis point equals one-hundredth of a percentage point, or 0.01%. */
386
422
  slippageBps: number;
423
+ /** Id of the fee sponsor that will pay the network fees for this allocation. When set, allocation transactions are broadcast as sponsored user operations. */
424
+ feeSponsorId?: string | undefined;
387
425
  } | {
388
426
  /** The type of action being performed on the allocation investment: Deposit to add funds or Withdraw to remove funds. */
389
427
  kind: "Deposit" | "Withdraw";
@@ -391,6 +429,8 @@ export type CreateAllocationActionResponse = {
391
429
  externalId?: string | undefined;
392
430
  /** Underlying token amount in smallest unit, e.g. "1000000" = 1 USDC. Applies to both deposits and withdrawals. */
393
431
  amount: string;
432
+ /** Id of the fee sponsor that will pay the network fees for this allocation. When set, allocation transactions are broadcast as sponsored user operations. */
433
+ feeSponsorId?: string | undefined;
394
434
  }) | ({
395
435
  /** Wallet id. */
396
436
  walletId: string;
@@ -412,6 +452,8 @@ export type CreateAllocationActionResponse = {
412
452
  };
413
453
  /** The slippage tolerance for this trade in [basis point](https://en.wikipedia.org/wiki/Basis_point) (BPS). Slippage tolerance defines the maximum price difference you're willing to accept during a trade from the estimated quote, ensuring you still receive at least a minimum number of tokens if the price shifts. One basis point equals one-hundredth of a percentage point, or 0.01%. */
414
454
  slippageBps: number;
455
+ /** Id of the fee sponsor that will pay the network fees for this allocation. When set, allocation transactions are broadcast as sponsored user operations. */
456
+ feeSponsorId?: string | undefined;
415
457
  } | {
416
458
  /** Wallet id. */
417
459
  walletId: string;
@@ -422,6 +464,8 @@ export type CreateAllocationActionResponse = {
422
464
  provider?: ("M0" | "Yield.xyz") | undefined;
423
465
  /** USDS amount in smallest unit, e.g. "1000000000000000000" = 1 USDS */
424
466
  amount: string;
467
+ /** Id of the fee sponsor that will pay the network fees for this allocation. When set, allocation transactions are broadcast as sponsored user operations. */
468
+ feeSponsorId?: string | undefined;
425
469
  } | {
426
470
  /** Wallet id. */
427
471
  walletId: string;
@@ -432,6 +476,8 @@ export type CreateAllocationActionResponse = {
432
476
  provider?: ("M0" | "Yield.xyz") | undefined;
433
477
  /** USDC amount in smallest unit, e.g. "1000000" = 1 USDC */
434
478
  amount: string;
479
+ /** Id of the fee sponsor that will pay the network fees for this allocation. When set, allocation transactions are broadcast as sponsored user operations. */
480
+ feeSponsorId?: string | undefined;
435
481
  } | {
436
482
  /** Wallet id. */
437
483
  walletId: string;
@@ -442,6 +488,8 @@ export type CreateAllocationActionResponse = {
442
488
  provider?: ("M0" | "Yield.xyz") | undefined;
443
489
  /** USDT amount in smallest unit, e.g. "1000000" = 1 USDT */
444
490
  amount: string;
491
+ /** Id of the fee sponsor that will pay the network fees for this allocation. When set, allocation transactions are broadcast as sponsored user operations. */
492
+ feeSponsorId?: string | undefined;
445
493
  } | {
446
494
  /** Wallet id. */
447
495
  walletId: string;
@@ -452,6 +500,8 @@ export type CreateAllocationActionResponse = {
452
500
  provider?: ("M0" | "Yield.xyz") | undefined;
453
501
  /** USDC amount in smallest unit, e.g. "1000000" = 1 USDC */
454
502
  amount: string;
503
+ /** Id of the fee sponsor that will pay the network fees for this allocation. When set, allocation transactions are broadcast as sponsored user operations. */
504
+ feeSponsorId?: string | undefined;
455
505
  } | {
456
506
  /** Wallet id. */
457
507
  walletId: string;
@@ -462,6 +512,8 @@ export type CreateAllocationActionResponse = {
462
512
  provider?: ("M0" | "Yield.xyz") | undefined;
463
513
  /** USDC amount in smallest unit, e.g. "1000000" = 1 USDC */
464
514
  amount: string;
515
+ /** Id of the fee sponsor that will pay the network fees for this allocation. When set, allocation transactions are broadcast as sponsored user operations. */
516
+ feeSponsorId?: string | undefined;
465
517
  } | {
466
518
  /** Wallet id. */
467
519
  walletId: string;
@@ -472,6 +524,8 @@ export type CreateAllocationActionResponse = {
472
524
  provider?: ("M0" | "Yield.xyz") | undefined;
473
525
  /** PYUSD amount in smallest unit, e.g. "1000000" = 1 PYUSD */
474
526
  amount: string;
527
+ /** Id of the fee sponsor that will pay the network fees for this allocation. When set, allocation transactions are broadcast as sponsored user operations. */
528
+ feeSponsorId?: string | undefined;
475
529
  });
476
530
  /** The failure reason, if any. Only present when status is Failed. */
477
531
  failureReason?: string | undefined;
@@ -574,6 +628,8 @@ export type GetAllocationResponse = {
574
628
  };
575
629
  /** The slippage tolerance for this trade in [basis point](https://en.wikipedia.org/wiki/Basis_point) (BPS). Slippage tolerance defines the maximum price difference you're willing to accept during a trade from the estimated quote, ensuring you still receive at least a minimum number of tokens if the price shifts. One basis point equals one-hundredth of a percentage point, or 0.01%. */
576
630
  slippageBps: number;
631
+ /** Id of the fee sponsor that will pay the network fees for this allocation. When set, allocation transactions are broadcast as sponsored user operations. */
632
+ feeSponsorId?: string | undefined;
577
633
  } | {
578
634
  /** The type of action being performed on the allocation investment: Deposit to add funds or Withdraw to remove funds. */
579
635
  kind: "Deposit" | "Withdraw";
@@ -581,6 +637,8 @@ export type GetAllocationResponse = {
581
637
  externalId?: string | undefined;
582
638
  /** Underlying token amount in smallest unit, e.g. "1000000" = 1 USDC. Applies to both deposits and withdrawals. */
583
639
  amount: string;
640
+ /** Id of the fee sponsor that will pay the network fees for this allocation. When set, allocation transactions are broadcast as sponsored user operations. */
641
+ feeSponsorId?: string | undefined;
584
642
  }) | ({
585
643
  /** Wallet id. */
586
644
  walletId: string;
@@ -602,6 +660,8 @@ export type GetAllocationResponse = {
602
660
  };
603
661
  /** The slippage tolerance for this trade in [basis point](https://en.wikipedia.org/wiki/Basis_point) (BPS). Slippage tolerance defines the maximum price difference you're willing to accept during a trade from the estimated quote, ensuring you still receive at least a minimum number of tokens if the price shifts. One basis point equals one-hundredth of a percentage point, or 0.01%. */
604
662
  slippageBps: number;
663
+ /** Id of the fee sponsor that will pay the network fees for this allocation. When set, allocation transactions are broadcast as sponsored user operations. */
664
+ feeSponsorId?: string | undefined;
605
665
  } | {
606
666
  /** Wallet id. */
607
667
  walletId: string;
@@ -612,6 +672,8 @@ export type GetAllocationResponse = {
612
672
  provider?: ("M0" | "Yield.xyz") | undefined;
613
673
  /** USDS amount in smallest unit, e.g. "1000000000000000000" = 1 USDS */
614
674
  amount: string;
675
+ /** Id of the fee sponsor that will pay the network fees for this allocation. When set, allocation transactions are broadcast as sponsored user operations. */
676
+ feeSponsorId?: string | undefined;
615
677
  } | {
616
678
  /** Wallet id. */
617
679
  walletId: string;
@@ -622,6 +684,8 @@ export type GetAllocationResponse = {
622
684
  provider?: ("M0" | "Yield.xyz") | undefined;
623
685
  /** USDC amount in smallest unit, e.g. "1000000" = 1 USDC */
624
686
  amount: string;
687
+ /** Id of the fee sponsor that will pay the network fees for this allocation. When set, allocation transactions are broadcast as sponsored user operations. */
688
+ feeSponsorId?: string | undefined;
625
689
  } | {
626
690
  /** Wallet id. */
627
691
  walletId: string;
@@ -632,6 +696,8 @@ export type GetAllocationResponse = {
632
696
  provider?: ("M0" | "Yield.xyz") | undefined;
633
697
  /** USDT amount in smallest unit, e.g. "1000000" = 1 USDT */
634
698
  amount: string;
699
+ /** Id of the fee sponsor that will pay the network fees for this allocation. When set, allocation transactions are broadcast as sponsored user operations. */
700
+ feeSponsorId?: string | undefined;
635
701
  } | {
636
702
  /** Wallet id. */
637
703
  walletId: string;
@@ -642,6 +708,8 @@ export type GetAllocationResponse = {
642
708
  provider?: ("M0" | "Yield.xyz") | undefined;
643
709
  /** USDC amount in smallest unit, e.g. "1000000" = 1 USDC */
644
710
  amount: string;
711
+ /** Id of the fee sponsor that will pay the network fees for this allocation. When set, allocation transactions are broadcast as sponsored user operations. */
712
+ feeSponsorId?: string | undefined;
645
713
  } | {
646
714
  /** Wallet id. */
647
715
  walletId: string;
@@ -652,6 +720,8 @@ export type GetAllocationResponse = {
652
720
  provider?: ("M0" | "Yield.xyz") | undefined;
653
721
  /** USDC amount in smallest unit, e.g. "1000000" = 1 USDC */
654
722
  amount: string;
723
+ /** Id of the fee sponsor that will pay the network fees for this allocation. When set, allocation transactions are broadcast as sponsored user operations. */
724
+ feeSponsorId?: string | undefined;
655
725
  } | {
656
726
  /** Wallet id. */
657
727
  walletId: string;
@@ -662,6 +732,8 @@ export type GetAllocationResponse = {
662
732
  provider?: ("M0" | "Yield.xyz") | undefined;
663
733
  /** PYUSD amount in smallest unit, e.g. "1000000" = 1 PYUSD */
664
734
  amount: string;
735
+ /** Id of the fee sponsor that will pay the network fees for this allocation. When set, allocation transactions are broadcast as sponsored user operations. */
736
+ feeSponsorId?: string | undefined;
665
737
  });
666
738
  /** The failure reason, if any. Only present when status is Failed. */
667
739
  failureReason?: string | undefined;
@@ -717,6 +789,8 @@ export type ListAllocationActionsResponse = {
717
789
  };
718
790
  /** The slippage tolerance for this trade in [basis point](https://en.wikipedia.org/wiki/Basis_point) (BPS). Slippage tolerance defines the maximum price difference you're willing to accept during a trade from the estimated quote, ensuring you still receive at least a minimum number of tokens if the price shifts. One basis point equals one-hundredth of a percentage point, or 0.01%. */
719
791
  slippageBps: number;
792
+ /** Id of the fee sponsor that will pay the network fees for this allocation. When set, allocation transactions are broadcast as sponsored user operations. */
793
+ feeSponsorId?: string | undefined;
720
794
  } | {
721
795
  /** The type of action being performed on the allocation investment: Deposit to add funds or Withdraw to remove funds. */
722
796
  kind: "Deposit" | "Withdraw";
@@ -724,6 +798,8 @@ export type ListAllocationActionsResponse = {
724
798
  externalId?: string | undefined;
725
799
  /** Underlying token amount in smallest unit, e.g. "1000000" = 1 USDC. Applies to both deposits and withdrawals. */
726
800
  amount: string;
801
+ /** Id of the fee sponsor that will pay the network fees for this allocation. When set, allocation transactions are broadcast as sponsored user operations. */
802
+ feeSponsorId?: string | undefined;
727
803
  }) | ({
728
804
  /** Wallet id. */
729
805
  walletId: string;
@@ -745,6 +821,8 @@ export type ListAllocationActionsResponse = {
745
821
  };
746
822
  /** The slippage tolerance for this trade in [basis point](https://en.wikipedia.org/wiki/Basis_point) (BPS). Slippage tolerance defines the maximum price difference you're willing to accept during a trade from the estimated quote, ensuring you still receive at least a minimum number of tokens if the price shifts. One basis point equals one-hundredth of a percentage point, or 0.01%. */
747
823
  slippageBps: number;
824
+ /** Id of the fee sponsor that will pay the network fees for this allocation. When set, allocation transactions are broadcast as sponsored user operations. */
825
+ feeSponsorId?: string | undefined;
748
826
  } | {
749
827
  /** Wallet id. */
750
828
  walletId: string;
@@ -755,6 +833,8 @@ export type ListAllocationActionsResponse = {
755
833
  provider?: ("M0" | "Yield.xyz") | undefined;
756
834
  /** USDS amount in smallest unit, e.g. "1000000000000000000" = 1 USDS */
757
835
  amount: string;
836
+ /** Id of the fee sponsor that will pay the network fees for this allocation. When set, allocation transactions are broadcast as sponsored user operations. */
837
+ feeSponsorId?: string | undefined;
758
838
  } | {
759
839
  /** Wallet id. */
760
840
  walletId: string;
@@ -765,6 +845,8 @@ export type ListAllocationActionsResponse = {
765
845
  provider?: ("M0" | "Yield.xyz") | undefined;
766
846
  /** USDC amount in smallest unit, e.g. "1000000" = 1 USDC */
767
847
  amount: string;
848
+ /** Id of the fee sponsor that will pay the network fees for this allocation. When set, allocation transactions are broadcast as sponsored user operations. */
849
+ feeSponsorId?: string | undefined;
768
850
  } | {
769
851
  /** Wallet id. */
770
852
  walletId: string;
@@ -775,6 +857,8 @@ export type ListAllocationActionsResponse = {
775
857
  provider?: ("M0" | "Yield.xyz") | undefined;
776
858
  /** USDT amount in smallest unit, e.g. "1000000" = 1 USDT */
777
859
  amount: string;
860
+ /** Id of the fee sponsor that will pay the network fees for this allocation. When set, allocation transactions are broadcast as sponsored user operations. */
861
+ feeSponsorId?: string | undefined;
778
862
  } | {
779
863
  /** Wallet id. */
780
864
  walletId: string;
@@ -785,6 +869,8 @@ export type ListAllocationActionsResponse = {
785
869
  provider?: ("M0" | "Yield.xyz") | undefined;
786
870
  /** USDC amount in smallest unit, e.g. "1000000" = 1 USDC */
787
871
  amount: string;
872
+ /** Id of the fee sponsor that will pay the network fees for this allocation. When set, allocation transactions are broadcast as sponsored user operations. */
873
+ feeSponsorId?: string | undefined;
788
874
  } | {
789
875
  /** Wallet id. */
790
876
  walletId: string;
@@ -795,6 +881,8 @@ export type ListAllocationActionsResponse = {
795
881
  provider?: ("M0" | "Yield.xyz") | undefined;
796
882
  /** USDC amount in smallest unit, e.g. "1000000" = 1 USDC */
797
883
  amount: string;
884
+ /** Id of the fee sponsor that will pay the network fees for this allocation. When set, allocation transactions are broadcast as sponsored user operations. */
885
+ feeSponsorId?: string | undefined;
798
886
  } | {
799
887
  /** Wallet id. */
800
888
  walletId: string;
@@ -805,6 +893,8 @@ export type ListAllocationActionsResponse = {
805
893
  provider?: ("M0" | "Yield.xyz") | undefined;
806
894
  /** PYUSD amount in smallest unit, e.g. "1000000" = 1 PYUSD */
807
895
  amount: string;
896
+ /** Id of the fee sponsor that will pay the network fees for this allocation. When set, allocation transactions are broadcast as sponsored user operations. */
897
+ feeSponsorId?: string | undefined;
808
898
  });
809
899
  /** The failure reason, if any. Only present when status is Failed. */
810
900
  failureReason?: string | undefined;
@@ -3167,7 +3167,9 @@ export type SsoLoginRequest = {
3167
3167
  };
3168
3168
  export type SsoLoginInitBody = {
3169
3169
  /** Organization id. */
3170
- orgId: string;
3170
+ orgId?: string | undefined;
3171
+ /** Tenant id. */
3172
+ tenantId?: string | undefined;
3171
3173
  /** Client Id obtained from the IdP */
3172
3174
  clientId: string;
3173
3175
  /** Redirect URI used for the authentication flow */
@@ -38,7 +38,7 @@ export type CreateCantonValidatorBody = {
38
38
  kind: "Custom";
39
39
  /** Configuration to reach your validator Signing API. We will call the validator External Signing API at the url (and using the credentials) defined below ; for instance `$URL/api/validator/v0/admin/external-party/topology/generate`. See the underlying calls details [here](https://docs.dev.sync.global/app_dev/validator_api/index.html#validator-api-external-signing). */
40
40
  validator: {
41
- /** URL to reach the API at this address. The calls will be originating from our IP addresses (see [Dfns Environments](https://docs.dfns.co/api-reference/environments)) */
41
+ /** URL to reach the API at this address. The calls will be originating from our IP addresses (see [Dfns Environments](https://docs.dfns.co/api-reference/regions)) */
42
42
  url: string;
43
43
  /** How Dfns will authenticate into your validator/ledger. You should have setup authentication already (see details [here](https://docs.dev.sync.global/validator_operator/validator_helm.html#helm-validator-auth)), you can reuse the same Application details. See examples in this endpoint payload examples above. */
44
44
  oauth2: {
@@ -56,7 +56,7 @@ export type CreateCantonValidatorBody = {
56
56
  };
57
57
  /** Configuration to reach your validator Ledger JSON API. We will call endpoints such as `/v2/state/ledger-end`, `/v2/state/active-contracts`, `/v2/parties/participant-id`, `/v2/interactive-submission/prepare`, `/v2/interactive-submission/execute`, `/v2/commands/completions`. See the underlying details [here](https://docs.dev.sync.global/app_dev/ledger_api/index.html). */
58
58
  ledger: {
59
- /** URL to reach the API at this address. The calls will be originating from our IP addresses (see [Dfns Environments](https://docs.dfns.co/api-reference/environments)) */
59
+ /** URL to reach the API at this address. The calls will be originating from our IP addresses (see [Dfns Environments](https://docs.dfns.co/api-reference/regions)) */
60
60
  url: string;
61
61
  /** How Dfns will authenticate into your validator/ledger. You should have setup authentication already (see details [here](https://docs.dev.sync.global/validator_operator/validator_helm.html#helm-validator-auth)), you can reuse the same Application details. See examples in this endpoint payload examples above. */
62
62
  oauth2: {
@@ -132,7 +132,7 @@ export type GetCantonValidatorResponse = {
132
132
  };
133
133
  export type GetCantonValidatorRequest = GetCantonValidatorParams;
134
134
  export type GetFeesQuery = {
135
- network: "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinTestnet4" | "Litecoin" | "LitecoinTestnet" | "Dogecoin" | "DogecoinTestnet" | "Adi" | "AdiTestnet" | "AdiTestnetAb" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "ArcTestnet" | "Areum" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "BesuTestnet" | "BesuTestnet2" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Ethereum" | "EthereumClassic" | "EthereumClassicMordor" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "FlowEvm" | "FlowEvmTestnet" | "Ink" | "InkSepolia" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Plasma" | "PlasmaTestnet" | "Plume" | "PlumeSepolia" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia" | "Rayls" | "RaylsTestnet" | "Robinhood" | "RobinhoodSepolia" | "Sonic" | "SonicTestnet" | "Tempo" | "TempoAndantino" | "TempoModerato" | "Tsc" | "TscTestnet1" | "Xdc" | "XdcApothem" | "XLayer" | "XLayerSepolia" | "Solana" | "SolanaDevnet";
135
+ network: "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinTestnet4" | "Litecoin" | "LitecoinTestnet" | "Dogecoin" | "DogecoinTestnet" | "Adi" | "AdiTestnet" | "AdiTestnetAb" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "ArcTestnet" | "Areum" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "BesuTestnet" | "BesuTestnet2" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Ethereum" | "EthereumClassic" | "EthereumClassicMordor" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "FlowEvm" | "FlowEvmTestnet" | "Ink" | "InkSepolia" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Plasma" | "PlasmaTestnet" | "Plume" | "PlumeSepolia" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia" | "Rayls" | "RaylsTestnet" | "Robinhood" | "RobinhoodSepolia" | "SeiPacific1" | "SeiAtlantic2" | "Sonic" | "SonicTestnet" | "Tempo" | "TempoAndantino" | "TempoModerato" | "Tsc" | "TscTestnet1" | "Xdc" | "XdcApothem" | "XLayer" | "XLayerSepolia" | "Solana" | "SolanaDevnet";
136
136
  };
137
137
  export type GetFeesResponse = {
138
138
  kind: "Bitcoin";
@@ -158,7 +158,7 @@ export type GetFeesResponse = {
158
158
  };
159
159
  } | {
160
160
  kind: "Eip1559";
161
- network: "Adi" | "AdiTestnet" | "AdiTestnetAb" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "ArcTestnet" | "Areum" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "BesuTestnet" | "BesuTestnet2" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Ethereum" | "EthereumClassic" | "EthereumClassicMordor" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "FlowEvm" | "FlowEvmTestnet" | "Ink" | "InkSepolia" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Plasma" | "PlasmaTestnet" | "Plume" | "PlumeSepolia" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia" | "Rayls" | "RaylsTestnet" | "Robinhood" | "RobinhoodSepolia" | "Sonic" | "SonicTestnet" | "Tempo" | "TempoAndantino" | "TempoModerato" | "Tsc" | "TscTestnet1" | "Xdc" | "XdcApothem" | "XLayer" | "XLayerSepolia";
161
+ network: "Adi" | "AdiTestnet" | "AdiTestnetAb" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "ArcTestnet" | "Areum" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "BesuTestnet" | "BesuTestnet2" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Ethereum" | "EthereumClassic" | "EthereumClassicMordor" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "FlowEvm" | "FlowEvmTestnet" | "Ink" | "InkSepolia" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Plasma" | "PlasmaTestnet" | "Plume" | "PlumeSepolia" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia" | "Rayls" | "RaylsTestnet" | "Robinhood" | "RobinhoodSepolia" | "SeiPacific1" | "SeiAtlantic2" | "Sonic" | "SonicTestnet" | "Tempo" | "TempoAndantino" | "TempoModerato" | "Tsc" | "TscTestnet1" | "Xdc" | "XdcApothem" | "XLayer" | "XLayerSepolia";
162
162
  blockNumber: number;
163
163
  slow: {
164
164
  /** Maximum priority fee (tip) per unit of gas, denominated in wei (the lowest denomination). */
@@ -235,7 +235,7 @@ export type UpdateCantonValidatorBody = {
235
235
  /** Nickname for this validator. */
236
236
  name?: string | undefined;
237
237
  validator?: {
238
- /** URL to reach the API at this address. The calls will be originating from our IP addresses (see [Dfns Environments](https://docs.dfns.co/api-reference/environments)) */
238
+ /** URL to reach the API at this address. The calls will be originating from our IP addresses (see [Dfns Environments](https://docs.dfns.co/api-reference/regions)) */
239
239
  url: string;
240
240
  /** How Dfns will authenticate into your validator/ledger. You should have setup authentication already (see details [here](https://docs.dev.sync.global/validator_operator/validator_helm.html#helm-validator-auth)), you can reuse the same Application details. See examples in this endpoint payload examples above. */
241
241
  oauth2: {
@@ -252,7 +252,7 @@ export type UpdateCantonValidatorBody = {
252
252
  };
253
253
  } | undefined;
254
254
  ledger?: {
255
- /** URL to reach the API at this address. The calls will be originating from our IP addresses (see [Dfns Environments](https://docs.dfns.co/api-reference/environments)) */
255
+ /** URL to reach the API at this address. The calls will be originating from our IP addresses (see [Dfns Environments](https://docs.dfns.co/api-reference/regions)) */
256
256
  url: string;
257
257
  /** How Dfns will authenticate into your validator/ledger. You should have setup authentication already (see details [here](https://docs.dev.sync.global/validator_operator/validator_helm.html#helm-validator-auth)), you can reuse the same Application details. See examples in this endpoint payload examples above. */
258
258
  oauth2: {
@@ -0,0 +1,8 @@
1
+ import { DfnsApiClientOptions } from '../../types/generic';
2
+ import * as T from './types';
3
+ export declare class PayinsClient {
4
+ private apiOptions;
5
+ constructor(apiOptions: DfnsApiClientOptions);
6
+ createPayinRecipient(request: T.CreatePayinRecipientRequest): Promise<T.CreatePayinRecipientResponse>;
7
+ getPayinRecipient(request?: T.GetPayinRecipientRequest): Promise<T.GetPayinRecipientResponse>;
8
+ }
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ /* eslint @typescript-eslint/no-unused-vars: 0 */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.PayinsClient = void 0;
5
+ const fetch_1 = require("../../utils/fetch");
6
+ const userActionFetch_1 = require("../../utils/userActionFetch");
7
+ const url_1 = require("../../utils/url");
8
+ class PayinsClient {
9
+ constructor(apiOptions) {
10
+ this.apiOptions = apiOptions;
11
+ }
12
+ async createPayinRecipient(request) {
13
+ const path = (0, url_1.buildPathAndQuery)('/payins/recipients', {
14
+ path: request ?? {},
15
+ query: {},
16
+ });
17
+ const response = await (0, userActionFetch_1.userActionFetch)(path, {
18
+ method: 'POST',
19
+ body: request.body,
20
+ apiOptions: this.apiOptions,
21
+ });
22
+ return response.json();
23
+ }
24
+ async getPayinRecipient(request) {
25
+ const path = (0, url_1.buildPathAndQuery)('/payins/recipients', {
26
+ path: request ?? {},
27
+ query: request?.query ?? {},
28
+ });
29
+ const response = await (0, fetch_1.simpleFetch)(path, {
30
+ method: 'GET',
31
+ apiOptions: this.apiOptions,
32
+ });
33
+ return response.json();
34
+ }
35
+ }
36
+ exports.PayinsClient = PayinsClient;
@@ -0,0 +1,10 @@
1
+ import { SignUserActionChallengeRequest, UserActionChallengeResponse } from '../../baseAuthApi';
2
+ import { DfnsDelegatedApiClientOptions } from '../../dfnsDelegatedApiClient';
3
+ import * as T from './types';
4
+ export declare class DelegatedPayinsClient {
5
+ private apiOptions;
6
+ constructor(apiOptions: DfnsDelegatedApiClientOptions);
7
+ createPayinRecipientInit(request: T.CreatePayinRecipientRequest): Promise<UserActionChallengeResponse>;
8
+ createPayinRecipientComplete(request: T.CreatePayinRecipientRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.CreatePayinRecipientResponse>;
9
+ getPayinRecipient(request?: T.GetPayinRecipientRequest): Promise<T.GetPayinRecipientResponse>;
10
+ }
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DelegatedPayinsClient = void 0;
4
+ const baseAuthApi_1 = require("../../baseAuthApi");
5
+ const fetch_1 = require("../../utils/fetch");
6
+ const url_1 = require("../../utils/url");
7
+ class DelegatedPayinsClient {
8
+ constructor(apiOptions) {
9
+ this.apiOptions = apiOptions;
10
+ }
11
+ async createPayinRecipientInit(request) {
12
+ const path = (0, url_1.buildPathAndQuery)('/payins/recipients', {
13
+ path: request ?? {},
14
+ query: {},
15
+ });
16
+ const challenge = await baseAuthApi_1.BaseAuthApi.createUserActionChallenge({
17
+ userActionHttpMethod: 'POST',
18
+ userActionHttpPath: path,
19
+ userActionPayload: JSON.stringify(request.body),
20
+ userActionServerKind: 'Api',
21
+ }, this.apiOptions);
22
+ return challenge;
23
+ }
24
+ async createPayinRecipientComplete(request, signedChallenge) {
25
+ const path = (0, url_1.buildPathAndQuery)('/payins/recipients', {
26
+ path: request ?? {},
27
+ query: {},
28
+ });
29
+ const { userAction } = await baseAuthApi_1.BaseAuthApi.signUserActionChallenge(signedChallenge, this.apiOptions);
30
+ const response = await (0, fetch_1.simpleFetch)(path, {
31
+ method: 'POST',
32
+ body: request.body,
33
+ headers: { 'x-dfns-useraction': userAction },
34
+ apiOptions: this.apiOptions,
35
+ });
36
+ return response.json();
37
+ }
38
+ async getPayinRecipient(request) {
39
+ const path = (0, url_1.buildPathAndQuery)('/payins/recipients', {
40
+ path: request ?? {},
41
+ query: request?.query ?? {},
42
+ });
43
+ const response = await (0, fetch_1.simpleFetch)(path, {
44
+ method: 'GET',
45
+ apiOptions: this.apiOptions,
46
+ });
47
+ return response.json();
48
+ }
49
+ }
50
+ exports.DelegatedPayinsClient = DelegatedPayinsClient;
@@ -0,0 +1,3 @@
1
+ export * from './types';
2
+ export * from './client';
3
+ export * from './delegatedClient';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
18
+ __exportStar(require("./client"), exports);
19
+ __exportStar(require("./delegatedClient"), exports);