@dynamic-labs-wallet/core 0.0.0-beta-192.1 → 0.0.0-beta-272
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/index.cjs.js +55 -36
- package/index.esm.js +55 -36
- package/package.json +3 -2
- package/src/api/api.d.ts +19 -13
- package/src/api/api.d.ts.map +1 -1
- package/src/api/client.d.ts +1 -0
- package/src/api/client.d.ts.map +1 -1
- package/src/eventStream/utils.d.ts +2 -1
- package/src/eventStream/utils.d.ts.map +1 -1
- package/src/types.d.ts +49 -20
- package/src/types.d.ts.map +1 -1
package/index.cjs.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var axios = require('axios');
|
|
4
3
|
var uuid = require('uuid');
|
|
4
|
+
var axios = require('axios');
|
|
5
5
|
|
|
6
6
|
const DYNAMIC_AUTH_PROD_BASE_API_URL = 'https://app.dynamicauth.com';
|
|
7
7
|
const DYNAMIC_AUTH_PREPROD_BASE_API_URL = 'https://app.dynamic-preprod.xyz';
|
|
@@ -439,28 +439,6 @@ function getEnvironmentFromUrl(url) {
|
|
|
439
439
|
return ENVIRONMENT_ENUM.production;
|
|
440
440
|
}
|
|
441
441
|
|
|
442
|
-
var version = "0.0.1";
|
|
443
|
-
|
|
444
|
-
class BaseClient {
|
|
445
|
-
constructor({ environmentId, baseApiUrl, authToken, baseClientRelayApiUrl }){
|
|
446
|
-
const headers = {};
|
|
447
|
-
headers['Authorization'] = authToken ? `Bearer ${authToken}` : undefined;
|
|
448
|
-
headers['x-dyn-wallet-sdk-version'] = version;
|
|
449
|
-
this.environmentId = environmentId;
|
|
450
|
-
const environment = getEnvironmentFromUrl(baseApiUrl);
|
|
451
|
-
this.baseApiUrl = baseApiUrl != null ? baseApiUrl : DYNAMIC_AUTH_BASE_API_URL_MAP[environment];
|
|
452
|
-
this.apiClient = axios.create({
|
|
453
|
-
baseURL: this.baseApiUrl,
|
|
454
|
-
headers
|
|
455
|
-
});
|
|
456
|
-
this.clientRelayBaseApiUrl = baseClientRelayApiUrl != null ? baseClientRelayApiUrl : DYNAMIC_CLIENT_RELAY_REDCOAST_MAP[environment];
|
|
457
|
-
this.clientRelayApiClient = axios.create({
|
|
458
|
-
baseURL: this.clientRelayBaseApiUrl,
|
|
459
|
-
headers
|
|
460
|
-
});
|
|
461
|
-
}
|
|
462
|
-
}
|
|
463
|
-
|
|
464
442
|
var SuccessEventType = /*#__PURE__*/ function(SuccessEventType) {
|
|
465
443
|
SuccessEventType["KeygenComplete"] = "keygen_complete";
|
|
466
444
|
SuccessEventType["RoomCreated"] = "room_created";
|
|
@@ -477,7 +455,7 @@ var SuccessEventType = /*#__PURE__*/ function(SuccessEventType) {
|
|
|
477
455
|
* @param apiClient The axios instance to use for API calls
|
|
478
456
|
* @param options The configuration options
|
|
479
457
|
* @returns A promise that resolves with the event data or rejects on timeout
|
|
480
|
-
*/ const createEventStreamPromise = ({ apiClient, endpoint, body, successEventType, timeoutMs = 30000, timeoutMessage, onError, onCeremonyComplete })=>{
|
|
458
|
+
*/ const createEventStreamPromise = ({ apiClient, dynamicRequestId, endpoint, body, successEventType, timeoutMs = 30000, timeoutMessage, onError, onCeremonyComplete })=>{
|
|
481
459
|
// Create a promise that will resolve when the success event is received
|
|
482
460
|
const eventPromise = new Promise((resolve, reject)=>{
|
|
483
461
|
apiClient.post(endpoint, body, {
|
|
@@ -486,7 +464,7 @@ var SuccessEventType = /*#__PURE__*/ function(SuccessEventType) {
|
|
|
486
464
|
Accept: 'text/event-stream',
|
|
487
465
|
'Cache-Control': 'no-cache',
|
|
488
466
|
Connection: 'keep-alive',
|
|
489
|
-
[DynamicRequestIdHeader]:
|
|
467
|
+
[DynamicRequestIdHeader]: dynamicRequestId
|
|
490
468
|
},
|
|
491
469
|
adapter: 'fetch'
|
|
492
470
|
}).then(createSuccessErrorEventStreamHandler({
|
|
@@ -602,6 +580,41 @@ var SuccessEventType = /*#__PURE__*/ function(SuccessEventType) {
|
|
|
602
580
|
return events;
|
|
603
581
|
};
|
|
604
582
|
|
|
583
|
+
var version = "0.0.1";
|
|
584
|
+
|
|
585
|
+
class BaseClient {
|
|
586
|
+
syncAuthToken(authToken) {
|
|
587
|
+
if (!authToken) {
|
|
588
|
+
throw new Error('Auth token is required');
|
|
589
|
+
}
|
|
590
|
+
const authHeader = `Bearer ${authToken}`;
|
|
591
|
+
this.apiClient.defaults.headers['Authorization'] = authHeader;
|
|
592
|
+
this.clientRelayApiClient.defaults.headers['Authorization'] = authHeader;
|
|
593
|
+
this.apiClient.defaults.headers.common['Authorization'] = authHeader;
|
|
594
|
+
this.clientRelayApiClient.defaults.headers.common['Authorization'] = authHeader;
|
|
595
|
+
if (this.apiClient.defaults.headers['Authorization'] !== authHeader || this.clientRelayApiClient.defaults.headers['Authorization'] !== authHeader) {
|
|
596
|
+
throw new Error('Failed to sync auth token, auth header is not set to the expected auth token after sync, there is likely a race condition, contact Dynamic devs to investigate');
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
constructor({ environmentId, baseApiUrl, authToken, baseClientRelayApiUrl }){
|
|
600
|
+
const headers = {};
|
|
601
|
+
headers['Authorization'] = authToken ? `Bearer ${authToken}` : undefined;
|
|
602
|
+
headers['x-dyn-wallet-sdk-version'] = version;
|
|
603
|
+
this.environmentId = environmentId;
|
|
604
|
+
const environment = getEnvironmentFromUrl(baseApiUrl);
|
|
605
|
+
this.baseApiUrl = baseApiUrl != null ? baseApiUrl : DYNAMIC_AUTH_BASE_API_URL_MAP[environment];
|
|
606
|
+
this.apiClient = axios.create({
|
|
607
|
+
baseURL: this.baseApiUrl,
|
|
608
|
+
headers
|
|
609
|
+
});
|
|
610
|
+
this.clientRelayBaseApiUrl = baseClientRelayApiUrl != null ? baseClientRelayApiUrl : DYNAMIC_CLIENT_USER_SHARE_RELAY_MAP[environment];
|
|
611
|
+
this.clientRelayApiClient = axios.create({
|
|
612
|
+
baseURL: this.clientRelayBaseApiUrl,
|
|
613
|
+
headers
|
|
614
|
+
});
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
|
|
605
618
|
class DynamicApiClient extends BaseClient {
|
|
606
619
|
async authenticateApiToken({ environmentId }) {
|
|
607
620
|
return this.apiClient.post(`/api/v0/environments/${environmentId}/waas/authenticate`, undefined, {
|
|
@@ -610,9 +623,10 @@ class DynamicApiClient extends BaseClient {
|
|
|
610
623
|
}
|
|
611
624
|
});
|
|
612
625
|
}
|
|
613
|
-
async createWalletAccount({ chainName, clientKeygenIds, thresholdSignatureScheme, onError, onCeremonyComplete }) {
|
|
626
|
+
async createWalletAccount({ chainName, clientKeygenIds, dynamicRequestId, thresholdSignatureScheme, onError, onCeremonyComplete }) {
|
|
614
627
|
return createEventStreamPromise({
|
|
615
628
|
apiClient: this.apiClient,
|
|
629
|
+
dynamicRequestId,
|
|
616
630
|
endpoint: `/api/v0/sdk/${this.environmentId}/waas/create`,
|
|
617
631
|
body: {
|
|
618
632
|
chain: chainName,
|
|
@@ -625,9 +639,10 @@ class DynamicApiClient extends BaseClient {
|
|
|
625
639
|
onCeremonyComplete
|
|
626
640
|
});
|
|
627
641
|
}
|
|
628
|
-
async signMessage({ walletId, message, onError, isFormatted }) {
|
|
642
|
+
async signMessage({ dynamicRequestId, walletId, message, onError, isFormatted }) {
|
|
629
643
|
return createEventStreamPromise({
|
|
630
644
|
apiClient: this.apiClient,
|
|
645
|
+
dynamicRequestId,
|
|
631
646
|
endpoint: `/api/v0/sdk/${this.environmentId}/waas/${walletId}/signMessage`,
|
|
632
647
|
body: {
|
|
633
648
|
message,
|
|
@@ -638,9 +653,10 @@ class DynamicApiClient extends BaseClient {
|
|
|
638
653
|
onError
|
|
639
654
|
});
|
|
640
655
|
}
|
|
641
|
-
async refreshWalletAccountShares({ walletId, onError }) {
|
|
656
|
+
async refreshWalletAccountShares({ dynamicRequestId, walletId, onError }) {
|
|
642
657
|
return createEventStreamPromise({
|
|
643
658
|
apiClient: this.apiClient,
|
|
659
|
+
dynamicRequestId,
|
|
644
660
|
endpoint: `/api/v0/sdk/${this.environmentId}/waas/${walletId}/refresh`,
|
|
645
661
|
body: undefined,
|
|
646
662
|
successEventType: SuccessEventType.RoomCreated,
|
|
@@ -648,9 +664,10 @@ class DynamicApiClient extends BaseClient {
|
|
|
648
664
|
onError
|
|
649
665
|
});
|
|
650
666
|
}
|
|
651
|
-
async reshare({ walletId, clientKeygenIds, oldThresholdSignatureScheme, newThresholdSignatureScheme, onError }) {
|
|
667
|
+
async reshare({ walletId, dynamicRequestId, clientKeygenIds, oldThresholdSignatureScheme, newThresholdSignatureScheme, onError }) {
|
|
652
668
|
return createEventStreamPromise({
|
|
653
669
|
apiClient: this.apiClient,
|
|
670
|
+
dynamicRequestId,
|
|
654
671
|
endpoint: `/api/v0/sdk/${this.environmentId}/waas/${walletId}/reshare`,
|
|
655
672
|
body: {
|
|
656
673
|
clientKeygenIds,
|
|
@@ -662,9 +679,10 @@ class DynamicApiClient extends BaseClient {
|
|
|
662
679
|
onError
|
|
663
680
|
});
|
|
664
681
|
}
|
|
665
|
-
async exportKey({ walletId, exportId, onError }) {
|
|
682
|
+
async exportKey({ dynamicRequestId, walletId, exportId, onError }) {
|
|
666
683
|
return createEventStreamPromise({
|
|
667
684
|
apiClient: this.apiClient,
|
|
685
|
+
dynamicRequestId,
|
|
668
686
|
endpoint: `/api/v0/sdk/${this.environmentId}/waas/${walletId}/privateKey/export`,
|
|
669
687
|
body: {
|
|
670
688
|
exportId
|
|
@@ -674,11 +692,12 @@ class DynamicApiClient extends BaseClient {
|
|
|
674
692
|
onError
|
|
675
693
|
});
|
|
676
694
|
}
|
|
677
|
-
async storeEncryptedBackupByWallet({ walletId, encryptedKeyShares, passwordEncrypted, signedSessionId }) {
|
|
695
|
+
async storeEncryptedBackupByWallet({ walletId, encryptedKeyShares, passwordEncrypted, signedSessionId, encryptionVersion }) {
|
|
678
696
|
const { data } = await this.clientRelayApiClient.post(`/api/v0/sdk/${this.environmentId}/waas/${walletId}/keyShares/backup`, {
|
|
679
697
|
// TODO: decide on whether to store encryptedAccountCredentials or encryptedKeyShares as backup
|
|
680
698
|
encryptedAccountCredentials: encryptedKeyShares,
|
|
681
|
-
passwordEncrypted
|
|
699
|
+
passwordEncrypted,
|
|
700
|
+
encryptionVersion
|
|
682
701
|
}, {
|
|
683
702
|
headers: {
|
|
684
703
|
[DynamicRequestIdHeader]: uuid.v4().replace('-', ''),
|
|
@@ -726,9 +745,10 @@ class DynamicApiClient extends BaseClient {
|
|
|
726
745
|
return data.accessToken;
|
|
727
746
|
}
|
|
728
747
|
// TODO: return array instead considering cases where server has multiple parties
|
|
729
|
-
async importPrivateKey({ chainName, clientKeygenIds, thresholdSignatureScheme, onError, onCeremonyComplete }) {
|
|
748
|
+
async importPrivateKey({ chainName, dynamicRequestId, clientKeygenIds, thresholdSignatureScheme, onError, onCeremonyComplete }) {
|
|
730
749
|
return createEventStreamPromise({
|
|
731
750
|
apiClient: this.apiClient,
|
|
751
|
+
dynamicRequestId,
|
|
732
752
|
endpoint: `/api/v0/sdk/${this.environmentId}/waas/privateKey/import`,
|
|
733
753
|
body: {
|
|
734
754
|
chain: chainName,
|
|
@@ -785,12 +805,11 @@ class DynamicApiClient extends BaseClient {
|
|
|
785
805
|
}
|
|
786
806
|
}
|
|
787
807
|
}
|
|
788
|
-
constructor({ environmentId, authToken, baseApiUrl
|
|
808
|
+
constructor({ environmentId, authToken, baseApiUrl }){
|
|
789
809
|
super({
|
|
790
810
|
environmentId,
|
|
791
811
|
authToken,
|
|
792
|
-
baseApiUrl
|
|
793
|
-
baseClientRelayApiUrl
|
|
812
|
+
baseApiUrl
|
|
794
813
|
});
|
|
795
814
|
}
|
|
796
815
|
}
|
package/index.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import axios from 'axios';
|
|
2
1
|
import { v4 } from 'uuid';
|
|
2
|
+
import axios from 'axios';
|
|
3
3
|
|
|
4
4
|
const DYNAMIC_AUTH_PROD_BASE_API_URL = 'https://app.dynamicauth.com';
|
|
5
5
|
const DYNAMIC_AUTH_PREPROD_BASE_API_URL = 'https://app.dynamic-preprod.xyz';
|
|
@@ -437,28 +437,6 @@ function getEnvironmentFromUrl(url) {
|
|
|
437
437
|
return ENVIRONMENT_ENUM.production;
|
|
438
438
|
}
|
|
439
439
|
|
|
440
|
-
var version = "0.0.1";
|
|
441
|
-
|
|
442
|
-
class BaseClient {
|
|
443
|
-
constructor({ environmentId, baseApiUrl, authToken, baseClientRelayApiUrl }){
|
|
444
|
-
const headers = {};
|
|
445
|
-
headers['Authorization'] = authToken ? `Bearer ${authToken}` : undefined;
|
|
446
|
-
headers['x-dyn-wallet-sdk-version'] = version;
|
|
447
|
-
this.environmentId = environmentId;
|
|
448
|
-
const environment = getEnvironmentFromUrl(baseApiUrl);
|
|
449
|
-
this.baseApiUrl = baseApiUrl != null ? baseApiUrl : DYNAMIC_AUTH_BASE_API_URL_MAP[environment];
|
|
450
|
-
this.apiClient = axios.create({
|
|
451
|
-
baseURL: this.baseApiUrl,
|
|
452
|
-
headers
|
|
453
|
-
});
|
|
454
|
-
this.clientRelayBaseApiUrl = baseClientRelayApiUrl != null ? baseClientRelayApiUrl : DYNAMIC_CLIENT_RELAY_REDCOAST_MAP[environment];
|
|
455
|
-
this.clientRelayApiClient = axios.create({
|
|
456
|
-
baseURL: this.clientRelayBaseApiUrl,
|
|
457
|
-
headers
|
|
458
|
-
});
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
|
|
462
440
|
var SuccessEventType = /*#__PURE__*/ function(SuccessEventType) {
|
|
463
441
|
SuccessEventType["KeygenComplete"] = "keygen_complete";
|
|
464
442
|
SuccessEventType["RoomCreated"] = "room_created";
|
|
@@ -475,7 +453,7 @@ var SuccessEventType = /*#__PURE__*/ function(SuccessEventType) {
|
|
|
475
453
|
* @param apiClient The axios instance to use for API calls
|
|
476
454
|
* @param options The configuration options
|
|
477
455
|
* @returns A promise that resolves with the event data or rejects on timeout
|
|
478
|
-
*/ const createEventStreamPromise = ({ apiClient, endpoint, body, successEventType, timeoutMs = 30000, timeoutMessage, onError, onCeremonyComplete })=>{
|
|
456
|
+
*/ const createEventStreamPromise = ({ apiClient, dynamicRequestId, endpoint, body, successEventType, timeoutMs = 30000, timeoutMessage, onError, onCeremonyComplete })=>{
|
|
479
457
|
// Create a promise that will resolve when the success event is received
|
|
480
458
|
const eventPromise = new Promise((resolve, reject)=>{
|
|
481
459
|
apiClient.post(endpoint, body, {
|
|
@@ -484,7 +462,7 @@ var SuccessEventType = /*#__PURE__*/ function(SuccessEventType) {
|
|
|
484
462
|
Accept: 'text/event-stream',
|
|
485
463
|
'Cache-Control': 'no-cache',
|
|
486
464
|
Connection: 'keep-alive',
|
|
487
|
-
[DynamicRequestIdHeader]:
|
|
465
|
+
[DynamicRequestIdHeader]: dynamicRequestId
|
|
488
466
|
},
|
|
489
467
|
adapter: 'fetch'
|
|
490
468
|
}).then(createSuccessErrorEventStreamHandler({
|
|
@@ -600,6 +578,41 @@ var SuccessEventType = /*#__PURE__*/ function(SuccessEventType) {
|
|
|
600
578
|
return events;
|
|
601
579
|
};
|
|
602
580
|
|
|
581
|
+
var version = "0.0.1";
|
|
582
|
+
|
|
583
|
+
class BaseClient {
|
|
584
|
+
syncAuthToken(authToken) {
|
|
585
|
+
if (!authToken) {
|
|
586
|
+
throw new Error('Auth token is required');
|
|
587
|
+
}
|
|
588
|
+
const authHeader = `Bearer ${authToken}`;
|
|
589
|
+
this.apiClient.defaults.headers['Authorization'] = authHeader;
|
|
590
|
+
this.clientRelayApiClient.defaults.headers['Authorization'] = authHeader;
|
|
591
|
+
this.apiClient.defaults.headers.common['Authorization'] = authHeader;
|
|
592
|
+
this.clientRelayApiClient.defaults.headers.common['Authorization'] = authHeader;
|
|
593
|
+
if (this.apiClient.defaults.headers['Authorization'] !== authHeader || this.clientRelayApiClient.defaults.headers['Authorization'] !== authHeader) {
|
|
594
|
+
throw new Error('Failed to sync auth token, auth header is not set to the expected auth token after sync, there is likely a race condition, contact Dynamic devs to investigate');
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
constructor({ environmentId, baseApiUrl, authToken, baseClientRelayApiUrl }){
|
|
598
|
+
const headers = {};
|
|
599
|
+
headers['Authorization'] = authToken ? `Bearer ${authToken}` : undefined;
|
|
600
|
+
headers['x-dyn-wallet-sdk-version'] = version;
|
|
601
|
+
this.environmentId = environmentId;
|
|
602
|
+
const environment = getEnvironmentFromUrl(baseApiUrl);
|
|
603
|
+
this.baseApiUrl = baseApiUrl != null ? baseApiUrl : DYNAMIC_AUTH_BASE_API_URL_MAP[environment];
|
|
604
|
+
this.apiClient = axios.create({
|
|
605
|
+
baseURL: this.baseApiUrl,
|
|
606
|
+
headers
|
|
607
|
+
});
|
|
608
|
+
this.clientRelayBaseApiUrl = baseClientRelayApiUrl != null ? baseClientRelayApiUrl : DYNAMIC_CLIENT_USER_SHARE_RELAY_MAP[environment];
|
|
609
|
+
this.clientRelayApiClient = axios.create({
|
|
610
|
+
baseURL: this.clientRelayBaseApiUrl,
|
|
611
|
+
headers
|
|
612
|
+
});
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
|
|
603
616
|
class DynamicApiClient extends BaseClient {
|
|
604
617
|
async authenticateApiToken({ environmentId }) {
|
|
605
618
|
return this.apiClient.post(`/api/v0/environments/${environmentId}/waas/authenticate`, undefined, {
|
|
@@ -608,9 +621,10 @@ class DynamicApiClient extends BaseClient {
|
|
|
608
621
|
}
|
|
609
622
|
});
|
|
610
623
|
}
|
|
611
|
-
async createWalletAccount({ chainName, clientKeygenIds, thresholdSignatureScheme, onError, onCeremonyComplete }) {
|
|
624
|
+
async createWalletAccount({ chainName, clientKeygenIds, dynamicRequestId, thresholdSignatureScheme, onError, onCeremonyComplete }) {
|
|
612
625
|
return createEventStreamPromise({
|
|
613
626
|
apiClient: this.apiClient,
|
|
627
|
+
dynamicRequestId,
|
|
614
628
|
endpoint: `/api/v0/sdk/${this.environmentId}/waas/create`,
|
|
615
629
|
body: {
|
|
616
630
|
chain: chainName,
|
|
@@ -623,9 +637,10 @@ class DynamicApiClient extends BaseClient {
|
|
|
623
637
|
onCeremonyComplete
|
|
624
638
|
});
|
|
625
639
|
}
|
|
626
|
-
async signMessage({ walletId, message, onError, isFormatted }) {
|
|
640
|
+
async signMessage({ dynamicRequestId, walletId, message, onError, isFormatted }) {
|
|
627
641
|
return createEventStreamPromise({
|
|
628
642
|
apiClient: this.apiClient,
|
|
643
|
+
dynamicRequestId,
|
|
629
644
|
endpoint: `/api/v0/sdk/${this.environmentId}/waas/${walletId}/signMessage`,
|
|
630
645
|
body: {
|
|
631
646
|
message,
|
|
@@ -636,9 +651,10 @@ class DynamicApiClient extends BaseClient {
|
|
|
636
651
|
onError
|
|
637
652
|
});
|
|
638
653
|
}
|
|
639
|
-
async refreshWalletAccountShares({ walletId, onError }) {
|
|
654
|
+
async refreshWalletAccountShares({ dynamicRequestId, walletId, onError }) {
|
|
640
655
|
return createEventStreamPromise({
|
|
641
656
|
apiClient: this.apiClient,
|
|
657
|
+
dynamicRequestId,
|
|
642
658
|
endpoint: `/api/v0/sdk/${this.environmentId}/waas/${walletId}/refresh`,
|
|
643
659
|
body: undefined,
|
|
644
660
|
successEventType: SuccessEventType.RoomCreated,
|
|
@@ -646,9 +662,10 @@ class DynamicApiClient extends BaseClient {
|
|
|
646
662
|
onError
|
|
647
663
|
});
|
|
648
664
|
}
|
|
649
|
-
async reshare({ walletId, clientKeygenIds, oldThresholdSignatureScheme, newThresholdSignatureScheme, onError }) {
|
|
665
|
+
async reshare({ walletId, dynamicRequestId, clientKeygenIds, oldThresholdSignatureScheme, newThresholdSignatureScheme, onError }) {
|
|
650
666
|
return createEventStreamPromise({
|
|
651
667
|
apiClient: this.apiClient,
|
|
668
|
+
dynamicRequestId,
|
|
652
669
|
endpoint: `/api/v0/sdk/${this.environmentId}/waas/${walletId}/reshare`,
|
|
653
670
|
body: {
|
|
654
671
|
clientKeygenIds,
|
|
@@ -660,9 +677,10 @@ class DynamicApiClient extends BaseClient {
|
|
|
660
677
|
onError
|
|
661
678
|
});
|
|
662
679
|
}
|
|
663
|
-
async exportKey({ walletId, exportId, onError }) {
|
|
680
|
+
async exportKey({ dynamicRequestId, walletId, exportId, onError }) {
|
|
664
681
|
return createEventStreamPromise({
|
|
665
682
|
apiClient: this.apiClient,
|
|
683
|
+
dynamicRequestId,
|
|
666
684
|
endpoint: `/api/v0/sdk/${this.environmentId}/waas/${walletId}/privateKey/export`,
|
|
667
685
|
body: {
|
|
668
686
|
exportId
|
|
@@ -672,11 +690,12 @@ class DynamicApiClient extends BaseClient {
|
|
|
672
690
|
onError
|
|
673
691
|
});
|
|
674
692
|
}
|
|
675
|
-
async storeEncryptedBackupByWallet({ walletId, encryptedKeyShares, passwordEncrypted, signedSessionId }) {
|
|
693
|
+
async storeEncryptedBackupByWallet({ walletId, encryptedKeyShares, passwordEncrypted, signedSessionId, encryptionVersion }) {
|
|
676
694
|
const { data } = await this.clientRelayApiClient.post(`/api/v0/sdk/${this.environmentId}/waas/${walletId}/keyShares/backup`, {
|
|
677
695
|
// TODO: decide on whether to store encryptedAccountCredentials or encryptedKeyShares as backup
|
|
678
696
|
encryptedAccountCredentials: encryptedKeyShares,
|
|
679
|
-
passwordEncrypted
|
|
697
|
+
passwordEncrypted,
|
|
698
|
+
encryptionVersion
|
|
680
699
|
}, {
|
|
681
700
|
headers: {
|
|
682
701
|
[DynamicRequestIdHeader]: v4().replace('-', ''),
|
|
@@ -724,9 +743,10 @@ class DynamicApiClient extends BaseClient {
|
|
|
724
743
|
return data.accessToken;
|
|
725
744
|
}
|
|
726
745
|
// TODO: return array instead considering cases where server has multiple parties
|
|
727
|
-
async importPrivateKey({ chainName, clientKeygenIds, thresholdSignatureScheme, onError, onCeremonyComplete }) {
|
|
746
|
+
async importPrivateKey({ chainName, dynamicRequestId, clientKeygenIds, thresholdSignatureScheme, onError, onCeremonyComplete }) {
|
|
728
747
|
return createEventStreamPromise({
|
|
729
748
|
apiClient: this.apiClient,
|
|
749
|
+
dynamicRequestId,
|
|
730
750
|
endpoint: `/api/v0/sdk/${this.environmentId}/waas/privateKey/import`,
|
|
731
751
|
body: {
|
|
732
752
|
chain: chainName,
|
|
@@ -783,12 +803,11 @@ class DynamicApiClient extends BaseClient {
|
|
|
783
803
|
}
|
|
784
804
|
}
|
|
785
805
|
}
|
|
786
|
-
constructor({ environmentId, authToken, baseApiUrl
|
|
806
|
+
constructor({ environmentId, authToken, baseApiUrl }){
|
|
787
807
|
super({
|
|
788
808
|
environmentId,
|
|
789
809
|
authToken,
|
|
790
|
-
baseApiUrl
|
|
791
|
-
baseClientRelayApiUrl
|
|
810
|
+
baseApiUrl
|
|
792
811
|
});
|
|
793
812
|
}
|
|
794
813
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs-wallet/core",
|
|
3
|
-
"version": "0.0.0-beta-
|
|
3
|
+
"version": "0.0.0-beta-272",
|
|
4
4
|
"license": "MIT",
|
|
5
|
+
"type": "module",
|
|
5
6
|
"dependencies": {
|
|
6
7
|
"axios": "1.9.0",
|
|
7
8
|
"uuid": "11.1.0"
|
|
@@ -27,7 +28,7 @@
|
|
|
27
28
|
"types": "./index.esm.d.ts",
|
|
28
29
|
"import": "./index.esm.js",
|
|
29
30
|
"require": "./index.cjs.js",
|
|
30
|
-
"default": "./index.
|
|
31
|
+
"default": "./index.esm.js"
|
|
31
32
|
}
|
|
32
33
|
}
|
|
33
34
|
}
|
package/src/api/api.d.ts
CHANGED
|
@@ -1,54 +1,59 @@
|
|
|
1
|
+
import { BackupLocation } from '../constants';
|
|
1
2
|
import type { ThresholdSignatureScheme } from '../mpc/constants';
|
|
2
|
-
import { BaseClient } from './client';
|
|
3
3
|
import { type KeygenCompleteResponse, type OpenRoomResponse, type ReshareResponse } from '../types';
|
|
4
|
-
import {
|
|
4
|
+
import { BaseClient } from './client';
|
|
5
5
|
export declare class DynamicApiClient extends BaseClient {
|
|
6
|
-
constructor({ environmentId, authToken, baseApiUrl,
|
|
6
|
+
constructor({ environmentId, authToken, baseApiUrl, }: {
|
|
7
7
|
environmentId: string;
|
|
8
8
|
authToken: string;
|
|
9
9
|
baseApiUrl?: string;
|
|
10
|
-
baseClientRelayApiUrl?: string;
|
|
11
10
|
});
|
|
12
11
|
authenticateApiToken({ environmentId }: {
|
|
13
12
|
environmentId: string;
|
|
14
13
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
15
|
-
createWalletAccount({ chainName, clientKeygenIds, thresholdSignatureScheme, onError, onCeremonyComplete, }: {
|
|
14
|
+
createWalletAccount({ chainName, clientKeygenIds, dynamicRequestId, thresholdSignatureScheme, onError, onCeremonyComplete, }: {
|
|
16
15
|
chainName: string;
|
|
16
|
+
dynamicRequestId?: string;
|
|
17
17
|
clientKeygenIds: string[];
|
|
18
18
|
thresholdSignatureScheme: ThresholdSignatureScheme;
|
|
19
19
|
onError?: (error: Error) => void;
|
|
20
20
|
onCeremonyComplete?: (accountAddress: string, walletId: string) => void;
|
|
21
21
|
}): Promise<KeygenCompleteResponse>;
|
|
22
|
-
signMessage({ walletId, message, onError, isFormatted, }: {
|
|
22
|
+
signMessage({ dynamicRequestId, walletId, message, onError, isFormatted, }: {
|
|
23
|
+
dynamicRequestId?: string;
|
|
23
24
|
walletId: string;
|
|
24
25
|
message: string;
|
|
25
26
|
onError?: (error: Error) => void;
|
|
26
27
|
isFormatted?: boolean;
|
|
27
28
|
}): Promise<OpenRoomResponse>;
|
|
28
|
-
refreshWalletAccountShares({ walletId, onError, }: {
|
|
29
|
+
refreshWalletAccountShares({ dynamicRequestId, walletId, onError, }: {
|
|
30
|
+
dynamicRequestId?: string;
|
|
29
31
|
walletId: string;
|
|
30
32
|
onError?: (error: Error) => void;
|
|
31
33
|
}): Promise<{
|
|
32
34
|
roomId: string;
|
|
33
35
|
serverKeygenIds: string[];
|
|
34
36
|
}>;
|
|
35
|
-
reshare({ walletId, clientKeygenIds, oldThresholdSignatureScheme, newThresholdSignatureScheme, onError, }: {
|
|
37
|
+
reshare({ walletId, dynamicRequestId, clientKeygenIds, oldThresholdSignatureScheme, newThresholdSignatureScheme, onError, }: {
|
|
38
|
+
dynamicRequestId?: string;
|
|
36
39
|
walletId: string;
|
|
37
40
|
clientKeygenIds: string[];
|
|
38
41
|
oldThresholdSignatureScheme: ThresholdSignatureScheme;
|
|
39
42
|
newThresholdSignatureScheme: ThresholdSignatureScheme;
|
|
40
43
|
onError?: (error: Error) => void;
|
|
41
44
|
}): Promise<ReshareResponse>;
|
|
42
|
-
exportKey({ walletId, exportId, onError, }: {
|
|
45
|
+
exportKey({ dynamicRequestId, walletId, exportId, onError, }: {
|
|
46
|
+
dynamicRequestId?: string;
|
|
43
47
|
walletId: string;
|
|
44
48
|
exportId: string;
|
|
45
49
|
onError?: (error: Error) => void;
|
|
46
50
|
}): Promise<OpenRoomResponse>;
|
|
47
|
-
storeEncryptedBackupByWallet({ walletId, encryptedKeyShares, passwordEncrypted, signedSessionId, }: {
|
|
51
|
+
storeEncryptedBackupByWallet({ walletId, encryptedKeyShares, passwordEncrypted, signedSessionId, encryptionVersion, }: {
|
|
48
52
|
walletId: string;
|
|
49
53
|
encryptedKeyShares: string[];
|
|
50
54
|
passwordEncrypted: boolean;
|
|
51
|
-
signedSessionId
|
|
55
|
+
signedSessionId: string;
|
|
56
|
+
encryptionVersion?: string;
|
|
52
57
|
}): Promise<any>;
|
|
53
58
|
markKeySharesAsBackedUpGoogleDrive({ walletId }: {
|
|
54
59
|
walletId: string;
|
|
@@ -60,12 +65,13 @@ export declare class DynamicApiClient extends BaseClient {
|
|
|
60
65
|
recoverEncryptedBackupByWallet({ walletId, keyShareIds, signedSessionId, }: {
|
|
61
66
|
walletId: string;
|
|
62
67
|
keyShareIds?: string[];
|
|
63
|
-
signedSessionId
|
|
68
|
+
signedSessionId: string;
|
|
64
69
|
}): Promise<any>;
|
|
65
70
|
getAccessToken({ oauthAccountId }: {
|
|
66
71
|
oauthAccountId: string;
|
|
67
72
|
}): Promise<any>;
|
|
68
|
-
importPrivateKey({ chainName, clientKeygenIds, thresholdSignatureScheme, onError, onCeremonyComplete, }: {
|
|
73
|
+
importPrivateKey({ chainName, dynamicRequestId, clientKeygenIds, thresholdSignatureScheme, onError, onCeremonyComplete, }: {
|
|
74
|
+
dynamicRequestId?: string;
|
|
69
75
|
chainName: string;
|
|
70
76
|
clientKeygenIds: string[];
|
|
71
77
|
thresholdSignatureScheme: ThresholdSignatureScheme;
|
package/src/api/api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/api/api.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/api/api.ts"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,EAGf,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAEL,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACrB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,qBAAa,gBAAiB,SAAQ,UAAU;gBAClC,EACV,aAAa,EACb,SAAS,EACT,UAAU,GACX,EAAE;QACD,aAAa,EAAE,MAAM,CAAC;QACtB,SAAS,EAAE,MAAM,CAAC;QAClB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;IAIK,oBAAoB,CAAC,EAAE,aAAa,EAAE,EAAE;QAAE,aAAa,EAAE,MAAM,CAAA;KAAE;IAYjE,mBAAmB,CAAC,EACxB,SAAS,EACT,eAAe,EACf,gBAAgB,EAChB,wBAAwB,EACxB,OAAO,EACP,kBAAkB,GACnB,EAAE;QACD,SAAS,EAAE,MAAM,CAAC;QAClB,gBAAgB,CAAC,EAAE,M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AAC;QACjC,kBAAkB,CAAC,EAAE,CAAC,cAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;KACzE;IAkBK,OAAO,IAAI,OAAO,CAAC,GAAG,CAAC;IA2BvB,WAAW,IAAI,OAAO,CAAC,GAAG,CAAC;CA0BlC"}
|
package/src/api/client.d.ts
CHANGED
package/src/api/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/api/client.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/api/client.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAQlD,qBAAa,UAAU;IACd,SAAS,EAAE,aAAa,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,oBAAoB,EAAE,aAAa,CAAC;gBAE/B,EACV,aAAa,EACb,UAAU,EACV,SAAS,EACT,qBAAqB,GACtB,EAAE;QACD,aAAa,EAAE,MAAM,CAAC;QACtB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,SAAS,EAAE,MAAM,CAAC;QAClB,qBAAqB,CAAC,EAAE,MAAM,CAAC;KAChC;IAuBD,aAAa,CAAC,SAAS,EAAE,MAAM;CAuBhC"}
|
|
@@ -9,8 +9,9 @@ import { SuccessEventType } from '../types';
|
|
|
9
9
|
* @param options The configuration options
|
|
10
10
|
* @returns A promise that resolves with the event data or rejects on timeout
|
|
11
11
|
*/
|
|
12
|
-
export declare const createEventStreamPromise: <T>({ apiClient, endpoint, body, successEventType, timeoutMs, timeoutMessage, onError, onCeremonyComplete, }: {
|
|
12
|
+
export declare const createEventStreamPromise: <T>({ apiClient, dynamicRequestId, endpoint, body, successEventType, timeoutMs, timeoutMessage, onError, onCeremonyComplete, }: {
|
|
13
13
|
apiClient: AxiosInstance;
|
|
14
|
+
dynamicRequestId?: string;
|
|
14
15
|
endpoint: string;
|
|
15
16
|
body: Record<string, unknown> | undefined;
|
|
16
17
|
successEventType: SuccessEventType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/eventStream/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/eventStream/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C;;;;;;;;GAQG;AACH,eAAO,MAAM,wBAAwB,GAAI,CAAC,8HAUvC;IACD,SAAS,EAAE,aAAa,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;IAC1C,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,kBAAkB,CAAC,EAAE,CAAC,cAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CACzE,KAAG,OAAO,CAAC,CAAC,CAiCZ,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,oCAAoC,GAAI,CAAC,uEAMnD;IACD,OAAO,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;IAC3B,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAC/B,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,kBAAkB,CAAC,EAAE,CAAC,cAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CACzE,gBACmB;IAChB,IAAI,EAAE;QACJ,SAAS,EAAE,MAAM;YACf,IAAI,EAAE,MAAM,OAAO,CAAC;gBAAE,KAAK,EAAE,UAAU,CAAC;gBAAC,IAAI,EAAE,OAAO,CAAA;aAAE,CAAC,CAAC;SAC3D,CAAC;KACH,CAAC;CACH,SAyCF,CAAC"}
|
package/src/types.d.ts
CHANGED
|
@@ -51,7 +51,6 @@ export interface DynamicWalletClientProps {
|
|
|
51
51
|
storageKey?: string;
|
|
52
52
|
debug?: boolean;
|
|
53
53
|
baseMPCRelayApiUrl?: string;
|
|
54
|
-
baseClientRelayApiUrl?: string;
|
|
55
54
|
}
|
|
56
55
|
export type BackupData = {
|
|
57
56
|
keyShares: string[];
|
|
@@ -61,15 +60,17 @@ export type BackupData = {
|
|
|
61
60
|
accountAddress: string;
|
|
62
61
|
thresholdSignatureScheme: ThresholdSignatureScheme;
|
|
63
62
|
hasPassword: boolean;
|
|
64
|
-
encryption?:
|
|
65
|
-
algorithm: string;
|
|
66
|
-
keyDerivation: string;
|
|
67
|
-
iterations: number;
|
|
68
|
-
hashAlgorithm: string;
|
|
69
|
-
};
|
|
63
|
+
encryption?: EncryptionMetadata;
|
|
70
64
|
shareCount: number;
|
|
71
65
|
};
|
|
72
66
|
};
|
|
67
|
+
export type EncryptionMetadata = {
|
|
68
|
+
algorithm: string;
|
|
69
|
+
keyDerivation: string;
|
|
70
|
+
iterations: number;
|
|
71
|
+
hashAlgorithm: string;
|
|
72
|
+
algorithmLength: number;
|
|
73
|
+
};
|
|
73
74
|
export type IframeRequestMessages = {
|
|
74
75
|
sendAuthToken: (token: string) => Promise<void>;
|
|
75
76
|
createWalletAccount: (request: CreateWalletAccountRequest) => Promise<CreateWalletAccountResponse>;
|
|
@@ -77,6 +78,7 @@ export type IframeRequestMessages = {
|
|
|
77
78
|
getWallet: (request: GetWalletRequest) => Promise<GetWalletResponse>;
|
|
78
79
|
signMessage: (request: SignMessageRequest) => Promise<string>;
|
|
79
80
|
signRawMessage: (request: SignRawMessageRequest) => Promise<string>;
|
|
81
|
+
signTypedData: (request: SignTypedDataRequest) => Promise<string>;
|
|
80
82
|
requiresPasswordForOperation: (request: RequiresPasswordForOperationRequest) => Promise<boolean>;
|
|
81
83
|
signTransaction: (request: SignTransactionRequest) => Promise<string>;
|
|
82
84
|
isPasswordEncrypted: (request: IsPasswordEncryptedRequest) => Promise<boolean>;
|
|
@@ -96,7 +98,8 @@ export type CreateWalletAccountRequest = {
|
|
|
96
98
|
chainName: string;
|
|
97
99
|
thresholdSignatureScheme: ThresholdSignatureScheme;
|
|
98
100
|
password?: string;
|
|
99
|
-
signedSessionId
|
|
101
|
+
signedSessionId: string;
|
|
102
|
+
authToken?: string;
|
|
100
103
|
};
|
|
101
104
|
export type CreateWalletAccountResponse = {
|
|
102
105
|
chainName: string;
|
|
@@ -106,6 +109,7 @@ export type CreateWalletAccountResponse = {
|
|
|
106
109
|
};
|
|
107
110
|
export type GetWalletsRequest = {
|
|
108
111
|
chainName: string;
|
|
112
|
+
authToken?: string;
|
|
109
113
|
};
|
|
110
114
|
export type GetWalletResponse = {
|
|
111
115
|
chainName: string;
|
|
@@ -121,55 +125,72 @@ export type GetWalletRequest = {
|
|
|
121
125
|
walletOperation: WalletOperation;
|
|
122
126
|
shareCount?: number;
|
|
123
127
|
password?: string;
|
|
124
|
-
signedSessionId
|
|
128
|
+
signedSessionId: string;
|
|
129
|
+
authToken?: string;
|
|
125
130
|
};
|
|
126
131
|
export type SignMessageRequest = {
|
|
127
132
|
chainName: string;
|
|
128
133
|
message: string;
|
|
129
134
|
accountAddress: string;
|
|
130
135
|
password?: string;
|
|
131
|
-
signedSessionId
|
|
136
|
+
signedSessionId: string;
|
|
137
|
+
authToken?: string;
|
|
132
138
|
};
|
|
133
139
|
export type SignRawMessageRequest = {
|
|
134
140
|
chainName: string;
|
|
135
141
|
message: string;
|
|
136
142
|
accountAddress: string;
|
|
137
143
|
password?: string;
|
|
138
|
-
signedSessionId
|
|
144
|
+
signedSessionId: string;
|
|
145
|
+
authToken?: string;
|
|
139
146
|
};
|
|
140
147
|
export type RequiresPasswordForOperationRequest = {
|
|
141
148
|
chainName: string;
|
|
142
149
|
accountAddress: string;
|
|
143
150
|
walletOperation?: WalletOperation;
|
|
151
|
+
authToken?: string;
|
|
144
152
|
};
|
|
145
153
|
export type SignTransactionRequest = {
|
|
146
154
|
chainName: string;
|
|
147
155
|
senderAddress: string;
|
|
148
156
|
transaction: string;
|
|
149
157
|
password?: string;
|
|
150
|
-
signedSessionId
|
|
158
|
+
signedSessionId: string;
|
|
159
|
+
authToken?: string;
|
|
160
|
+
};
|
|
161
|
+
export type SignTypedDataRequest = {
|
|
162
|
+
chainName: string;
|
|
163
|
+
accountAddress: string;
|
|
164
|
+
typedData: string;
|
|
165
|
+
password?: string;
|
|
166
|
+
signedSessionId: string;
|
|
167
|
+
authToken?: string;
|
|
151
168
|
};
|
|
152
169
|
export type IsPasswordEncryptedRequest = {
|
|
153
170
|
chainName: string;
|
|
154
171
|
accountAddress: string;
|
|
172
|
+
authToken?: string;
|
|
155
173
|
};
|
|
156
174
|
export type BackupKeySharesToGoogleDriveRequest = {
|
|
157
175
|
chainName: string;
|
|
158
176
|
accountAddress: string;
|
|
159
177
|
password?: string;
|
|
160
|
-
signedSessionId
|
|
178
|
+
signedSessionId: string;
|
|
179
|
+
authToken?: string;
|
|
161
180
|
};
|
|
162
181
|
export type RestoreBackupFromGoogleDriveRequest = {
|
|
163
182
|
chainName: string;
|
|
164
183
|
accountAddress: string;
|
|
165
184
|
password?: string;
|
|
166
|
-
signedSessionId
|
|
185
|
+
signedSessionId: string;
|
|
186
|
+
authToken?: string;
|
|
167
187
|
};
|
|
168
188
|
export type RefreshWalletAccountSharesRequest = {
|
|
169
189
|
chainName: string;
|
|
170
190
|
accountAddress: string;
|
|
171
191
|
password?: string;
|
|
172
|
-
signedSessionId
|
|
192
|
+
signedSessionId: string;
|
|
193
|
+
authToken?: string;
|
|
173
194
|
};
|
|
174
195
|
export type ReshareRequest = {
|
|
175
196
|
chainName: string;
|
|
@@ -177,43 +198,51 @@ export type ReshareRequest = {
|
|
|
177
198
|
oldThresholdSignatureScheme: ThresholdSignatureScheme;
|
|
178
199
|
newThresholdSignatureScheme: ThresholdSignatureScheme;
|
|
179
200
|
password?: string;
|
|
180
|
-
signedSessionId
|
|
201
|
+
signedSessionId: string;
|
|
202
|
+
authToken?: string;
|
|
181
203
|
};
|
|
182
204
|
export type ExportPrivateKeyRequest = {
|
|
183
205
|
chainName: string;
|
|
184
206
|
accountAddress: string;
|
|
185
207
|
password?: string;
|
|
186
|
-
signedSessionId
|
|
208
|
+
signedSessionId: string;
|
|
209
|
+
authToken?: string;
|
|
187
210
|
};
|
|
188
211
|
export type VerifyPasswordRequest = {
|
|
189
212
|
chainName: string;
|
|
190
213
|
accountAddress: string;
|
|
191
214
|
password?: string;
|
|
192
215
|
walletOperation?: WalletOperation;
|
|
193
|
-
signedSessionId
|
|
216
|
+
signedSessionId: string;
|
|
217
|
+
authToken?: string;
|
|
194
218
|
};
|
|
195
219
|
export type UpdatePasswordRequest = {
|
|
196
220
|
chainName: string;
|
|
197
221
|
accountAddress: string;
|
|
198
222
|
existingPassword: string;
|
|
199
223
|
newPassword: string;
|
|
200
|
-
signedSessionId
|
|
224
|
+
signedSessionId: string;
|
|
225
|
+
authToken?: string;
|
|
201
226
|
};
|
|
202
227
|
export type ImportPrivateKeyRequest = {
|
|
203
228
|
chainName: string;
|
|
204
229
|
privateKey: string;
|
|
205
230
|
thresholdSignatureScheme: ThresholdSignatureScheme;
|
|
206
231
|
password?: string;
|
|
232
|
+
signedSessionId: string;
|
|
233
|
+
authToken?: string;
|
|
207
234
|
};
|
|
208
235
|
export type ExportClientKeysharesRequest = {
|
|
209
236
|
chainName: string;
|
|
210
237
|
accountAddress: string;
|
|
211
|
-
signedSessionId
|
|
238
|
+
signedSessionId: string;
|
|
212
239
|
password?: string;
|
|
240
|
+
authToken?: string;
|
|
213
241
|
};
|
|
214
242
|
export type OfflineExportPrivateKeyRequest = {
|
|
215
243
|
chainName: string;
|
|
216
244
|
base64Args: string;
|
|
245
|
+
authToken?: string;
|
|
217
246
|
};
|
|
218
247
|
export type OfflineExportPrivateKeyResponse = {
|
|
219
248
|
derivedPrivateKey: string | undefined;
|
package/src/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../packages/src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAEjD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,EAAE,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,EAAE,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,MAAM,CAAC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