@dynamic-labs/sdk-api 0.0.954 → 0.0.956
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/UserOauthAccessTokenResponse.cjs +2 -0
- package/src/models/UserOauthAccessTokenResponse.d.ts +6 -0
- package/src/models/UserOauthAccessTokenResponse.js +2 -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
|
@@ -679,6 +679,7 @@ var WaasPolicyRuleOperationRestrictions = require('./models/WaasPolicyRuleOperat
|
|
|
679
679
|
var WaasPolicyRuleType = require('./models/WaasPolicyRuleType.cjs');
|
|
680
680
|
var WaasPolicyRuleValueLimit = require('./models/WaasPolicyRuleValueLimit.cjs');
|
|
681
681
|
var WaasPolicyUpdateRequest = require('./models/WaasPolicyUpdateRequest.cjs');
|
|
682
|
+
var WaasShareSet = require('./models/WaasShareSet.cjs');
|
|
682
683
|
var WaasVerifyApiKeyErrorResponse = require('./models/WaasVerifyApiKeyErrorResponse.cjs');
|
|
683
684
|
var WaasVerifyApiKeyResponse = require('./models/WaasVerifyApiKeyResponse.cjs');
|
|
684
685
|
var WaasWallet = require('./models/WaasWallet.cjs');
|
|
@@ -3116,6 +3117,9 @@ exports.WaasPolicyRuleValueLimitToJSON = WaasPolicyRuleValueLimit.WaasPolicyRule
|
|
|
3116
3117
|
exports.WaasPolicyUpdateRequestFromJSON = WaasPolicyUpdateRequest.WaasPolicyUpdateRequestFromJSON;
|
|
3117
3118
|
exports.WaasPolicyUpdateRequestFromJSONTyped = WaasPolicyUpdateRequest.WaasPolicyUpdateRequestFromJSONTyped;
|
|
3118
3119
|
exports.WaasPolicyUpdateRequestToJSON = WaasPolicyUpdateRequest.WaasPolicyUpdateRequestToJSON;
|
|
3120
|
+
exports.WaasShareSetFromJSON = WaasShareSet.WaasShareSetFromJSON;
|
|
3121
|
+
exports.WaasShareSetFromJSONTyped = WaasShareSet.WaasShareSetFromJSONTyped;
|
|
3122
|
+
exports.WaasShareSetToJSON = WaasShareSet.WaasShareSetToJSON;
|
|
3119
3123
|
exports.WaasVerifyApiKeyErrorResponseFromJSON = WaasVerifyApiKeyErrorResponse.WaasVerifyApiKeyErrorResponseFromJSON;
|
|
3120
3124
|
exports.WaasVerifyApiKeyErrorResponseFromJSONTyped = WaasVerifyApiKeyErrorResponse.WaasVerifyApiKeyErrorResponseFromJSONTyped;
|
|
3121
3125
|
exports.WaasVerifyApiKeyErrorResponseToJSON = WaasVerifyApiKeyErrorResponse.WaasVerifyApiKeyErrorResponseToJSON;
|
package/src/index.js
CHANGED
|
@@ -675,6 +675,7 @@ export { WaasPolicyRuleOperationRestrictionsFromJSON, WaasPolicyRuleOperationRes
|
|
|
675
675
|
export { WaasPolicyRuleType, WaasPolicyRuleTypeFromJSON, WaasPolicyRuleTypeFromJSONTyped, WaasPolicyRuleTypeToJSON } from './models/WaasPolicyRuleType.js';
|
|
676
676
|
export { WaasPolicyRuleValueLimitFromJSON, WaasPolicyRuleValueLimitFromJSONTyped, WaasPolicyRuleValueLimitToJSON } from './models/WaasPolicyRuleValueLimit.js';
|
|
677
677
|
export { WaasPolicyUpdateRequestFromJSON, WaasPolicyUpdateRequestFromJSONTyped, WaasPolicyUpdateRequestToJSON } from './models/WaasPolicyUpdateRequest.js';
|
|
678
|
+
export { WaasShareSetFromJSON, WaasShareSetFromJSONTyped, WaasShareSetToJSON } from './models/WaasShareSet.js';
|
|
678
679
|
export { WaasVerifyApiKeyErrorResponseFromJSON, WaasVerifyApiKeyErrorResponseFromJSONTyped, WaasVerifyApiKeyErrorResponseToJSON } from './models/WaasVerifyApiKeyErrorResponse.js';
|
|
679
680
|
export { WaasVerifyApiKeyResponseFromJSON, WaasVerifyApiKeyResponseFromJSONTyped, WaasVerifyApiKeyResponseToJSON } from './models/WaasVerifyApiKeyResponse.js';
|
|
680
681
|
export { WaasWalletFromJSON, WaasWalletFromJSONTyped, WaasWalletToJSON } from './models/WaasWallet.js';
|
|
@@ -24,6 +24,7 @@ function UserOauthAccessTokenResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
24
24
|
}
|
|
25
25
|
return {
|
|
26
26
|
'accessToken': json['accessToken'],
|
|
27
|
+
'scopes': json['scopes'],
|
|
27
28
|
};
|
|
28
29
|
}
|
|
29
30
|
function UserOauthAccessTokenResponseToJSON(value) {
|
|
@@ -35,6 +36,7 @@ function UserOauthAccessTokenResponseToJSON(value) {
|
|
|
35
36
|
}
|
|
36
37
|
return {
|
|
37
38
|
'accessToken': value.accessToken,
|
|
39
|
+
'scopes': value.scopes,
|
|
38
40
|
};
|
|
39
41
|
}
|
|
40
42
|
|
|
@@ -21,6 +21,12 @@ export interface UserOauthAccessTokenResponse {
|
|
|
21
21
|
* @memberof UserOauthAccessTokenResponse
|
|
22
22
|
*/
|
|
23
23
|
accessToken: string;
|
|
24
|
+
/**
|
|
25
|
+
* OAuth scopes granted to the access token, as captured at the time of token issuance. Empty array when the provider did not surface scopes or when the token predates scope capture.
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof UserOauthAccessTokenResponse
|
|
28
|
+
*/
|
|
29
|
+
scopes: Array<string>;
|
|
24
30
|
}
|
|
25
31
|
export declare function UserOauthAccessTokenResponseFromJSON(json: any): UserOauthAccessTokenResponse;
|
|
26
32
|
export declare function UserOauthAccessTokenResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserOauthAccessTokenResponse;
|
|
@@ -20,6 +20,7 @@ function UserOauthAccessTokenResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
20
20
|
}
|
|
21
21
|
return {
|
|
22
22
|
'accessToken': json['accessToken'],
|
|
23
|
+
'scopes': json['scopes'],
|
|
23
24
|
};
|
|
24
25
|
}
|
|
25
26
|
function UserOauthAccessTokenResponseToJSON(value) {
|
|
@@ -31,6 +32,7 @@ function UserOauthAccessTokenResponseToJSON(value) {
|
|
|
31
32
|
}
|
|
32
33
|
return {
|
|
33
34
|
'accessToken': value.accessToken,
|
|
35
|
+
'scopes': value.scopes,
|
|
34
36
|
};
|
|
35
37
|
}
|
|
36
38
|
|
|
@@ -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
|
@@ -633,6 +633,7 @@ export * from './WaasPolicyRuleOperationRestrictions';
|
|
|
633
633
|
export * from './WaasPolicyRuleType';
|
|
634
634
|
export * from './WaasPolicyRuleValueLimit';
|
|
635
635
|
export * from './WaasPolicyUpdateRequest';
|
|
636
|
+
export * from './WaasShareSet';
|
|
636
637
|
export * from './WaasVerifyApiKeyErrorResponse';
|
|
637
638
|
export * from './WaasVerifyApiKeyResponse';
|
|
638
639
|
export * from './WaasWallet';
|