@dynamic-labs/sdk-api-core 0.0.787 → 0.0.789
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/DelegatedShareDeliveryRequestEncryptedDelegatedShare.cjs +12 -22
- package/src/models/DelegatedShareDeliveryRequestEncryptedDelegatedShare.d.ts +6 -6
- package/src/models/DelegatedShareDeliveryRequestEncryptedDelegatedShare.js +12 -22
- package/src/models/WaasWalletProperties.cjs +3 -0
- package/src/models/WaasWalletProperties.d.ts +7 -0
- package/src/models/WaasWalletProperties.js +3 -0
- package/src/models/WaasWalletSettings.cjs +38 -0
- package/src/models/WaasWalletSettings.d.ts +40 -0
- package/src/models/WaasWalletSettings.js +32 -0
- package/src/models/WalletProperties.cjs +3 -0
- package/src/models/WalletProperties.d.ts +7 -0
- package/src/models/WalletProperties.js +3 -0
- package/src/models/index.d.ts +1 -0
package/package.json
CHANGED
package/src/index.cjs
CHANGED
|
@@ -340,6 +340,7 @@ var WaasBackupOptionsEnum = require('./models/WaasBackupOptionsEnum.cjs');
|
|
|
340
340
|
var WaasChainEnum = require('./models/WaasChainEnum.cjs');
|
|
341
341
|
var WaasDelegatedAccessEncryptionPublicKeyType = require('./models/WaasDelegatedAccessEncryptionPublicKeyType.cjs');
|
|
342
342
|
var WaasWalletProperties = require('./models/WaasWalletProperties.cjs');
|
|
343
|
+
var WaasWalletSettings = require('./models/WaasWalletSettings.cjs');
|
|
343
344
|
var WalletAdditionalAddress = require('./models/WalletAdditionalAddress.cjs');
|
|
344
345
|
var WalletAddressType = require('./models/WalletAddressType.cjs');
|
|
345
346
|
var WalletKeyShareInfo = require('./models/WalletKeyShareInfo.cjs');
|
|
@@ -1603,6 +1604,9 @@ exports.WaasDelegatedAccessEncryptionPublicKeyTypeToJSON = WaasDelegatedAccessEn
|
|
|
1603
1604
|
exports.WaasWalletPropertiesFromJSON = WaasWalletProperties.WaasWalletPropertiesFromJSON;
|
|
1604
1605
|
exports.WaasWalletPropertiesFromJSONTyped = WaasWalletProperties.WaasWalletPropertiesFromJSONTyped;
|
|
1605
1606
|
exports.WaasWalletPropertiesToJSON = WaasWalletProperties.WaasWalletPropertiesToJSON;
|
|
1607
|
+
exports.WaasWalletSettingsFromJSON = WaasWalletSettings.WaasWalletSettingsFromJSON;
|
|
1608
|
+
exports.WaasWalletSettingsFromJSONTyped = WaasWalletSettings.WaasWalletSettingsFromJSONTyped;
|
|
1609
|
+
exports.WaasWalletSettingsToJSON = WaasWalletSettings.WaasWalletSettingsToJSON;
|
|
1606
1610
|
exports.WalletAdditionalAddressFromJSON = WalletAdditionalAddress.WalletAdditionalAddressFromJSON;
|
|
1607
1611
|
exports.WalletAdditionalAddressFromJSONTyped = WalletAdditionalAddress.WalletAdditionalAddressFromJSONTyped;
|
|
1608
1612
|
exports.WalletAdditionalAddressToJSON = WalletAdditionalAddress.WalletAdditionalAddressToJSON;
|
package/src/index.js
CHANGED
|
@@ -336,6 +336,7 @@ export { WaasBackupOptionsEnum, WaasBackupOptionsEnumFromJSON, WaasBackupOptions
|
|
|
336
336
|
export { WaasChainEnum, WaasChainEnumFromJSON, WaasChainEnumFromJSONTyped, WaasChainEnumToJSON } from './models/WaasChainEnum.js';
|
|
337
337
|
export { WaasDelegatedAccessEncryptionPublicKeyType, WaasDelegatedAccessEncryptionPublicKeyTypeFromJSON, WaasDelegatedAccessEncryptionPublicKeyTypeFromJSONTyped, WaasDelegatedAccessEncryptionPublicKeyTypeToJSON } from './models/WaasDelegatedAccessEncryptionPublicKeyType.js';
|
|
338
338
|
export { WaasWalletPropertiesFromJSON, WaasWalletPropertiesFromJSONTyped, WaasWalletPropertiesToJSON } from './models/WaasWalletProperties.js';
|
|
339
|
+
export { WaasWalletSettingsFromJSON, WaasWalletSettingsFromJSONTyped, WaasWalletSettingsToJSON } from './models/WaasWalletSettings.js';
|
|
339
340
|
export { WalletAdditionalAddressFromJSON, WalletAdditionalAddressFromJSONTyped, WalletAdditionalAddressToJSON } from './models/WalletAdditionalAddress.js';
|
|
340
341
|
export { WalletAddressType, WalletAddressTypeFromJSON, WalletAddressTypeFromJSONTyped, WalletAddressTypeToJSON } from './models/WalletAddressType.js';
|
|
341
342
|
export { WalletKeyShareInfoFromJSON, WalletKeyShareInfoFromJSONTyped, WalletKeyShareInfoToJSON } from './models/WalletKeyShareInfo.js';
|
|
@@ -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 DelegatedShareDeliveryRequestEncryptedDelegatedShareFromJSON(json) {
|
|
19
9
|
return DelegatedShareDeliveryRequestEncryptedDelegatedShareFromJSONTyped(json);
|
|
20
10
|
}
|
|
@@ -23,12 +13,12 @@ function DelegatedShareDeliveryRequestEncryptedDelegatedShareFromJSONTyped(json,
|
|
|
23
13
|
return json;
|
|
24
14
|
}
|
|
25
15
|
return {
|
|
26
|
-
'
|
|
16
|
+
'alg': json['alg'],
|
|
27
17
|
'iv': json['iv'],
|
|
28
|
-
'
|
|
29
|
-
'
|
|
30
|
-
'
|
|
31
|
-
'
|
|
18
|
+
'ct': json['ct'],
|
|
19
|
+
'tag': json['tag'],
|
|
20
|
+
'ek': json['ek'],
|
|
21
|
+
'kid': !runtime.exists(json, 'kid') ? undefined : json['kid'],
|
|
32
22
|
};
|
|
33
23
|
}
|
|
34
24
|
function DelegatedShareDeliveryRequestEncryptedDelegatedShareToJSON(value) {
|
|
@@ -39,12 +29,12 @@ function DelegatedShareDeliveryRequestEncryptedDelegatedShareToJSON(value) {
|
|
|
39
29
|
return null;
|
|
40
30
|
}
|
|
41
31
|
return {
|
|
42
|
-
'
|
|
32
|
+
'alg': value.alg,
|
|
43
33
|
'iv': value.iv,
|
|
44
|
-
'
|
|
45
|
-
'
|
|
46
|
-
'
|
|
47
|
-
'
|
|
34
|
+
'ct': value.ct,
|
|
35
|
+
'tag': value.tag,
|
|
36
|
+
'ek': value.ek,
|
|
37
|
+
'kid': value.kid,
|
|
48
38
|
};
|
|
49
39
|
}
|
|
50
40
|
|
|
@@ -20,7 +20,7 @@ export interface DelegatedShareDeliveryRequestEncryptedDelegatedShare {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof DelegatedShareDeliveryRequestEncryptedDelegatedShare
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
alg: string;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @type {string}
|
|
@@ -32,25 +32,25 @@ export interface DelegatedShareDeliveryRequestEncryptedDelegatedShare {
|
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof DelegatedShareDeliveryRequestEncryptedDelegatedShare
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
ct: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof DelegatedShareDeliveryRequestEncryptedDelegatedShare
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
tag: string;
|
|
42
42
|
/**
|
|
43
43
|
* A string with a max length of 4096 characters
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof DelegatedShareDeliveryRequestEncryptedDelegatedShare
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
ek: string;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
*
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof DelegatedShareDeliveryRequestEncryptedDelegatedShare
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
kid?: string;
|
|
54
54
|
}
|
|
55
55
|
export declare function DelegatedShareDeliveryRequestEncryptedDelegatedShareFromJSON(json: any): DelegatedShareDeliveryRequestEncryptedDelegatedShare;
|
|
56
56
|
export declare function DelegatedShareDeliveryRequestEncryptedDelegatedShareFromJSONTyped(json: any, ignoreDiscriminator: boolean): DelegatedShareDeliveryRequestEncryptedDelegatedShare;
|
|
@@ -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 DelegatedShareDeliveryRequestEncryptedDelegatedShareFromJSON(json) {
|
|
15
5
|
return DelegatedShareDeliveryRequestEncryptedDelegatedShareFromJSONTyped(json);
|
|
16
6
|
}
|
|
@@ -19,12 +9,12 @@ function DelegatedShareDeliveryRequestEncryptedDelegatedShareFromJSONTyped(json,
|
|
|
19
9
|
return json;
|
|
20
10
|
}
|
|
21
11
|
return {
|
|
22
|
-
'
|
|
12
|
+
'alg': json['alg'],
|
|
23
13
|
'iv': json['iv'],
|
|
24
|
-
'
|
|
25
|
-
'
|
|
26
|
-
'
|
|
27
|
-
'
|
|
14
|
+
'ct': json['ct'],
|
|
15
|
+
'tag': json['tag'],
|
|
16
|
+
'ek': json['ek'],
|
|
17
|
+
'kid': !exists(json, 'kid') ? undefined : json['kid'],
|
|
28
18
|
};
|
|
29
19
|
}
|
|
30
20
|
function DelegatedShareDeliveryRequestEncryptedDelegatedShareToJSON(value) {
|
|
@@ -35,12 +25,12 @@ function DelegatedShareDeliveryRequestEncryptedDelegatedShareToJSON(value) {
|
|
|
35
25
|
return null;
|
|
36
26
|
}
|
|
37
27
|
return {
|
|
38
|
-
'
|
|
28
|
+
'alg': value.alg,
|
|
39
29
|
'iv': value.iv,
|
|
40
|
-
'
|
|
41
|
-
'
|
|
42
|
-
'
|
|
43
|
-
'
|
|
30
|
+
'ct': value.ct,
|
|
31
|
+
'tag': value.tag,
|
|
32
|
+
'ek': value.ek,
|
|
33
|
+
'kid': value.kid,
|
|
44
34
|
};
|
|
45
35
|
}
|
|
46
36
|
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
6
|
var ThresholdSignatureScheme = require('./ThresholdSignatureScheme.cjs');
|
|
7
|
+
var WaasWalletSettings = require('./WaasWalletSettings.cjs');
|
|
7
8
|
var WalletKeyShareInfo = require('./WalletKeyShareInfo.cjs');
|
|
8
9
|
|
|
9
10
|
/* tslint:disable */
|
|
@@ -18,6 +19,7 @@ function WaasWalletPropertiesFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
18
19
|
'keyShares': !runtime.exists(json, 'keyShares') ? undefined : (json['keyShares'].map(WalletKeyShareInfo.WalletKeyShareInfoFromJSON)),
|
|
19
20
|
'thresholdSignatureScheme': !runtime.exists(json, 'thresholdSignatureScheme') ? undefined : ThresholdSignatureScheme.ThresholdSignatureSchemeFromJSON(json['thresholdSignatureScheme']),
|
|
20
21
|
'derivationPath': !runtime.exists(json, 'derivationPath') ? undefined : json['derivationPath'],
|
|
22
|
+
'settings': !runtime.exists(json, 'settings') ? undefined : WaasWalletSettings.WaasWalletSettingsFromJSON(json['settings']),
|
|
21
23
|
};
|
|
22
24
|
}
|
|
23
25
|
function WaasWalletPropertiesToJSON(value) {
|
|
@@ -31,6 +33,7 @@ function WaasWalletPropertiesToJSON(value) {
|
|
|
31
33
|
'keyShares': value.keyShares === undefined ? undefined : (value.keyShares.map(WalletKeyShareInfo.WalletKeyShareInfoToJSON)),
|
|
32
34
|
'thresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeToJSON(value.thresholdSignatureScheme),
|
|
33
35
|
'derivationPath': value.derivationPath,
|
|
36
|
+
'settings': WaasWalletSettings.WaasWalletSettingsToJSON(value.settings),
|
|
34
37
|
};
|
|
35
38
|
}
|
|
36
39
|
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { ThresholdSignatureScheme } from './ThresholdSignatureScheme';
|
|
13
|
+
import { WaasWalletSettings } from './WaasWalletSettings';
|
|
13
14
|
import { WalletKeyShareInfo } from './WalletKeyShareInfo';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
@@ -35,6 +36,12 @@ export interface WaasWalletProperties {
|
|
|
35
36
|
* @memberof WaasWalletProperties
|
|
36
37
|
*/
|
|
37
38
|
derivationPath?: string;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {WaasWalletSettings}
|
|
42
|
+
* @memberof WaasWalletProperties
|
|
43
|
+
*/
|
|
44
|
+
settings?: WaasWalletSettings;
|
|
38
45
|
}
|
|
39
46
|
export declare function WaasWalletPropertiesFromJSON(json: any): WaasWalletProperties;
|
|
40
47
|
export declare function WaasWalletPropertiesFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasWalletProperties;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
2
|
import { ThresholdSignatureSchemeFromJSON, ThresholdSignatureSchemeToJSON } from './ThresholdSignatureScheme.js';
|
|
3
|
+
import { WaasWalletSettingsFromJSON, WaasWalletSettingsToJSON } from './WaasWalletSettings.js';
|
|
3
4
|
import { WalletKeyShareInfoFromJSON, WalletKeyShareInfoToJSON } from './WalletKeyShareInfo.js';
|
|
4
5
|
|
|
5
6
|
/* tslint:disable */
|
|
@@ -14,6 +15,7 @@ function WaasWalletPropertiesFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
14
15
|
'keyShares': !exists(json, 'keyShares') ? undefined : (json['keyShares'].map(WalletKeyShareInfoFromJSON)),
|
|
15
16
|
'thresholdSignatureScheme': !exists(json, 'thresholdSignatureScheme') ? undefined : ThresholdSignatureSchemeFromJSON(json['thresholdSignatureScheme']),
|
|
16
17
|
'derivationPath': !exists(json, 'derivationPath') ? undefined : json['derivationPath'],
|
|
18
|
+
'settings': !exists(json, 'settings') ? undefined : WaasWalletSettingsFromJSON(json['settings']),
|
|
17
19
|
};
|
|
18
20
|
}
|
|
19
21
|
function WaasWalletPropertiesToJSON(value) {
|
|
@@ -27,6 +29,7 @@ function WaasWalletPropertiesToJSON(value) {
|
|
|
27
29
|
'keyShares': value.keyShares === undefined ? undefined : (value.keyShares.map(WalletKeyShareInfoToJSON)),
|
|
28
30
|
'thresholdSignatureScheme': ThresholdSignatureSchemeToJSON(value.thresholdSignatureScheme),
|
|
29
31
|
'derivationPath': value.derivationPath,
|
|
32
|
+
'settings': WaasWalletSettingsToJSON(value.settings),
|
|
30
33
|
};
|
|
31
34
|
}
|
|
32
35
|
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var ThresholdSignatureScheme = require('./ThresholdSignatureScheme.cjs');
|
|
7
|
+
|
|
8
|
+
/* tslint:disable */
|
|
9
|
+
function WaasWalletSettingsFromJSON(json) {
|
|
10
|
+
return WaasWalletSettingsFromJSONTyped(json);
|
|
11
|
+
}
|
|
12
|
+
function WaasWalletSettingsFromJSONTyped(json, ignoreDiscriminator) {
|
|
13
|
+
if ((json === undefined) || (json === null)) {
|
|
14
|
+
return json;
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
'hasDeniedDelegatedAccess': !runtime.exists(json, 'hasDeniedDelegatedAccess') ? undefined : json['hasDeniedDelegatedAccess'],
|
|
18
|
+
'shouldRefreshOnNextSignOn': !runtime.exists(json, 'shouldRefreshOnNextSignOn') ? undefined : ThresholdSignatureScheme.ThresholdSignatureSchemeFromJSON(json['shouldRefreshOnNextSignOn']),
|
|
19
|
+
'shouldReshareOnNextSignOn': !runtime.exists(json, 'shouldReshareOnNextSignOn') ? undefined : json['shouldReshareOnNextSignOn'],
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function WaasWalletSettingsToJSON(value) {
|
|
23
|
+
if (value === undefined) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
if (value === null) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'hasDeniedDelegatedAccess': value.hasDeniedDelegatedAccess,
|
|
31
|
+
'shouldRefreshOnNextSignOn': ThresholdSignatureScheme.ThresholdSignatureSchemeToJSON(value.shouldRefreshOnNextSignOn),
|
|
32
|
+
'shouldReshareOnNextSignOn': value.shouldReshareOnNextSignOn,
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
exports.WaasWalletSettingsFromJSON = WaasWalletSettingsFromJSON;
|
|
37
|
+
exports.WaasWalletSettingsFromJSONTyped = WaasWalletSettingsFromJSONTyped;
|
|
38
|
+
exports.WaasWalletSettingsToJSON = WaasWalletSettingsToJSON;
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
import { ThresholdSignatureScheme } from './ThresholdSignatureScheme';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface WaasWalletSettings
|
|
17
|
+
*/
|
|
18
|
+
export interface WaasWalletSettings {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof WaasWalletSettings
|
|
23
|
+
*/
|
|
24
|
+
hasDeniedDelegatedAccess?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {ThresholdSignatureScheme}
|
|
28
|
+
* @memberof WaasWalletSettings
|
|
29
|
+
*/
|
|
30
|
+
shouldRefreshOnNextSignOn?: ThresholdSignatureScheme;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {boolean}
|
|
34
|
+
* @memberof WaasWalletSettings
|
|
35
|
+
*/
|
|
36
|
+
shouldReshareOnNextSignOn?: boolean;
|
|
37
|
+
}
|
|
38
|
+
export declare function WaasWalletSettingsFromJSON(json: any): WaasWalletSettings;
|
|
39
|
+
export declare function WaasWalletSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasWalletSettings;
|
|
40
|
+
export declare function WaasWalletSettingsToJSON(value?: WaasWalletSettings | null): any;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { ThresholdSignatureSchemeFromJSON, ThresholdSignatureSchemeToJSON } from './ThresholdSignatureScheme.js';
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
function WaasWalletSettingsFromJSON(json) {
|
|
6
|
+
return WaasWalletSettingsFromJSONTyped(json);
|
|
7
|
+
}
|
|
8
|
+
function WaasWalletSettingsFromJSONTyped(json, ignoreDiscriminator) {
|
|
9
|
+
if ((json === undefined) || (json === null)) {
|
|
10
|
+
return json;
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
'hasDeniedDelegatedAccess': !exists(json, 'hasDeniedDelegatedAccess') ? undefined : json['hasDeniedDelegatedAccess'],
|
|
14
|
+
'shouldRefreshOnNextSignOn': !exists(json, 'shouldRefreshOnNextSignOn') ? undefined : ThresholdSignatureSchemeFromJSON(json['shouldRefreshOnNextSignOn']),
|
|
15
|
+
'shouldReshareOnNextSignOn': !exists(json, 'shouldReshareOnNextSignOn') ? undefined : json['shouldReshareOnNextSignOn'],
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function WaasWalletSettingsToJSON(value) {
|
|
19
|
+
if (value === undefined) {
|
|
20
|
+
return undefined;
|
|
21
|
+
}
|
|
22
|
+
if (value === null) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'hasDeniedDelegatedAccess': value.hasDeniedDelegatedAccess,
|
|
27
|
+
'shouldRefreshOnNextSignOn': ThresholdSignatureSchemeToJSON(value.shouldRefreshOnNextSignOn),
|
|
28
|
+
'shouldReshareOnNextSignOn': value.shouldReshareOnNextSignOn,
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { WaasWalletSettingsFromJSON, WaasWalletSettingsFromJSONTyped, WaasWalletSettingsToJSON };
|
|
@@ -10,6 +10,7 @@ var PasswordSourceTypeEnum = require('./PasswordSourceTypeEnum.cjs');
|
|
|
10
10
|
var ProviderEntryPointVersionEnum = require('./ProviderEntryPointVersionEnum.cjs');
|
|
11
11
|
var ProviderKernelVersionEnum = require('./ProviderKernelVersionEnum.cjs');
|
|
12
12
|
var ThresholdSignatureScheme = require('./ThresholdSignatureScheme.cjs');
|
|
13
|
+
var WaasWalletSettings = require('./WaasWalletSettings.cjs');
|
|
13
14
|
var WalletKeyShareInfo = require('./WalletKeyShareInfo.cjs');
|
|
14
15
|
|
|
15
16
|
/* tslint:disable */
|
|
@@ -37,6 +38,7 @@ function WalletPropertiesFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
38
|
'keyShares': !runtime.exists(json, 'keyShares') ? undefined : (json['keyShares'].map(WalletKeyShareInfo.WalletKeyShareInfoFromJSON)),
|
|
38
39
|
'thresholdSignatureScheme': !runtime.exists(json, 'thresholdSignatureScheme') ? undefined : ThresholdSignatureScheme.ThresholdSignatureSchemeFromJSON(json['thresholdSignatureScheme']),
|
|
39
40
|
'derivationPath': !runtime.exists(json, 'derivationPath') ? undefined : json['derivationPath'],
|
|
41
|
+
'settings': !runtime.exists(json, 'settings') ? undefined : WaasWalletSettings.WaasWalletSettingsFromJSON(json['settings']),
|
|
40
42
|
};
|
|
41
43
|
}
|
|
42
44
|
function WalletPropertiesToJSON(value) {
|
|
@@ -63,6 +65,7 @@ function WalletPropertiesToJSON(value) {
|
|
|
63
65
|
'keyShares': value.keyShares === undefined ? undefined : (value.keyShares.map(WalletKeyShareInfo.WalletKeyShareInfoToJSON)),
|
|
64
66
|
'thresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeToJSON(value.thresholdSignatureScheme),
|
|
65
67
|
'derivationPath': value.derivationPath,
|
|
68
|
+
'settings': WaasWalletSettings.WaasWalletSettingsToJSON(value.settings),
|
|
66
69
|
};
|
|
67
70
|
}
|
|
68
71
|
|
|
@@ -16,6 +16,7 @@ import { PasswordSourceTypeEnum } from './PasswordSourceTypeEnum';
|
|
|
16
16
|
import { ProviderEntryPointVersionEnum } from './ProviderEntryPointVersionEnum';
|
|
17
17
|
import { ProviderKernelVersionEnum } from './ProviderKernelVersionEnum';
|
|
18
18
|
import { ThresholdSignatureScheme } from './ThresholdSignatureScheme';
|
|
19
|
+
import { WaasWalletSettings } from './WaasWalletSettings';
|
|
19
20
|
import { WalletKeyShareInfo } from './WalletKeyShareInfo';
|
|
20
21
|
/**
|
|
21
22
|
*
|
|
@@ -119,6 +120,12 @@ export interface WalletProperties {
|
|
|
119
120
|
* @memberof WalletProperties
|
|
120
121
|
*/
|
|
121
122
|
derivationPath?: string;
|
|
123
|
+
/**
|
|
124
|
+
*
|
|
125
|
+
* @type {WaasWalletSettings}
|
|
126
|
+
* @memberof WalletProperties
|
|
127
|
+
*/
|
|
128
|
+
settings?: WaasWalletSettings;
|
|
122
129
|
}
|
|
123
130
|
export declare function WalletPropertiesFromJSON(json: any): WalletProperties;
|
|
124
131
|
export declare function WalletPropertiesFromJSONTyped(json: any, ignoreDiscriminator: boolean): WalletProperties;
|
|
@@ -6,6 +6,7 @@ import { PasswordSourceTypeEnumFromJSON, PasswordSourceTypeEnumToJSON } from './
|
|
|
6
6
|
import { ProviderEntryPointVersionEnumFromJSON, ProviderEntryPointVersionEnumToJSON } from './ProviderEntryPointVersionEnum.js';
|
|
7
7
|
import { ProviderKernelVersionEnumFromJSON, ProviderKernelVersionEnumToJSON } from './ProviderKernelVersionEnum.js';
|
|
8
8
|
import { ThresholdSignatureSchemeFromJSON, ThresholdSignatureSchemeToJSON } from './ThresholdSignatureScheme.js';
|
|
9
|
+
import { WaasWalletSettingsFromJSON, WaasWalletSettingsToJSON } from './WaasWalletSettings.js';
|
|
9
10
|
import { WalletKeyShareInfoFromJSON, WalletKeyShareInfoToJSON } from './WalletKeyShareInfo.js';
|
|
10
11
|
|
|
11
12
|
/* tslint:disable */
|
|
@@ -33,6 +34,7 @@ function WalletPropertiesFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
34
|
'keyShares': !exists(json, 'keyShares') ? undefined : (json['keyShares'].map(WalletKeyShareInfoFromJSON)),
|
|
34
35
|
'thresholdSignatureScheme': !exists(json, 'thresholdSignatureScheme') ? undefined : ThresholdSignatureSchemeFromJSON(json['thresholdSignatureScheme']),
|
|
35
36
|
'derivationPath': !exists(json, 'derivationPath') ? undefined : json['derivationPath'],
|
|
37
|
+
'settings': !exists(json, 'settings') ? undefined : WaasWalletSettingsFromJSON(json['settings']),
|
|
36
38
|
};
|
|
37
39
|
}
|
|
38
40
|
function WalletPropertiesToJSON(value) {
|
|
@@ -59,6 +61,7 @@ function WalletPropertiesToJSON(value) {
|
|
|
59
61
|
'keyShares': value.keyShares === undefined ? undefined : (value.keyShares.map(WalletKeyShareInfoToJSON)),
|
|
60
62
|
'thresholdSignatureScheme': ThresholdSignatureSchemeToJSON(value.thresholdSignatureScheme),
|
|
61
63
|
'derivationPath': value.derivationPath,
|
|
64
|
+
'settings': WaasWalletSettingsToJSON(value.settings),
|
|
62
65
|
};
|
|
63
66
|
}
|
|
64
67
|
|
package/src/models/index.d.ts
CHANGED
|
@@ -333,6 +333,7 @@ export * from './WaasBackupOptionsEnum';
|
|
|
333
333
|
export * from './WaasChainEnum';
|
|
334
334
|
export * from './WaasDelegatedAccessEncryptionPublicKeyType';
|
|
335
335
|
export * from './WaasWalletProperties';
|
|
336
|
+
export * from './WaasWalletSettings';
|
|
336
337
|
export * from './WalletAdditionalAddress';
|
|
337
338
|
export * from './WalletAddressType';
|
|
338
339
|
export * from './WalletKeyShareInfo';
|