@dynamic-labs/sdk-api-core 0.0.955 → 0.0.957
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/WaasShareSet.cjs +40 -0
- package/src/models/WaasShareSet.d.ts +47 -0
- package/src/models/WaasShareSet.js +34 -0
- package/src/models/WaasWalletProperties.cjs +3 -0
- package/src/models/WaasWalletProperties.d.ts +9 -2
- package/src/models/WaasWalletProperties.js +3 -0
- package/src/models/WalletProperties.cjs +3 -0
- package/src/models/WalletProperties.d.ts +9 -2
- package/src/models/WalletProperties.js +3 -0
- package/src/models/index.d.ts +1 -0
package/package.json
CHANGED
package/src/index.cjs
CHANGED
|
@@ -431,6 +431,7 @@ var VerifyUnlinkRequest = require('./models/VerifyUnlinkRequest.cjs');
|
|
|
431
431
|
var WaasBackupOptionsEnum = require('./models/WaasBackupOptionsEnum.cjs');
|
|
432
432
|
var WaasChainEnum = require('./models/WaasChainEnum.cjs');
|
|
433
433
|
var WaasDelegatedAccessEncryptionPublicKeyType = require('./models/WaasDelegatedAccessEncryptionPublicKeyType.cjs');
|
|
434
|
+
var WaasShareSet = require('./models/WaasShareSet.cjs');
|
|
434
435
|
var WaasWalletProperties = require('./models/WaasWalletProperties.cjs');
|
|
435
436
|
var WaasWalletSettings = require('./models/WaasWalletSettings.cjs');
|
|
436
437
|
var WaasWalletShareSetType = require('./models/WaasWalletShareSetType.cjs');
|
|
@@ -2075,6 +2076,9 @@ Object.defineProperty(exports, 'WaasDelegatedAccessEncryptionPublicKeyType', {
|
|
|
2075
2076
|
exports.WaasDelegatedAccessEncryptionPublicKeyTypeFromJSON = WaasDelegatedAccessEncryptionPublicKeyType.WaasDelegatedAccessEncryptionPublicKeyTypeFromJSON;
|
|
2076
2077
|
exports.WaasDelegatedAccessEncryptionPublicKeyTypeFromJSONTyped = WaasDelegatedAccessEncryptionPublicKeyType.WaasDelegatedAccessEncryptionPublicKeyTypeFromJSONTyped;
|
|
2077
2078
|
exports.WaasDelegatedAccessEncryptionPublicKeyTypeToJSON = WaasDelegatedAccessEncryptionPublicKeyType.WaasDelegatedAccessEncryptionPublicKeyTypeToJSON;
|
|
2079
|
+
exports.WaasShareSetFromJSON = WaasShareSet.WaasShareSetFromJSON;
|
|
2080
|
+
exports.WaasShareSetFromJSONTyped = WaasShareSet.WaasShareSetFromJSONTyped;
|
|
2081
|
+
exports.WaasShareSetToJSON = WaasShareSet.WaasShareSetToJSON;
|
|
2078
2082
|
exports.WaasWalletPropertiesFromJSON = WaasWalletProperties.WaasWalletPropertiesFromJSON;
|
|
2079
2083
|
exports.WaasWalletPropertiesFromJSONTyped = WaasWalletProperties.WaasWalletPropertiesFromJSONTyped;
|
|
2080
2084
|
exports.WaasWalletPropertiesToJSON = WaasWalletProperties.WaasWalletPropertiesToJSON;
|
package/src/index.js
CHANGED
|
@@ -427,6 +427,7 @@ export { VerifyUnlinkRequestFromJSON, VerifyUnlinkRequestFromJSONTyped, VerifyUn
|
|
|
427
427
|
export { WaasBackupOptionsEnum, WaasBackupOptionsEnumFromJSON, WaasBackupOptionsEnumFromJSONTyped, WaasBackupOptionsEnumToJSON } from './models/WaasBackupOptionsEnum.js';
|
|
428
428
|
export { WaasChainEnum, WaasChainEnumFromJSON, WaasChainEnumFromJSONTyped, WaasChainEnumToJSON } from './models/WaasChainEnum.js';
|
|
429
429
|
export { WaasDelegatedAccessEncryptionPublicKeyType, WaasDelegatedAccessEncryptionPublicKeyTypeFromJSON, WaasDelegatedAccessEncryptionPublicKeyTypeFromJSONTyped, WaasDelegatedAccessEncryptionPublicKeyTypeToJSON } from './models/WaasDelegatedAccessEncryptionPublicKeyType.js';
|
|
430
|
+
export { WaasShareSetFromJSON, WaasShareSetFromJSONTyped, WaasShareSetToJSON } from './models/WaasShareSet.js';
|
|
430
431
|
export { WaasWalletPropertiesFromJSON, WaasWalletPropertiesFromJSONTyped, WaasWalletPropertiesToJSON } from './models/WaasWalletProperties.js';
|
|
431
432
|
export { WaasWalletSettingsFromJSON, WaasWalletSettingsFromJSONTyped, WaasWalletSettingsToJSON } from './models/WaasWalletSettings.js';
|
|
432
433
|
export { WaasWalletShareSetType, WaasWalletShareSetTypeFromJSON, WaasWalletShareSetTypeFromJSONTyped, WaasWalletShareSetTypeToJSON } from './models/WaasWalletShareSetType.js';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var ThresholdSignatureScheme = require('./ThresholdSignatureScheme.cjs');
|
|
6
|
+
var WaasWalletShareSetType = require('./WaasWalletShareSetType.cjs');
|
|
7
|
+
|
|
8
|
+
/* tslint:disable */
|
|
9
|
+
function WaasShareSetFromJSON(json) {
|
|
10
|
+
return WaasShareSetFromJSONTyped(json);
|
|
11
|
+
}
|
|
12
|
+
function WaasShareSetFromJSONTyped(json, ignoreDiscriminator) {
|
|
13
|
+
if ((json === undefined) || (json === null)) {
|
|
14
|
+
return json;
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
'shareSetId': json['shareSetId'],
|
|
18
|
+
'shareSetType': WaasWalletShareSetType.WaasWalletShareSetTypeFromJSON(json['shareSetType']),
|
|
19
|
+
'thresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeFromJSON(json['thresholdSignatureScheme']),
|
|
20
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function WaasShareSetToJSON(value) {
|
|
24
|
+
if (value === undefined) {
|
|
25
|
+
return undefined;
|
|
26
|
+
}
|
|
27
|
+
if (value === null) {
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'shareSetId': value.shareSetId,
|
|
32
|
+
'shareSetType': WaasWalletShareSetType.WaasWalletShareSetTypeToJSON(value.shareSetType),
|
|
33
|
+
'thresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeToJSON(value.thresholdSignatureScheme),
|
|
34
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
exports.WaasShareSetFromJSON = WaasShareSetFromJSON;
|
|
39
|
+
exports.WaasShareSetFromJSONTyped = WaasShareSetFromJSONTyped;
|
|
40
|
+
exports.WaasShareSetToJSON = WaasShareSetToJSON;
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
import { WaasWalletShareSetType } from './WaasWalletShareSetType';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface WaasShareSet
|
|
18
|
+
*/
|
|
19
|
+
export interface WaasShareSet {
|
|
20
|
+
/**
|
|
21
|
+
* Identifier of the share set (WaasWallets row id).
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof WaasShareSet
|
|
24
|
+
*/
|
|
25
|
+
shareSetId: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {WaasWalletShareSetType}
|
|
29
|
+
* @memberof WaasShareSet
|
|
30
|
+
*/
|
|
31
|
+
shareSetType: WaasWalletShareSetType;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {ThresholdSignatureScheme}
|
|
35
|
+
* @memberof WaasShareSet
|
|
36
|
+
*/
|
|
37
|
+
thresholdSignatureScheme: ThresholdSignatureScheme;
|
|
38
|
+
/**
|
|
39
|
+
* Timestamp when this share set was created.
|
|
40
|
+
* @type {Date}
|
|
41
|
+
* @memberof WaasShareSet
|
|
42
|
+
*/
|
|
43
|
+
createdAt: Date;
|
|
44
|
+
}
|
|
45
|
+
export declare function WaasShareSetFromJSON(json: any): WaasShareSet;
|
|
46
|
+
export declare function WaasShareSetFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasShareSet;
|
|
47
|
+
export declare function WaasShareSetToJSON(value?: WaasShareSet | null): any;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ThresholdSignatureSchemeFromJSON, ThresholdSignatureSchemeToJSON } from './ThresholdSignatureScheme.js';
|
|
2
|
+
import { WaasWalletShareSetTypeFromJSON, WaasWalletShareSetTypeToJSON } from './WaasWalletShareSetType.js';
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
function WaasShareSetFromJSON(json) {
|
|
6
|
+
return WaasShareSetFromJSONTyped(json);
|
|
7
|
+
}
|
|
8
|
+
function WaasShareSetFromJSONTyped(json, ignoreDiscriminator) {
|
|
9
|
+
if ((json === undefined) || (json === null)) {
|
|
10
|
+
return json;
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
'shareSetId': json['shareSetId'],
|
|
14
|
+
'shareSetType': WaasWalletShareSetTypeFromJSON(json['shareSetType']),
|
|
15
|
+
'thresholdSignatureScheme': ThresholdSignatureSchemeFromJSON(json['thresholdSignatureScheme']),
|
|
16
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function WaasShareSetToJSON(value) {
|
|
20
|
+
if (value === undefined) {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
if (value === null) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'shareSetId': value.shareSetId,
|
|
28
|
+
'shareSetType': WaasWalletShareSetTypeToJSON(value.shareSetType),
|
|
29
|
+
'thresholdSignatureScheme': ThresholdSignatureSchemeToJSON(value.thresholdSignatureScheme),
|
|
30
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { WaasShareSetFromJSON, WaasShareSetFromJSONTyped, WaasShareSetToJSON };
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
6
|
var EmbeddedWalletVersionEnum = require('./EmbeddedWalletVersionEnum.cjs');
|
|
7
7
|
var ThresholdSignatureScheme = require('./ThresholdSignatureScheme.cjs');
|
|
8
|
+
var WaasShareSet = require('./WaasShareSet.cjs');
|
|
8
9
|
var WaasWalletSettings = require('./WaasWalletSettings.cjs');
|
|
9
10
|
var WaasWalletShareSetType = require('./WaasWalletShareSetType.cjs');
|
|
10
11
|
var WalletKeyShareInfo = require('./WalletKeyShareInfo.cjs');
|
|
@@ -24,6 +25,7 @@ function WaasWalletPropertiesFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
24
25
|
'settings': !runtime.exists(json, 'settings') ? undefined : WaasWalletSettings.WaasWalletSettingsFromJSON(json['settings']),
|
|
25
26
|
'shareSetId': !runtime.exists(json, 'shareSetId') ? undefined : json['shareSetId'],
|
|
26
27
|
'shareSetType': !runtime.exists(json, 'shareSetType') ? undefined : WaasWalletShareSetType.WaasWalletShareSetTypeFromJSON(json['shareSetType']),
|
|
28
|
+
'otherShareSets': !runtime.exists(json, 'otherShareSets') ? undefined : (json['otherShareSets'].map(WaasShareSet.WaasShareSetFromJSON)),
|
|
27
29
|
'version': !runtime.exists(json, 'version') ? undefined : EmbeddedWalletVersionEnum.EmbeddedWalletVersionEnumFromJSON(json['version']),
|
|
28
30
|
};
|
|
29
31
|
}
|
|
@@ -41,6 +43,7 @@ function WaasWalletPropertiesToJSON(value) {
|
|
|
41
43
|
'settings': WaasWalletSettings.WaasWalletSettingsToJSON(value.settings),
|
|
42
44
|
'shareSetId': value.shareSetId,
|
|
43
45
|
'shareSetType': WaasWalletShareSetType.WaasWalletShareSetTypeToJSON(value.shareSetType),
|
|
46
|
+
'otherShareSets': value.otherShareSets === undefined ? undefined : (value.otherShareSets.map(WaasShareSet.WaasShareSetToJSON)),
|
|
44
47
|
'version': EmbeddedWalletVersionEnum.EmbeddedWalletVersionEnumToJSON(value.version),
|
|
45
48
|
};
|
|
46
49
|
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { EmbeddedWalletVersionEnum } from './EmbeddedWalletVersionEnum';
|
|
13
13
|
import { ThresholdSignatureScheme } from './ThresholdSignatureScheme';
|
|
14
|
+
import { WaasShareSet } from './WaasShareSet';
|
|
14
15
|
import { WaasWalletSettings } from './WaasWalletSettings';
|
|
15
16
|
import { WaasWalletShareSetType } from './WaasWalletShareSetType';
|
|
16
17
|
import { WalletKeyShareInfo } from './WalletKeyShareInfo';
|
|
@@ -21,7 +22,7 @@ import { WalletKeyShareInfo } from './WalletKeyShareInfo';
|
|
|
21
22
|
*/
|
|
22
23
|
export interface WaasWalletProperties {
|
|
23
24
|
/**
|
|
24
|
-
* List of key share information for the
|
|
25
|
+
* List of key share information for the primary share set (the one this auth principal signs with).
|
|
25
26
|
* @type {Array<WalletKeyShareInfo>}
|
|
26
27
|
* @memberof WaasWalletProperties
|
|
27
28
|
*/
|
|
@@ -45,7 +46,7 @@ export interface WaasWalletProperties {
|
|
|
45
46
|
*/
|
|
46
47
|
settings?: WaasWalletSettings;
|
|
47
48
|
/**
|
|
48
|
-
* Identifier of the share set (
|
|
49
|
+
* Identifier of the primary share set (the one whose `keyShares`, `thresholdSignatureScheme`, `derivationPath`, and `settings` are inlined at the top level). Browser context: rootUser. Delegated-server context: delegated.
|
|
49
50
|
* @type {string}
|
|
50
51
|
* @memberof WaasWalletProperties
|
|
51
52
|
*/
|
|
@@ -56,6 +57,12 @@ export interface WaasWalletProperties {
|
|
|
56
57
|
* @memberof WaasWalletProperties
|
|
57
58
|
*/
|
|
58
59
|
shareSetType?: WaasWalletShareSetType;
|
|
60
|
+
/**
|
|
61
|
+
* All other active share sets that exist on this wallet (i.e., owned by other auth principals). Returned for awareness so consumers can see, e.g., that a delegated share set is set up alongside their rootUser. Server-typed share sets are never exposed.
|
|
62
|
+
* @type {Array<WaasShareSet>}
|
|
63
|
+
* @memberof WaasWalletProperties
|
|
64
|
+
*/
|
|
65
|
+
otherShareSets?: Array<WaasShareSet>;
|
|
59
66
|
/**
|
|
60
67
|
*
|
|
61
68
|
* @type {EmbeddedWalletVersionEnum}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
2
|
import { EmbeddedWalletVersionEnumFromJSON, EmbeddedWalletVersionEnumToJSON } from './EmbeddedWalletVersionEnum.js';
|
|
3
3
|
import { ThresholdSignatureSchemeFromJSON, ThresholdSignatureSchemeToJSON } from './ThresholdSignatureScheme.js';
|
|
4
|
+
import { WaasShareSetFromJSON, WaasShareSetToJSON } from './WaasShareSet.js';
|
|
4
5
|
import { WaasWalletSettingsFromJSON, WaasWalletSettingsToJSON } from './WaasWalletSettings.js';
|
|
5
6
|
import { WaasWalletShareSetTypeFromJSON, WaasWalletShareSetTypeToJSON } from './WaasWalletShareSetType.js';
|
|
6
7
|
import { WalletKeyShareInfoFromJSON, WalletKeyShareInfoToJSON } from './WalletKeyShareInfo.js';
|
|
@@ -20,6 +21,7 @@ function WaasWalletPropertiesFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
20
21
|
'settings': !exists(json, 'settings') ? undefined : WaasWalletSettingsFromJSON(json['settings']),
|
|
21
22
|
'shareSetId': !exists(json, 'shareSetId') ? undefined : json['shareSetId'],
|
|
22
23
|
'shareSetType': !exists(json, 'shareSetType') ? undefined : WaasWalletShareSetTypeFromJSON(json['shareSetType']),
|
|
24
|
+
'otherShareSets': !exists(json, 'otherShareSets') ? undefined : (json['otherShareSets'].map(WaasShareSetFromJSON)),
|
|
23
25
|
'version': !exists(json, 'version') ? undefined : EmbeddedWalletVersionEnumFromJSON(json['version']),
|
|
24
26
|
};
|
|
25
27
|
}
|
|
@@ -37,6 +39,7 @@ function WaasWalletPropertiesToJSON(value) {
|
|
|
37
39
|
'settings': WaasWalletSettingsToJSON(value.settings),
|
|
38
40
|
'shareSetId': value.shareSetId,
|
|
39
41
|
'shareSetType': WaasWalletShareSetTypeToJSON(value.shareSetType),
|
|
42
|
+
'otherShareSets': value.otherShareSets === undefined ? undefined : (value.otherShareSets.map(WaasShareSetToJSON)),
|
|
40
43
|
'version': EmbeddedWalletVersionEnumToJSON(value.version),
|
|
41
44
|
};
|
|
42
45
|
}
|
|
@@ -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 WaasShareSet = require('./WaasShareSet.cjs');
|
|
13
14
|
var WaasWalletSettings = require('./WaasWalletSettings.cjs');
|
|
14
15
|
var WaasWalletShareSetType = require('./WaasWalletShareSetType.cjs');
|
|
15
16
|
var WalletKeyShareInfo = require('./WalletKeyShareInfo.cjs');
|
|
@@ -42,6 +43,7 @@ function WalletPropertiesFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
43
|
'settings': !runtime.exists(json, 'settings') ? undefined : WaasWalletSettings.WaasWalletSettingsFromJSON(json['settings']),
|
|
43
44
|
'shareSetId': !runtime.exists(json, 'shareSetId') ? undefined : json['shareSetId'],
|
|
44
45
|
'shareSetType': !runtime.exists(json, 'shareSetType') ? undefined : WaasWalletShareSetType.WaasWalletShareSetTypeFromJSON(json['shareSetType']),
|
|
46
|
+
'otherShareSets': !runtime.exists(json, 'otherShareSets') ? undefined : (json['otherShareSets'].map(WaasShareSet.WaasShareSetFromJSON)),
|
|
45
47
|
};
|
|
46
48
|
}
|
|
47
49
|
function WalletPropertiesToJSON(value) {
|
|
@@ -71,6 +73,7 @@ function WalletPropertiesToJSON(value) {
|
|
|
71
73
|
'settings': WaasWalletSettings.WaasWalletSettingsToJSON(value.settings),
|
|
72
74
|
'shareSetId': value.shareSetId,
|
|
73
75
|
'shareSetType': WaasWalletShareSetType.WaasWalletShareSetTypeToJSON(value.shareSetType),
|
|
76
|
+
'otherShareSets': value.otherShareSets === undefined ? undefined : (value.otherShareSets.map(WaasShareSet.WaasShareSetToJSON)),
|
|
74
77
|
};
|
|
75
78
|
}
|
|
76
79
|
|
|
@@ -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 { WaasShareSet } from './WaasShareSet';
|
|
19
20
|
import { WaasWalletSettings } from './WaasWalletSettings';
|
|
20
21
|
import { WaasWalletShareSetType } from './WaasWalletShareSetType';
|
|
21
22
|
import { WalletKeyShareInfo } from './WalletKeyShareInfo';
|
|
@@ -104,7 +105,7 @@ export interface WalletProperties {
|
|
|
104
105
|
*/
|
|
105
106
|
source?: PasswordSourceTypeEnum;
|
|
106
107
|
/**
|
|
107
|
-
* List of key share information for the
|
|
108
|
+
* List of key share information for the primary share set (the one this auth principal signs with).
|
|
108
109
|
* @type {Array<WalletKeyShareInfo>}
|
|
109
110
|
* @memberof WalletProperties
|
|
110
111
|
*/
|
|
@@ -128,7 +129,7 @@ export interface WalletProperties {
|
|
|
128
129
|
*/
|
|
129
130
|
settings?: WaasWalletSettings;
|
|
130
131
|
/**
|
|
131
|
-
* Identifier of the share set (
|
|
132
|
+
* Identifier of the primary share set (the one whose `keyShares`, `thresholdSignatureScheme`, `derivationPath`, and `settings` are inlined at the top level). Browser context: rootUser. Delegated-server context: delegated.
|
|
132
133
|
* @type {string}
|
|
133
134
|
* @memberof WalletProperties
|
|
134
135
|
*/
|
|
@@ -139,6 +140,12 @@ export interface WalletProperties {
|
|
|
139
140
|
* @memberof WalletProperties
|
|
140
141
|
*/
|
|
141
142
|
shareSetType?: WaasWalletShareSetType;
|
|
143
|
+
/**
|
|
144
|
+
* All other active share sets that exist on this wallet (i.e., owned by other auth principals). Returned for awareness so consumers can see, e.g., that a delegated share set is set up alongside their rootUser. Server-typed share sets are never exposed.
|
|
145
|
+
* @type {Array<WaasShareSet>}
|
|
146
|
+
* @memberof WalletProperties
|
|
147
|
+
*/
|
|
148
|
+
otherShareSets?: Array<WaasShareSet>;
|
|
142
149
|
}
|
|
143
150
|
export declare function WalletPropertiesFromJSON(json: any): WalletProperties;
|
|
144
151
|
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 { WaasShareSetFromJSON, WaasShareSetToJSON } from './WaasShareSet.js';
|
|
9
10
|
import { WaasWalletSettingsFromJSON, WaasWalletSettingsToJSON } from './WaasWalletSettings.js';
|
|
10
11
|
import { WaasWalletShareSetTypeFromJSON, WaasWalletShareSetTypeToJSON } from './WaasWalletShareSetType.js';
|
|
11
12
|
import { WalletKeyShareInfoFromJSON, WalletKeyShareInfoToJSON } from './WalletKeyShareInfo.js';
|
|
@@ -38,6 +39,7 @@ function WalletPropertiesFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
39
|
'settings': !exists(json, 'settings') ? undefined : WaasWalletSettingsFromJSON(json['settings']),
|
|
39
40
|
'shareSetId': !exists(json, 'shareSetId') ? undefined : json['shareSetId'],
|
|
40
41
|
'shareSetType': !exists(json, 'shareSetType') ? undefined : WaasWalletShareSetTypeFromJSON(json['shareSetType']),
|
|
42
|
+
'otherShareSets': !exists(json, 'otherShareSets') ? undefined : (json['otherShareSets'].map(WaasShareSetFromJSON)),
|
|
41
43
|
};
|
|
42
44
|
}
|
|
43
45
|
function WalletPropertiesToJSON(value) {
|
|
@@ -67,6 +69,7 @@ function WalletPropertiesToJSON(value) {
|
|
|
67
69
|
'settings': WaasWalletSettingsToJSON(value.settings),
|
|
68
70
|
'shareSetId': value.shareSetId,
|
|
69
71
|
'shareSetType': WaasWalletShareSetTypeToJSON(value.shareSetType),
|
|
72
|
+
'otherShareSets': value.otherShareSets === undefined ? undefined : (value.otherShareSets.map(WaasShareSetToJSON)),
|
|
70
73
|
};
|
|
71
74
|
}
|
|
72
75
|
|
package/src/models/index.d.ts
CHANGED
|
@@ -424,6 +424,7 @@ export * from './VerifyUnlinkRequest';
|
|
|
424
424
|
export * from './WaasBackupOptionsEnum';
|
|
425
425
|
export * from './WaasChainEnum';
|
|
426
426
|
export * from './WaasDelegatedAccessEncryptionPublicKeyType';
|
|
427
|
+
export * from './WaasShareSet';
|
|
427
428
|
export * from './WaasWalletProperties';
|
|
428
429
|
export * from './WaasWalletSettings';
|
|
429
430
|
export * from './WaasWalletShareSetType';
|