@dfns/sdk 0.6.12-rc.1 → 0.7.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/baseAuthApi.d.ts +1 -8
- package/dfnsApiClient.d.ts +1 -1
- package/dfnsAuthenticator.d.ts +2 -2
- package/dfnsDelegatedApiClient.d.ts +1 -1
- package/generated/auth/client.d.ts +0 -5
- package/generated/auth/client.js +0 -60
- package/generated/auth/delegatedClient.d.ts +0 -10
- package/generated/auth/delegatedClient.js +0 -135
- package/generated/auth/types.d.ts +10 -220
- package/generated/exchanges/types.d.ts +1 -3
- package/generated/keys/types.d.ts +0 -3
- package/generated/permissions/types.d.ts +2 -2
- package/generated/policies/types.d.ts +630 -21
- package/generated/staking/types.d.ts +5 -21
- package/generated/wallets/types.d.ts +597 -10
- package/package.json +2 -3
- package/types/generic.d.ts +4 -4
- package/utils/authToken.d.ts +5 -0
- package/utils/authToken.js +20 -0
- package/utils/fetch.js +5 -10
- package/utils/index.d.ts +0 -1
- package/utils/index.js +0 -1
- package/utils/nonce.d.ts +0 -1
- package/utils/nonce.js +0 -12
|
@@ -24,7 +24,6 @@ export type CreateStakeResponse = ({
|
|
|
24
24
|
requester: {
|
|
25
25
|
userId: string;
|
|
26
26
|
tokenId?: string | undefined;
|
|
27
|
-
appId?: string | undefined;
|
|
28
27
|
};
|
|
29
28
|
requestBody: {
|
|
30
29
|
protocol: "Babylon";
|
|
@@ -62,7 +61,6 @@ export type CreateStakeResponse = ({
|
|
|
62
61
|
requester: {
|
|
63
62
|
userId: string;
|
|
64
63
|
tokenId?: string | undefined;
|
|
65
|
-
appId?: string | undefined;
|
|
66
64
|
};
|
|
67
65
|
requestBody: {
|
|
68
66
|
protocol: "Babylon";
|
|
@@ -102,7 +100,6 @@ export type CreateStakeResponse = ({
|
|
|
102
100
|
requester: {
|
|
103
101
|
userId: string;
|
|
104
102
|
tokenId?: string | undefined;
|
|
105
|
-
appId?: string | undefined;
|
|
106
103
|
};
|
|
107
104
|
requestBody: {
|
|
108
105
|
protocol: "Babylon";
|
|
@@ -141,7 +138,6 @@ export type CreateStakeResponse = ({
|
|
|
141
138
|
requester: {
|
|
142
139
|
userId: string;
|
|
143
140
|
tokenId?: string | undefined;
|
|
144
|
-
appId?: string | undefined;
|
|
145
141
|
};
|
|
146
142
|
requestBody: ({
|
|
147
143
|
protocol: "Babylon";
|
|
@@ -168,7 +164,7 @@ export type CreateStakeResponse = ({
|
|
|
168
164
|
protocol: "Iota";
|
|
169
165
|
kind: "Deposit";
|
|
170
166
|
amount: string;
|
|
171
|
-
lockedIotas
|
|
167
|
+
lockedIotas?: string[] | undefined;
|
|
172
168
|
}) | ({
|
|
173
169
|
protocol: "Babylon";
|
|
174
170
|
kind: "Unbond";
|
|
@@ -193,7 +189,7 @@ export type CreateStakeActionBody = ({
|
|
|
193
189
|
protocol: "Iota";
|
|
194
190
|
kind: "Deposit";
|
|
195
191
|
amount: string;
|
|
196
|
-
lockedIotas
|
|
192
|
+
lockedIotas?: string[] | undefined;
|
|
197
193
|
}) | ({
|
|
198
194
|
protocol: "Babylon";
|
|
199
195
|
kind: "Unbond";
|
|
@@ -215,7 +211,6 @@ export type CreateStakeActionResponse = ({
|
|
|
215
211
|
requester: {
|
|
216
212
|
userId: string;
|
|
217
213
|
tokenId?: string | undefined;
|
|
218
|
-
appId?: string | undefined;
|
|
219
214
|
};
|
|
220
215
|
requestBody: {
|
|
221
216
|
protocol: "Babylon";
|
|
@@ -253,7 +248,6 @@ export type CreateStakeActionResponse = ({
|
|
|
253
248
|
requester: {
|
|
254
249
|
userId: string;
|
|
255
250
|
tokenId?: string | undefined;
|
|
256
|
-
appId?: string | undefined;
|
|
257
251
|
};
|
|
258
252
|
requestBody: {
|
|
259
253
|
protocol: "Babylon";
|
|
@@ -293,7 +287,6 @@ export type CreateStakeActionResponse = ({
|
|
|
293
287
|
requester: {
|
|
294
288
|
userId: string;
|
|
295
289
|
tokenId?: string | undefined;
|
|
296
|
-
appId?: string | undefined;
|
|
297
290
|
};
|
|
298
291
|
requestBody: {
|
|
299
292
|
protocol: "Babylon";
|
|
@@ -332,7 +325,6 @@ export type CreateStakeActionResponse = ({
|
|
|
332
325
|
requester: {
|
|
333
326
|
userId: string;
|
|
334
327
|
tokenId?: string | undefined;
|
|
335
|
-
appId?: string | undefined;
|
|
336
328
|
};
|
|
337
329
|
requestBody: ({
|
|
338
330
|
protocol: "Babylon";
|
|
@@ -359,7 +351,7 @@ export type CreateStakeActionResponse = ({
|
|
|
359
351
|
protocol: "Iota";
|
|
360
352
|
kind: "Deposit";
|
|
361
353
|
amount: string;
|
|
362
|
-
lockedIotas
|
|
354
|
+
lockedIotas?: string[] | undefined;
|
|
363
355
|
}) | ({
|
|
364
356
|
protocol: "Babylon";
|
|
365
357
|
kind: "Unbond";
|
|
@@ -399,7 +391,6 @@ export type GetStakesResponse = ({
|
|
|
399
391
|
requester: {
|
|
400
392
|
userId: string;
|
|
401
393
|
tokenId?: string | undefined;
|
|
402
|
-
appId?: string | undefined;
|
|
403
394
|
};
|
|
404
395
|
requestBody: {
|
|
405
396
|
protocol: "Babylon";
|
|
@@ -437,7 +428,6 @@ export type GetStakesResponse = ({
|
|
|
437
428
|
requester: {
|
|
438
429
|
userId: string;
|
|
439
430
|
tokenId?: string | undefined;
|
|
440
|
-
appId?: string | undefined;
|
|
441
431
|
};
|
|
442
432
|
requestBody: {
|
|
443
433
|
protocol: "Babylon";
|
|
@@ -477,7 +467,6 @@ export type GetStakesResponse = ({
|
|
|
477
467
|
requester: {
|
|
478
468
|
userId: string;
|
|
479
469
|
tokenId?: string | undefined;
|
|
480
|
-
appId?: string | undefined;
|
|
481
470
|
};
|
|
482
471
|
requestBody: {
|
|
483
472
|
protocol: "Babylon";
|
|
@@ -516,7 +505,6 @@ export type GetStakesResponse = ({
|
|
|
516
505
|
requester: {
|
|
517
506
|
userId: string;
|
|
518
507
|
tokenId?: string | undefined;
|
|
519
|
-
appId?: string | undefined;
|
|
520
508
|
};
|
|
521
509
|
requestBody: ({
|
|
522
510
|
protocol: "Babylon";
|
|
@@ -543,7 +531,7 @@ export type GetStakesResponse = ({
|
|
|
543
531
|
protocol: "Iota";
|
|
544
532
|
kind: "Deposit";
|
|
545
533
|
amount: string;
|
|
546
|
-
lockedIotas
|
|
534
|
+
lockedIotas?: string[] | undefined;
|
|
547
535
|
}) | ({
|
|
548
536
|
protocol: "Babylon";
|
|
549
537
|
kind: "Unbond";
|
|
@@ -578,7 +566,6 @@ export type ListStakeActionsResponse = {
|
|
|
578
566
|
requester: {
|
|
579
567
|
userId: string;
|
|
580
568
|
tokenId?: string | undefined;
|
|
581
|
-
appId?: string | undefined;
|
|
582
569
|
};
|
|
583
570
|
requestBody: ({
|
|
584
571
|
protocol: "Babylon";
|
|
@@ -605,7 +592,7 @@ export type ListStakeActionsResponse = {
|
|
|
605
592
|
protocol: "Iota";
|
|
606
593
|
kind: "Deposit";
|
|
607
594
|
amount: string;
|
|
608
|
-
lockedIotas
|
|
595
|
+
lockedIotas?: string[] | undefined;
|
|
609
596
|
}) | ({
|
|
610
597
|
protocol: "Babylon";
|
|
611
598
|
kind: "Unbond";
|
|
@@ -636,7 +623,6 @@ export type ListStakesResponse = {
|
|
|
636
623
|
requester: {
|
|
637
624
|
userId: string;
|
|
638
625
|
tokenId?: string | undefined;
|
|
639
|
-
appId?: string | undefined;
|
|
640
626
|
};
|
|
641
627
|
requestBody: {
|
|
642
628
|
protocol: "Babylon";
|
|
@@ -674,7 +660,6 @@ export type ListStakesResponse = {
|
|
|
674
660
|
requester: {
|
|
675
661
|
userId: string;
|
|
676
662
|
tokenId?: string | undefined;
|
|
677
|
-
appId?: string | undefined;
|
|
678
663
|
};
|
|
679
664
|
requestBody: {
|
|
680
665
|
protocol: "Babylon";
|
|
@@ -714,7 +699,6 @@ export type ListStakesResponse = {
|
|
|
714
699
|
requester: {
|
|
715
700
|
userId: string;
|
|
716
701
|
tokenId?: string | undefined;
|
|
717
|
-
appId?: string | undefined;
|
|
718
702
|
};
|
|
719
703
|
requestBody: {
|
|
720
704
|
protocol: "Babylon";
|