@dfns/sdk 0.7.12-rc.0 → 0.7.12-rc.1
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.
|
@@ -1895,6 +1895,8 @@ export type SSOLoginBody = {
|
|
|
1895
1895
|
orgId: string;
|
|
1896
1896
|
/** Authorization code obtained from the IdP */
|
|
1897
1897
|
code: string;
|
|
1898
|
+
/** Redirect URI used in the initial authorization request */
|
|
1899
|
+
redirectUri: string;
|
|
1898
1900
|
};
|
|
1899
1901
|
export type SSOLoginResponse = {
|
|
1900
1902
|
token: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type CreateStakeBody = {
|
|
1
|
+
export type CreateStakeBody = ({
|
|
2
2
|
protocol: "Babylon";
|
|
3
3
|
walletId: string;
|
|
4
4
|
provider: "Figment";
|
|
@@ -15,6 +15,8 @@ export type CreateStakeBody = {
|
|
|
15
15
|
validator: string;
|
|
16
16
|
amount: string;
|
|
17
17
|
lockedIotas?: string[] | undefined;
|
|
18
|
+
}) & {
|
|
19
|
+
externalId?: string | undefined;
|
|
18
20
|
};
|
|
19
21
|
export type CreateStakeResponse = ({
|
|
20
22
|
id: string;
|
|
@@ -25,7 +27,7 @@ export type CreateStakeResponse = ({
|
|
|
25
27
|
userId: string;
|
|
26
28
|
tokenId?: string | undefined;
|
|
27
29
|
};
|
|
28
|
-
requestBody: {
|
|
30
|
+
requestBody: ({
|
|
29
31
|
protocol: "Babylon";
|
|
30
32
|
walletId: string;
|
|
31
33
|
provider: "Figment";
|
|
@@ -42,6 +44,8 @@ export type CreateStakeResponse = ({
|
|
|
42
44
|
validator: string;
|
|
43
45
|
amount: string;
|
|
44
46
|
lockedIotas?: string[] | undefined;
|
|
47
|
+
}) & {
|
|
48
|
+
externalId?: string | undefined;
|
|
45
49
|
};
|
|
46
50
|
dateCreated: string;
|
|
47
51
|
protocol: "Babylon";
|
|
@@ -62,7 +66,7 @@ export type CreateStakeResponse = ({
|
|
|
62
66
|
userId: string;
|
|
63
67
|
tokenId?: string | undefined;
|
|
64
68
|
};
|
|
65
|
-
requestBody: {
|
|
69
|
+
requestBody: ({
|
|
66
70
|
protocol: "Babylon";
|
|
67
71
|
walletId: string;
|
|
68
72
|
provider: "Figment";
|
|
@@ -79,6 +83,8 @@ export type CreateStakeResponse = ({
|
|
|
79
83
|
validator: string;
|
|
80
84
|
amount: string;
|
|
81
85
|
lockedIotas?: string[] | undefined;
|
|
86
|
+
}) & {
|
|
87
|
+
externalId?: string | undefined;
|
|
82
88
|
};
|
|
83
89
|
dateCreated: string;
|
|
84
90
|
protocol: "Iota";
|
|
@@ -101,7 +107,7 @@ export type CreateStakeResponse = ({
|
|
|
101
107
|
userId: string;
|
|
102
108
|
tokenId?: string | undefined;
|
|
103
109
|
};
|
|
104
|
-
requestBody: {
|
|
110
|
+
requestBody: ({
|
|
105
111
|
protocol: "Babylon";
|
|
106
112
|
walletId: string;
|
|
107
113
|
provider: "Figment";
|
|
@@ -118,6 +124,8 @@ export type CreateStakeResponse = ({
|
|
|
118
124
|
validator: string;
|
|
119
125
|
amount: string;
|
|
120
126
|
lockedIotas?: string[] | undefined;
|
|
127
|
+
}) & {
|
|
128
|
+
externalId?: string | undefined;
|
|
121
129
|
};
|
|
122
130
|
dateCreated: string;
|
|
123
131
|
protocol: "Ethereum";
|
|
@@ -139,7 +147,7 @@ export type CreateStakeResponse = ({
|
|
|
139
147
|
userId: string;
|
|
140
148
|
tokenId?: string | undefined;
|
|
141
149
|
};
|
|
142
|
-
requestBody: ({
|
|
150
|
+
requestBody: (({
|
|
143
151
|
protocol: "Babylon";
|
|
144
152
|
walletId: string;
|
|
145
153
|
provider: "Figment";
|
|
@@ -156,7 +164,9 @@ export type CreateStakeResponse = ({
|
|
|
156
164
|
validator: string;
|
|
157
165
|
amount: string;
|
|
158
166
|
lockedIotas?: string[] | undefined;
|
|
159
|
-
})
|
|
167
|
+
}) & {
|
|
168
|
+
externalId?: string | undefined;
|
|
169
|
+
}) | ((({
|
|
160
170
|
protocol: "Iota";
|
|
161
171
|
kind: "Withdraw";
|
|
162
172
|
amount: string;
|
|
@@ -174,6 +184,8 @@ export type CreateStakeResponse = ({
|
|
|
174
184
|
}) | {
|
|
175
185
|
protocol: "Ethereum";
|
|
176
186
|
kind: "Withdraw";
|
|
187
|
+
}) & {
|
|
188
|
+
externalId?: string | undefined;
|
|
177
189
|
});
|
|
178
190
|
dateCreated: string;
|
|
179
191
|
}[];
|
|
@@ -181,7 +193,7 @@ export type CreateStakeResponse = ({
|
|
|
181
193
|
export type CreateStakeRequest = {
|
|
182
194
|
body: CreateStakeBody;
|
|
183
195
|
};
|
|
184
|
-
export type CreateStakeActionBody = ({
|
|
196
|
+
export type CreateStakeActionBody = (({
|
|
185
197
|
protocol: "Iota";
|
|
186
198
|
kind: "Withdraw";
|
|
187
199
|
amount: string;
|
|
@@ -199,6 +211,8 @@ export type CreateStakeActionBody = ({
|
|
|
199
211
|
}) | {
|
|
200
212
|
protocol: "Ethereum";
|
|
201
213
|
kind: "Withdraw";
|
|
214
|
+
}) & {
|
|
215
|
+
externalId?: string | undefined;
|
|
202
216
|
};
|
|
203
217
|
export type CreateStakeActionParams = {
|
|
204
218
|
stakeId: string;
|
|
@@ -212,7 +226,7 @@ export type CreateStakeActionResponse = ({
|
|
|
212
226
|
userId: string;
|
|
213
227
|
tokenId?: string | undefined;
|
|
214
228
|
};
|
|
215
|
-
requestBody: {
|
|
229
|
+
requestBody: ({
|
|
216
230
|
protocol: "Babylon";
|
|
217
231
|
walletId: string;
|
|
218
232
|
provider: "Figment";
|
|
@@ -229,6 +243,8 @@ export type CreateStakeActionResponse = ({
|
|
|
229
243
|
validator: string;
|
|
230
244
|
amount: string;
|
|
231
245
|
lockedIotas?: string[] | undefined;
|
|
246
|
+
}) & {
|
|
247
|
+
externalId?: string | undefined;
|
|
232
248
|
};
|
|
233
249
|
dateCreated: string;
|
|
234
250
|
protocol: "Babylon";
|
|
@@ -249,7 +265,7 @@ export type CreateStakeActionResponse = ({
|
|
|
249
265
|
userId: string;
|
|
250
266
|
tokenId?: string | undefined;
|
|
251
267
|
};
|
|
252
|
-
requestBody: {
|
|
268
|
+
requestBody: ({
|
|
253
269
|
protocol: "Babylon";
|
|
254
270
|
walletId: string;
|
|
255
271
|
provider: "Figment";
|
|
@@ -266,6 +282,8 @@ export type CreateStakeActionResponse = ({
|
|
|
266
282
|
validator: string;
|
|
267
283
|
amount: string;
|
|
268
284
|
lockedIotas?: string[] | undefined;
|
|
285
|
+
}) & {
|
|
286
|
+
externalId?: string | undefined;
|
|
269
287
|
};
|
|
270
288
|
dateCreated: string;
|
|
271
289
|
protocol: "Iota";
|
|
@@ -288,7 +306,7 @@ export type CreateStakeActionResponse = ({
|
|
|
288
306
|
userId: string;
|
|
289
307
|
tokenId?: string | undefined;
|
|
290
308
|
};
|
|
291
|
-
requestBody: {
|
|
309
|
+
requestBody: ({
|
|
292
310
|
protocol: "Babylon";
|
|
293
311
|
walletId: string;
|
|
294
312
|
provider: "Figment";
|
|
@@ -305,6 +323,8 @@ export type CreateStakeActionResponse = ({
|
|
|
305
323
|
validator: string;
|
|
306
324
|
amount: string;
|
|
307
325
|
lockedIotas?: string[] | undefined;
|
|
326
|
+
}) & {
|
|
327
|
+
externalId?: string | undefined;
|
|
308
328
|
};
|
|
309
329
|
dateCreated: string;
|
|
310
330
|
protocol: "Ethereum";
|
|
@@ -326,7 +346,7 @@ export type CreateStakeActionResponse = ({
|
|
|
326
346
|
userId: string;
|
|
327
347
|
tokenId?: string | undefined;
|
|
328
348
|
};
|
|
329
|
-
requestBody: ({
|
|
349
|
+
requestBody: (({
|
|
330
350
|
protocol: "Babylon";
|
|
331
351
|
walletId: string;
|
|
332
352
|
provider: "Figment";
|
|
@@ -343,7 +363,9 @@ export type CreateStakeActionResponse = ({
|
|
|
343
363
|
validator: string;
|
|
344
364
|
amount: string;
|
|
345
365
|
lockedIotas?: string[] | undefined;
|
|
346
|
-
})
|
|
366
|
+
}) & {
|
|
367
|
+
externalId?: string | undefined;
|
|
368
|
+
}) | ((({
|
|
347
369
|
protocol: "Iota";
|
|
348
370
|
kind: "Withdraw";
|
|
349
371
|
amount: string;
|
|
@@ -361,6 +383,8 @@ export type CreateStakeActionResponse = ({
|
|
|
361
383
|
}) | {
|
|
362
384
|
protocol: "Ethereum";
|
|
363
385
|
kind: "Withdraw";
|
|
386
|
+
}) & {
|
|
387
|
+
externalId?: string | undefined;
|
|
364
388
|
});
|
|
365
389
|
dateCreated: string;
|
|
366
390
|
}[];
|
|
@@ -392,7 +416,7 @@ export type GetStakesResponse = ({
|
|
|
392
416
|
userId: string;
|
|
393
417
|
tokenId?: string | undefined;
|
|
394
418
|
};
|
|
395
|
-
requestBody: {
|
|
419
|
+
requestBody: ({
|
|
396
420
|
protocol: "Babylon";
|
|
397
421
|
walletId: string;
|
|
398
422
|
provider: "Figment";
|
|
@@ -409,6 +433,8 @@ export type GetStakesResponse = ({
|
|
|
409
433
|
validator: string;
|
|
410
434
|
amount: string;
|
|
411
435
|
lockedIotas?: string[] | undefined;
|
|
436
|
+
}) & {
|
|
437
|
+
externalId?: string | undefined;
|
|
412
438
|
};
|
|
413
439
|
dateCreated: string;
|
|
414
440
|
protocol: "Babylon";
|
|
@@ -429,7 +455,7 @@ export type GetStakesResponse = ({
|
|
|
429
455
|
userId: string;
|
|
430
456
|
tokenId?: string | undefined;
|
|
431
457
|
};
|
|
432
|
-
requestBody: {
|
|
458
|
+
requestBody: ({
|
|
433
459
|
protocol: "Babylon";
|
|
434
460
|
walletId: string;
|
|
435
461
|
provider: "Figment";
|
|
@@ -446,6 +472,8 @@ export type GetStakesResponse = ({
|
|
|
446
472
|
validator: string;
|
|
447
473
|
amount: string;
|
|
448
474
|
lockedIotas?: string[] | undefined;
|
|
475
|
+
}) & {
|
|
476
|
+
externalId?: string | undefined;
|
|
449
477
|
};
|
|
450
478
|
dateCreated: string;
|
|
451
479
|
protocol: "Iota";
|
|
@@ -468,7 +496,7 @@ export type GetStakesResponse = ({
|
|
|
468
496
|
userId: string;
|
|
469
497
|
tokenId?: string | undefined;
|
|
470
498
|
};
|
|
471
|
-
requestBody: {
|
|
499
|
+
requestBody: ({
|
|
472
500
|
protocol: "Babylon";
|
|
473
501
|
walletId: string;
|
|
474
502
|
provider: "Figment";
|
|
@@ -485,6 +513,8 @@ export type GetStakesResponse = ({
|
|
|
485
513
|
validator: string;
|
|
486
514
|
amount: string;
|
|
487
515
|
lockedIotas?: string[] | undefined;
|
|
516
|
+
}) & {
|
|
517
|
+
externalId?: string | undefined;
|
|
488
518
|
};
|
|
489
519
|
dateCreated: string;
|
|
490
520
|
protocol: "Ethereum";
|
|
@@ -506,7 +536,7 @@ export type GetStakesResponse = ({
|
|
|
506
536
|
userId: string;
|
|
507
537
|
tokenId?: string | undefined;
|
|
508
538
|
};
|
|
509
|
-
requestBody: ({
|
|
539
|
+
requestBody: (({
|
|
510
540
|
protocol: "Babylon";
|
|
511
541
|
walletId: string;
|
|
512
542
|
provider: "Figment";
|
|
@@ -523,7 +553,9 @@ export type GetStakesResponse = ({
|
|
|
523
553
|
validator: string;
|
|
524
554
|
amount: string;
|
|
525
555
|
lockedIotas?: string[] | undefined;
|
|
526
|
-
})
|
|
556
|
+
}) & {
|
|
557
|
+
externalId?: string | undefined;
|
|
558
|
+
}) | ((({
|
|
527
559
|
protocol: "Iota";
|
|
528
560
|
kind: "Withdraw";
|
|
529
561
|
amount: string;
|
|
@@ -541,6 +573,8 @@ export type GetStakesResponse = ({
|
|
|
541
573
|
}) | {
|
|
542
574
|
protocol: "Ethereum";
|
|
543
575
|
kind: "Withdraw";
|
|
576
|
+
}) & {
|
|
577
|
+
externalId?: string | undefined;
|
|
544
578
|
});
|
|
545
579
|
dateCreated: string;
|
|
546
580
|
}[];
|
|
@@ -567,7 +601,7 @@ export type ListStakeActionsResponse = {
|
|
|
567
601
|
userId: string;
|
|
568
602
|
tokenId?: string | undefined;
|
|
569
603
|
};
|
|
570
|
-
requestBody: ({
|
|
604
|
+
requestBody: (({
|
|
571
605
|
protocol: "Babylon";
|
|
572
606
|
walletId: string;
|
|
573
607
|
provider: "Figment";
|
|
@@ -584,7 +618,9 @@ export type ListStakeActionsResponse = {
|
|
|
584
618
|
validator: string;
|
|
585
619
|
amount: string;
|
|
586
620
|
lockedIotas?: string[] | undefined;
|
|
587
|
-
})
|
|
621
|
+
}) & {
|
|
622
|
+
externalId?: string | undefined;
|
|
623
|
+
}) | ((({
|
|
588
624
|
protocol: "Iota";
|
|
589
625
|
kind: "Withdraw";
|
|
590
626
|
amount: string;
|
|
@@ -602,6 +638,8 @@ export type ListStakeActionsResponse = {
|
|
|
602
638
|
}) | {
|
|
603
639
|
protocol: "Ethereum";
|
|
604
640
|
kind: "Withdraw";
|
|
641
|
+
}) & {
|
|
642
|
+
externalId?: string | undefined;
|
|
605
643
|
});
|
|
606
644
|
dateCreated: string;
|
|
607
645
|
}[];
|
|
@@ -624,7 +662,7 @@ export type ListStakesResponse = {
|
|
|
624
662
|
userId: string;
|
|
625
663
|
tokenId?: string | undefined;
|
|
626
664
|
};
|
|
627
|
-
requestBody: {
|
|
665
|
+
requestBody: ({
|
|
628
666
|
protocol: "Babylon";
|
|
629
667
|
walletId: string;
|
|
630
668
|
provider: "Figment";
|
|
@@ -641,6 +679,8 @@ export type ListStakesResponse = {
|
|
|
641
679
|
validator: string;
|
|
642
680
|
amount: string;
|
|
643
681
|
lockedIotas?: string[] | undefined;
|
|
682
|
+
}) & {
|
|
683
|
+
externalId?: string | undefined;
|
|
644
684
|
};
|
|
645
685
|
dateCreated: string;
|
|
646
686
|
protocol: "Babylon";
|
|
@@ -661,7 +701,7 @@ export type ListStakesResponse = {
|
|
|
661
701
|
userId: string;
|
|
662
702
|
tokenId?: string | undefined;
|
|
663
703
|
};
|
|
664
|
-
requestBody: {
|
|
704
|
+
requestBody: ({
|
|
665
705
|
protocol: "Babylon";
|
|
666
706
|
walletId: string;
|
|
667
707
|
provider: "Figment";
|
|
@@ -678,6 +718,8 @@ export type ListStakesResponse = {
|
|
|
678
718
|
validator: string;
|
|
679
719
|
amount: string;
|
|
680
720
|
lockedIotas?: string[] | undefined;
|
|
721
|
+
}) & {
|
|
722
|
+
externalId?: string | undefined;
|
|
681
723
|
};
|
|
682
724
|
dateCreated: string;
|
|
683
725
|
protocol: "Iota";
|
|
@@ -700,7 +742,7 @@ export type ListStakesResponse = {
|
|
|
700
742
|
userId: string;
|
|
701
743
|
tokenId?: string | undefined;
|
|
702
744
|
};
|
|
703
|
-
requestBody: {
|
|
745
|
+
requestBody: ({
|
|
704
746
|
protocol: "Babylon";
|
|
705
747
|
walletId: string;
|
|
706
748
|
provider: "Figment";
|
|
@@ -717,6 +759,8 @@ export type ListStakesResponse = {
|
|
|
717
759
|
validator: string;
|
|
718
760
|
amount: string;
|
|
719
761
|
lockedIotas?: string[] | undefined;
|
|
762
|
+
}) & {
|
|
763
|
+
externalId?: string | undefined;
|
|
720
764
|
};
|
|
721
765
|
dateCreated: string;
|
|
722
766
|
protocol: "Ethereum";
|