@dynamic-labs/sdk-api-core 0.0.842 → 0.0.844
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/package.json +1 -1
- package/src/index.cjs +4 -0
- package/src/index.js +1 -0
- package/src/models/CreateWaasAccountRequest.cjs +2 -0
- package/src/models/CreateWaasAccountRequest.d.ts +6 -0
- package/src/models/CreateWaasAccountRequest.js +2 -0
- package/src/models/ExportWaasWalletPrivateKeyRequest.cjs +4 -12
- package/src/models/ExportWaasWalletPrivateKeyRequest.d.ts +6 -0
- package/src/models/ExportWaasWalletPrivateKeyRequest.js +4 -12
- package/src/models/PasskeyRegisterRequest.cjs +3 -0
- package/src/models/PasskeyRegisterRequest.d.ts +7 -0
- package/src/models/PasskeyRegisterRequest.js +3 -0
- package/src/models/SignMessageWithWaasRequest.cjs +3 -0
- package/src/models/SignMessageWithWaasRequest.d.ts +7 -0
- package/src/models/SignMessageWithWaasRequest.js +3 -0
- package/src/models/WaasChainEnum.cjs +1 -0
- package/src/models/WaasChainEnum.d.ts +2 -1
- package/src/models/WaasChainEnum.js +1 -0
- package/src/models/WalletBitcoinConfig.cjs +35 -0
- package/src/models/WalletBitcoinConfig.d.ts +33 -0
- package/src/models/WalletBitcoinConfig.js +29 -0
- package/src/models/index.d.ts +1 -0
package/package.json
CHANGED
package/src/index.cjs
CHANGED
|
@@ -370,6 +370,7 @@ var WaasWalletProperties = require('./models/WaasWalletProperties.cjs');
|
|
|
370
370
|
var WaasWalletSettings = require('./models/WaasWalletSettings.cjs');
|
|
371
371
|
var WalletAdditionalAddress = require('./models/WalletAdditionalAddress.cjs');
|
|
372
372
|
var WalletAddressType = require('./models/WalletAddressType.cjs');
|
|
373
|
+
var WalletBitcoinConfig = require('./models/WalletBitcoinConfig.cjs');
|
|
373
374
|
var WalletKeyShareInfo = require('./models/WalletKeyShareInfo.cjs');
|
|
374
375
|
var WalletKeyShareInfoWithEncryptedAccountCredential = require('./models/WalletKeyShareInfoWithEncryptedAccountCredential.cjs');
|
|
375
376
|
var WalletKeyShareInfoWithEncryptedAccountCredentialAllOf = require('./models/WalletKeyShareInfoWithEncryptedAccountCredentialAllOf.cjs');
|
|
@@ -1762,6 +1763,9 @@ Object.defineProperty(exports, 'WalletAddressType', {
|
|
|
1762
1763
|
exports.WalletAddressTypeFromJSON = WalletAddressType.WalletAddressTypeFromJSON;
|
|
1763
1764
|
exports.WalletAddressTypeFromJSONTyped = WalletAddressType.WalletAddressTypeFromJSONTyped;
|
|
1764
1765
|
exports.WalletAddressTypeToJSON = WalletAddressType.WalletAddressTypeToJSON;
|
|
1766
|
+
exports.WalletBitcoinConfigFromJSON = WalletBitcoinConfig.WalletBitcoinConfigFromJSON;
|
|
1767
|
+
exports.WalletBitcoinConfigFromJSONTyped = WalletBitcoinConfig.WalletBitcoinConfigFromJSONTyped;
|
|
1768
|
+
exports.WalletBitcoinConfigToJSON = WalletBitcoinConfig.WalletBitcoinConfigToJSON;
|
|
1765
1769
|
exports.WalletKeyShareInfoFromJSON = WalletKeyShareInfo.WalletKeyShareInfoFromJSON;
|
|
1766
1770
|
exports.WalletKeyShareInfoFromJSONTyped = WalletKeyShareInfo.WalletKeyShareInfoFromJSONTyped;
|
|
1767
1771
|
exports.WalletKeyShareInfoToJSON = WalletKeyShareInfo.WalletKeyShareInfoToJSON;
|
package/src/index.js
CHANGED
|
@@ -366,6 +366,7 @@ export { WaasWalletPropertiesFromJSON, WaasWalletPropertiesFromJSONTyped, WaasWa
|
|
|
366
366
|
export { WaasWalletSettingsFromJSON, WaasWalletSettingsFromJSONTyped, WaasWalletSettingsToJSON } from './models/WaasWalletSettings.js';
|
|
367
367
|
export { WalletAdditionalAddressFromJSON, WalletAdditionalAddressFromJSONTyped, WalletAdditionalAddressToJSON } from './models/WalletAdditionalAddress.js';
|
|
368
368
|
export { WalletAddressType, WalletAddressTypeFromJSON, WalletAddressTypeFromJSONTyped, WalletAddressTypeToJSON } from './models/WalletAddressType.js';
|
|
369
|
+
export { WalletBitcoinConfigFromJSON, WalletBitcoinConfigFromJSONTyped, WalletBitcoinConfigToJSON } from './models/WalletBitcoinConfig.js';
|
|
369
370
|
export { WalletKeyShareInfoFromJSON, WalletKeyShareInfoFromJSONTyped, WalletKeyShareInfoToJSON } from './models/WalletKeyShareInfo.js';
|
|
370
371
|
export { WalletKeyShareInfoWithEncryptedAccountCredentialFromJSON, WalletKeyShareInfoWithEncryptedAccountCredentialFromJSONTyped, WalletKeyShareInfoWithEncryptedAccountCredentialToJSON } from './models/WalletKeyShareInfoWithEncryptedAccountCredential.js';
|
|
371
372
|
export { WalletKeyShareInfoWithEncryptedAccountCredentialAllOfFromJSON, WalletKeyShareInfoWithEncryptedAccountCredentialAllOfFromJSONTyped, WalletKeyShareInfoWithEncryptedAccountCredentialAllOfToJSON } from './models/WalletKeyShareInfoWithEncryptedAccountCredentialAllOf.js';
|
|
@@ -19,6 +19,7 @@ function CreateWaasAccountRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
19
19
|
'clientKeygenIds': json['clientKeygenIds'],
|
|
20
20
|
'thresholdSignatureScheme': !runtime.exists(json, 'thresholdSignatureScheme') ? undefined : ThresholdSignatureScheme.ThresholdSignatureSchemeFromJSON(json['thresholdSignatureScheme']),
|
|
21
21
|
'skipLock': !runtime.exists(json, 'skipLock') ? undefined : json['skipLock'],
|
|
22
|
+
'addressType': !runtime.exists(json, 'addressType') ? undefined : json['addressType'],
|
|
22
23
|
};
|
|
23
24
|
}
|
|
24
25
|
function CreateWaasAccountRequestToJSON(value) {
|
|
@@ -33,6 +34,7 @@ function CreateWaasAccountRequestToJSON(value) {
|
|
|
33
34
|
'clientKeygenIds': value.clientKeygenIds,
|
|
34
35
|
'thresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeToJSON(value.thresholdSignatureScheme),
|
|
35
36
|
'skipLock': value.skipLock,
|
|
37
|
+
'addressType': value.addressType,
|
|
36
38
|
};
|
|
37
39
|
}
|
|
38
40
|
|
|
@@ -41,6 +41,12 @@ export interface CreateWaasAccountRequest {
|
|
|
41
41
|
* @memberof CreateWaasAccountRequest
|
|
42
42
|
*/
|
|
43
43
|
skipLock?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof CreateWaasAccountRequest
|
|
48
|
+
*/
|
|
49
|
+
addressType?: string;
|
|
44
50
|
}
|
|
45
51
|
export declare function CreateWaasAccountRequestFromJSON(json: any): CreateWaasAccountRequest;
|
|
46
52
|
export declare function CreateWaasAccountRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateWaasAccountRequest;
|
|
@@ -15,6 +15,7 @@ function CreateWaasAccountRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
15
15
|
'clientKeygenIds': json['clientKeygenIds'],
|
|
16
16
|
'thresholdSignatureScheme': !exists(json, 'thresholdSignatureScheme') ? undefined : ThresholdSignatureSchemeFromJSON(json['thresholdSignatureScheme']),
|
|
17
17
|
'skipLock': !exists(json, 'skipLock') ? undefined : json['skipLock'],
|
|
18
|
+
'addressType': !exists(json, 'addressType') ? undefined : json['addressType'],
|
|
18
19
|
};
|
|
19
20
|
}
|
|
20
21
|
function CreateWaasAccountRequestToJSON(value) {
|
|
@@ -29,6 +30,7 @@ function CreateWaasAccountRequestToJSON(value) {
|
|
|
29
30
|
'clientKeygenIds': value.clientKeygenIds,
|
|
30
31
|
'thresholdSignatureScheme': ThresholdSignatureSchemeToJSON(value.thresholdSignatureScheme),
|
|
31
32
|
'skipLock': value.skipLock,
|
|
33
|
+
'addressType': value.addressType,
|
|
32
34
|
};
|
|
33
35
|
}
|
|
34
36
|
|
|
@@ -2,19 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
5
7
|
/* tslint:disable */
|
|
6
|
-
/* eslint-disable */
|
|
7
|
-
/**
|
|
8
|
-
* Dashboard API
|
|
9
|
-
* Dashboard API documentation
|
|
10
|
-
*
|
|
11
|
-
* The version of the OpenAPI document: 1.0.0
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
15
|
-
* https://openapi-generator.tech
|
|
16
|
-
* Do not edit the class manually.
|
|
17
|
-
*/
|
|
18
8
|
function ExportWaasWalletPrivateKeyRequestFromJSON(json) {
|
|
19
9
|
return ExportWaasWalletPrivateKeyRequestFromJSONTyped(json);
|
|
20
10
|
}
|
|
@@ -24,6 +14,7 @@ function ExportWaasWalletPrivateKeyRequestFromJSONTyped(json, ignoreDiscriminato
|
|
|
24
14
|
}
|
|
25
15
|
return {
|
|
26
16
|
'exportId': json['exportId'],
|
|
17
|
+
'addressType': !runtime.exists(json, 'addressType') ? undefined : json['addressType'],
|
|
27
18
|
};
|
|
28
19
|
}
|
|
29
20
|
function ExportWaasWalletPrivateKeyRequestToJSON(value) {
|
|
@@ -35,6 +26,7 @@ function ExportWaasWalletPrivateKeyRequestToJSON(value) {
|
|
|
35
26
|
}
|
|
36
27
|
return {
|
|
37
28
|
'exportId': value.exportId,
|
|
29
|
+
'addressType': value.addressType,
|
|
38
30
|
};
|
|
39
31
|
}
|
|
40
32
|
|
|
@@ -21,6 +21,12 @@ export interface ExportWaasWalletPrivateKeyRequest {
|
|
|
21
21
|
* @memberof ExportWaasWalletPrivateKeyRequest
|
|
22
22
|
*/
|
|
23
23
|
exportId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ExportWaasWalletPrivateKeyRequest
|
|
28
|
+
*/
|
|
29
|
+
addressType?: string;
|
|
24
30
|
}
|
|
25
31
|
export declare function ExportWaasWalletPrivateKeyRequestFromJSON(json: any): ExportWaasWalletPrivateKeyRequest;
|
|
26
32
|
export declare function ExportWaasWalletPrivateKeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExportWaasWalletPrivateKeyRequest;
|
|
@@ -1,16 +1,6 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
1
3
|
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Dashboard API
|
|
5
|
-
* Dashboard API documentation
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
4
|
function ExportWaasWalletPrivateKeyRequestFromJSON(json) {
|
|
15
5
|
return ExportWaasWalletPrivateKeyRequestFromJSONTyped(json);
|
|
16
6
|
}
|
|
@@ -20,6 +10,7 @@ function ExportWaasWalletPrivateKeyRequestFromJSONTyped(json, ignoreDiscriminato
|
|
|
20
10
|
}
|
|
21
11
|
return {
|
|
22
12
|
'exportId': json['exportId'],
|
|
13
|
+
'addressType': !exists(json, 'addressType') ? undefined : json['addressType'],
|
|
23
14
|
};
|
|
24
15
|
}
|
|
25
16
|
function ExportWaasWalletPrivateKeyRequestToJSON(value) {
|
|
@@ -31,6 +22,7 @@ function ExportWaasWalletPrivateKeyRequestToJSON(value) {
|
|
|
31
22
|
}
|
|
32
23
|
return {
|
|
33
24
|
'exportId': value.exportId,
|
|
25
|
+
'addressType': value.addressType,
|
|
34
26
|
};
|
|
35
27
|
}
|
|
36
28
|
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
6
|
var AuthenticationExtensionsClientOutputs = require('./AuthenticationExtensionsClientOutputs.cjs');
|
|
7
7
|
var AuthenticatorAttachment = require('./AuthenticatorAttachment.cjs');
|
|
8
|
+
var CreateMfaToken = require('./CreateMfaToken.cjs');
|
|
8
9
|
var PasskeyCredentialType = require('./PasskeyCredentialType.cjs');
|
|
9
10
|
var PasskeyRegistrationCredentialV2 = require('./PasskeyRegistrationCredentialV2.cjs');
|
|
10
11
|
|
|
@@ -23,6 +24,7 @@ function PasskeyRegisterRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
23
24
|
'clientExtensionResults': AuthenticationExtensionsClientOutputs.AuthenticationExtensionsClientOutputsFromJSON(json['clientExtensionResults']),
|
|
24
25
|
'authenticatorAttachment': !runtime.exists(json, 'authenticatorAttachment') ? undefined : AuthenticatorAttachment.AuthenticatorAttachmentFromJSON(json['authenticatorAttachment']),
|
|
25
26
|
'type': PasskeyCredentialType.PasskeyCredentialTypeFromJSON(json['type']),
|
|
27
|
+
'createMfaToken': !runtime.exists(json, 'createMfaToken') ? undefined : CreateMfaToken.CreateMfaTokenFromJSON(json['createMfaToken']),
|
|
26
28
|
};
|
|
27
29
|
}
|
|
28
30
|
function PasskeyRegisterRequestToJSON(value) {
|
|
@@ -39,6 +41,7 @@ function PasskeyRegisterRequestToJSON(value) {
|
|
|
39
41
|
'clientExtensionResults': AuthenticationExtensionsClientOutputs.AuthenticationExtensionsClientOutputsToJSON(value.clientExtensionResults),
|
|
40
42
|
'authenticatorAttachment': AuthenticatorAttachment.AuthenticatorAttachmentToJSON(value.authenticatorAttachment),
|
|
41
43
|
'type': PasskeyCredentialType.PasskeyCredentialTypeToJSON(value.type),
|
|
44
|
+
'createMfaToken': CreateMfaToken.CreateMfaTokenToJSON(value.createMfaToken),
|
|
42
45
|
};
|
|
43
46
|
}
|
|
44
47
|
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { AuthenticationExtensionsClientOutputs } from './AuthenticationExtensionsClientOutputs';
|
|
13
13
|
import { AuthenticatorAttachment } from './AuthenticatorAttachment';
|
|
14
|
+
import { CreateMfaToken } from './CreateMfaToken';
|
|
14
15
|
import { PasskeyCredentialType } from './PasskeyCredentialType';
|
|
15
16
|
import { PasskeyRegistrationCredentialV2 } from './PasskeyRegistrationCredentialV2';
|
|
16
17
|
/**
|
|
@@ -55,6 +56,12 @@ export interface PasskeyRegisterRequest {
|
|
|
55
56
|
* @memberof PasskeyRegisterRequest
|
|
56
57
|
*/
|
|
57
58
|
type: PasskeyCredentialType;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {CreateMfaToken}
|
|
62
|
+
* @memberof PasskeyRegisterRequest
|
|
63
|
+
*/
|
|
64
|
+
createMfaToken?: CreateMfaToken;
|
|
58
65
|
}
|
|
59
66
|
export declare function PasskeyRegisterRequestFromJSON(json: any): PasskeyRegisterRequest;
|
|
60
67
|
export declare function PasskeyRegisterRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PasskeyRegisterRequest;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
2
|
import { AuthenticationExtensionsClientOutputsFromJSON, AuthenticationExtensionsClientOutputsToJSON } from './AuthenticationExtensionsClientOutputs.js';
|
|
3
3
|
import { AuthenticatorAttachmentFromJSON, AuthenticatorAttachmentToJSON } from './AuthenticatorAttachment.js';
|
|
4
|
+
import { CreateMfaTokenFromJSON, CreateMfaTokenToJSON } from './CreateMfaToken.js';
|
|
4
5
|
import { PasskeyCredentialTypeFromJSON, PasskeyCredentialTypeToJSON } from './PasskeyCredentialType.js';
|
|
5
6
|
import { PasskeyRegistrationCredentialV2FromJSON, PasskeyRegistrationCredentialV2ToJSON } from './PasskeyRegistrationCredentialV2.js';
|
|
6
7
|
|
|
@@ -19,6 +20,7 @@ function PasskeyRegisterRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
19
20
|
'clientExtensionResults': AuthenticationExtensionsClientOutputsFromJSON(json['clientExtensionResults']),
|
|
20
21
|
'authenticatorAttachment': !exists(json, 'authenticatorAttachment') ? undefined : AuthenticatorAttachmentFromJSON(json['authenticatorAttachment']),
|
|
21
22
|
'type': PasskeyCredentialTypeFromJSON(json['type']),
|
|
23
|
+
'createMfaToken': !exists(json, 'createMfaToken') ? undefined : CreateMfaTokenFromJSON(json['createMfaToken']),
|
|
22
24
|
};
|
|
23
25
|
}
|
|
24
26
|
function PasskeyRegisterRequestToJSON(value) {
|
|
@@ -35,6 +37,7 @@ function PasskeyRegisterRequestToJSON(value) {
|
|
|
35
37
|
'clientExtensionResults': AuthenticationExtensionsClientOutputsToJSON(value.clientExtensionResults),
|
|
36
38
|
'authenticatorAttachment': AuthenticatorAttachmentToJSON(value.authenticatorAttachment),
|
|
37
39
|
'type': PasskeyCredentialTypeToJSON(value.type),
|
|
40
|
+
'createMfaToken': CreateMfaTokenToJSON(value.createMfaToken),
|
|
38
41
|
};
|
|
39
42
|
}
|
|
40
43
|
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
6
|
var SignMessageContext = require('./SignMessageContext.cjs');
|
|
7
|
+
var WalletBitcoinConfig = require('./WalletBitcoinConfig.cjs');
|
|
7
8
|
|
|
8
9
|
/* tslint:disable */
|
|
9
10
|
function SignMessageWithWaasRequestFromJSON(json) {
|
|
@@ -18,6 +19,7 @@ function SignMessageWithWaasRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
18
19
|
'isFormatted': !runtime.exists(json, 'isFormatted') ? undefined : json['isFormatted'],
|
|
19
20
|
'roomId': !runtime.exists(json, 'roomId') ? undefined : json['roomId'],
|
|
20
21
|
'context': !runtime.exists(json, 'context') ? undefined : SignMessageContext.SignMessageContextFromJSON(json['context']),
|
|
22
|
+
'bitcoinConfig': !runtime.exists(json, 'bitcoinConfig') ? undefined : WalletBitcoinConfig.WalletBitcoinConfigFromJSON(json['bitcoinConfig']),
|
|
21
23
|
};
|
|
22
24
|
}
|
|
23
25
|
function SignMessageWithWaasRequestToJSON(value) {
|
|
@@ -32,6 +34,7 @@ function SignMessageWithWaasRequestToJSON(value) {
|
|
|
32
34
|
'isFormatted': value.isFormatted,
|
|
33
35
|
'roomId': value.roomId,
|
|
34
36
|
'context': SignMessageContext.SignMessageContextToJSON(value.context),
|
|
37
|
+
'bitcoinConfig': WalletBitcoinConfig.WalletBitcoinConfigToJSON(value.bitcoinConfig),
|
|
35
38
|
};
|
|
36
39
|
}
|
|
37
40
|
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { SignMessageContext } from './SignMessageContext';
|
|
13
|
+
import { WalletBitcoinConfig } from './WalletBitcoinConfig';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -40,6 +41,12 @@ export interface SignMessageWithWaasRequest {
|
|
|
40
41
|
* @memberof SignMessageWithWaasRequest
|
|
41
42
|
*/
|
|
42
43
|
context?: SignMessageContext;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {WalletBitcoinConfig}
|
|
47
|
+
* @memberof SignMessageWithWaasRequest
|
|
48
|
+
*/
|
|
49
|
+
bitcoinConfig?: WalletBitcoinConfig;
|
|
43
50
|
}
|
|
44
51
|
export declare function SignMessageWithWaasRequestFromJSON(json: any): SignMessageWithWaasRequest;
|
|
45
52
|
export declare function SignMessageWithWaasRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignMessageWithWaasRequest;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
2
|
import { SignMessageContextFromJSON, SignMessageContextToJSON } from './SignMessageContext.js';
|
|
3
|
+
import { WalletBitcoinConfigFromJSON, WalletBitcoinConfigToJSON } from './WalletBitcoinConfig.js';
|
|
3
4
|
|
|
4
5
|
/* tslint:disable */
|
|
5
6
|
function SignMessageWithWaasRequestFromJSON(json) {
|
|
@@ -14,6 +15,7 @@ function SignMessageWithWaasRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
14
15
|
'isFormatted': !exists(json, 'isFormatted') ? undefined : json['isFormatted'],
|
|
15
16
|
'roomId': !exists(json, 'roomId') ? undefined : json['roomId'],
|
|
16
17
|
'context': !exists(json, 'context') ? undefined : SignMessageContextFromJSON(json['context']),
|
|
18
|
+
'bitcoinConfig': !exists(json, 'bitcoinConfig') ? undefined : WalletBitcoinConfigFromJSON(json['bitcoinConfig']),
|
|
17
19
|
};
|
|
18
20
|
}
|
|
19
21
|
function SignMessageWithWaasRequestToJSON(value) {
|
|
@@ -28,6 +30,7 @@ function SignMessageWithWaasRequestToJSON(value) {
|
|
|
28
30
|
'isFormatted': value.isFormatted,
|
|
29
31
|
'roomId': value.roomId,
|
|
30
32
|
'context': SignMessageContextToJSON(value.context),
|
|
33
|
+
'bitcoinConfig': WalletBitcoinConfigToJSON(value.bitcoinConfig),
|
|
31
34
|
};
|
|
32
35
|
}
|
|
33
36
|
|
|
@@ -25,6 +25,7 @@ exports.WaasChainEnum = void 0;
|
|
|
25
25
|
WaasChainEnum["Evm"] = "EVM";
|
|
26
26
|
WaasChainEnum["Svm"] = "SVM";
|
|
27
27
|
WaasChainEnum["Sui"] = "SUI";
|
|
28
|
+
WaasChainEnum["Btc"] = "BTC";
|
|
28
29
|
})(exports.WaasChainEnum || (exports.WaasChainEnum = {}));
|
|
29
30
|
function WaasChainEnumFromJSON(json) {
|
|
30
31
|
return WaasChainEnumFromJSONTyped(json);
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
export declare enum WaasChainEnum {
|
|
18
18
|
Evm = "EVM",
|
|
19
19
|
Svm = "SVM",
|
|
20
|
-
Sui = "SUI"
|
|
20
|
+
Sui = "SUI",
|
|
21
|
+
Btc = "BTC"
|
|
21
22
|
}
|
|
22
23
|
export declare function WaasChainEnumFromJSON(json: any): WaasChainEnum;
|
|
23
24
|
export declare function WaasChainEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasChainEnum;
|
|
@@ -21,6 +21,7 @@ var WaasChainEnum;
|
|
|
21
21
|
WaasChainEnum["Evm"] = "EVM";
|
|
22
22
|
WaasChainEnum["Svm"] = "SVM";
|
|
23
23
|
WaasChainEnum["Sui"] = "SUI";
|
|
24
|
+
WaasChainEnum["Btc"] = "BTC";
|
|
24
25
|
})(WaasChainEnum || (WaasChainEnum = {}));
|
|
25
26
|
function WaasChainEnumFromJSON(json) {
|
|
26
27
|
return WaasChainEnumFromJSONTyped(json);
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function WalletBitcoinConfigFromJSON(json) {
|
|
9
|
+
return WalletBitcoinConfigFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function WalletBitcoinConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'addressType': !runtime.exists(json, 'addressType') ? undefined : json['addressType'],
|
|
17
|
+
'network': !runtime.exists(json, 'network') ? undefined : json['network'],
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function WalletBitcoinConfigToJSON(value) {
|
|
21
|
+
if (value === undefined) {
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
if (value === null) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'addressType': value.addressType,
|
|
29
|
+
'network': value.network,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
exports.WalletBitcoinConfigFromJSON = WalletBitcoinConfigFromJSON;
|
|
34
|
+
exports.WalletBitcoinConfigFromJSONTyped = WalletBitcoinConfigFromJSONTyped;
|
|
35
|
+
exports.WalletBitcoinConfigToJSON = WalletBitcoinConfigToJSON;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface WalletBitcoinConfig
|
|
16
|
+
*/
|
|
17
|
+
export interface WalletBitcoinConfig {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof WalletBitcoinConfig
|
|
22
|
+
*/
|
|
23
|
+
addressType?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof WalletBitcoinConfig
|
|
28
|
+
*/
|
|
29
|
+
network?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function WalletBitcoinConfigFromJSON(json: any): WalletBitcoinConfig;
|
|
32
|
+
export declare function WalletBitcoinConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): WalletBitcoinConfig;
|
|
33
|
+
export declare function WalletBitcoinConfigToJSON(value?: WalletBitcoinConfig | null): any;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function WalletBitcoinConfigFromJSON(json) {
|
|
5
|
+
return WalletBitcoinConfigFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function WalletBitcoinConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'addressType': !exists(json, 'addressType') ? undefined : json['addressType'],
|
|
13
|
+
'network': !exists(json, 'network') ? undefined : json['network'],
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
function WalletBitcoinConfigToJSON(value) {
|
|
17
|
+
if (value === undefined) {
|
|
18
|
+
return undefined;
|
|
19
|
+
}
|
|
20
|
+
if (value === null) {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
return {
|
|
24
|
+
'addressType': value.addressType,
|
|
25
|
+
'network': value.network,
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { WalletBitcoinConfigFromJSON, WalletBitcoinConfigFromJSONTyped, WalletBitcoinConfigToJSON };
|
package/src/models/index.d.ts
CHANGED
|
@@ -363,6 +363,7 @@ export * from './WaasWalletProperties';
|
|
|
363
363
|
export * from './WaasWalletSettings';
|
|
364
364
|
export * from './WalletAdditionalAddress';
|
|
365
365
|
export * from './WalletAddressType';
|
|
366
|
+
export * from './WalletBitcoinConfig';
|
|
366
367
|
export * from './WalletKeyShareInfo';
|
|
367
368
|
export * from './WalletKeyShareInfoWithEncryptedAccountCredential';
|
|
368
369
|
export * from './WalletKeyShareInfoWithEncryptedAccountCredentialAllOf';
|