@dynamic-labs/sdk-api 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api",
3
- "version": "0.0.955",
3
+ "version": "0.0.957",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -156,7 +156,7 @@ class OrganizationSettingsApi extends runtime.BaseAPI {
156
156
  return await response.value();
157
157
  }
158
158
  /**
159
- * Updates settings for the specified organization. Creates the settings row if it does not exist.
159
+ * Updates settings for the specified organization. Creates the settings row if it does not exist. When approvalRequiredApprovals is above the current (owners + admins) - 1 cap, responds with 400 APPROVAL_THRESHOLD_TOO_HIGH so a request could not otherwise reach quorum.
160
160
  * Update organization settings
161
161
  */
162
162
  async updateOrganizationSettingsRaw(requestParameters, initOverrides) {
@@ -186,7 +186,7 @@ class OrganizationSettingsApi extends runtime.BaseAPI {
186
186
  return new runtime.JSONApiResponse(response, (jsonValue) => OrganizationSettingsResponse.OrganizationSettingsResponseFromJSON(jsonValue));
187
187
  }
188
188
  /**
189
- * Updates settings for the specified organization. Creates the settings row if it does not exist.
189
+ * Updates settings for the specified organization. Creates the settings row if it does not exist. When approvalRequiredApprovals is above the current (owners + admins) - 1 cap, responds with 400 APPROVAL_THRESHOLD_TOO_HIGH so a request could not otherwise reach quorum.
190
190
  * Update organization settings
191
191
  */
192
192
  async updateOrganizationSettings(requestParameters, initOverrides) {
@@ -33,12 +33,12 @@ export declare class OrganizationSettingsApi extends runtime.BaseAPI {
33
33
  */
34
34
  getOrganizationSettings(requestParameters: GetOrganizationSettingsRequest, initOverrides?: RequestInit): Promise<OrganizationSettingsResponse>;
35
35
  /**
36
- * Updates settings for the specified organization. Creates the settings row if it does not exist.
36
+ * Updates settings for the specified organization. Creates the settings row if it does not exist. When approvalRequiredApprovals is above the current (owners + admins) - 1 cap, responds with 400 APPROVAL_THRESHOLD_TOO_HIGH so a request could not otherwise reach quorum.
37
37
  * Update organization settings
38
38
  */
39
39
  updateOrganizationSettingsRaw(requestParameters: UpdateOrganizationSettingsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<OrganizationSettingsResponse>>;
40
40
  /**
41
- * Updates settings for the specified organization. Creates the settings row if it does not exist.
41
+ * Updates settings for the specified organization. Creates the settings row if it does not exist. When approvalRequiredApprovals is above the current (owners + admins) - 1 cap, responds with 400 APPROVAL_THRESHOLD_TOO_HIGH so a request could not otherwise reach quorum.
42
42
  * Update organization settings
43
43
  */
44
44
  updateOrganizationSettings(requestParameters: UpdateOrganizationSettingsRequest, initOverrides?: RequestInit): Promise<OrganizationSettingsResponse>;
@@ -152,7 +152,7 @@ class OrganizationSettingsApi extends BaseAPI {
152
152
  return await response.value();
153
153
  }
154
154
  /**
155
- * Updates settings for the specified organization. Creates the settings row if it does not exist.
155
+ * Updates settings for the specified organization. Creates the settings row if it does not exist. When approvalRequiredApprovals is above the current (owners + admins) - 1 cap, responds with 400 APPROVAL_THRESHOLD_TOO_HIGH so a request could not otherwise reach quorum.
156
156
  * Update organization settings
157
157
  */
158
158
  async updateOrganizationSettingsRaw(requestParameters, initOverrides) {
@@ -182,7 +182,7 @@ class OrganizationSettingsApi extends BaseAPI {
182
182
  return new JSONApiResponse(response, (jsonValue) => OrganizationSettingsResponseFromJSON(jsonValue));
183
183
  }
184
184
  /**
185
- * Updates settings for the specified organization. Creates the settings row if it does not exist.
185
+ * Updates settings for the specified organization. Creates the settings row if it does not exist. When approvalRequiredApprovals is above the current (owners + admins) - 1 cap, responds with 400 APPROVAL_THRESHOLD_TOO_HIGH so a request could not otherwise reach quorum.
186
186
  * Update organization settings
187
187
  */
188
188
  async updateOrganizationSettings(requestParameters, initOverrides) {
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';
@@ -50,7 +50,7 @@ export interface AdminActionRequest {
50
50
  */
51
51
  submittedBy?: AdminActionRequestUser;
52
52
  /**
53
- * Review responses from admins. Each approve or deny creates a separate response row, enabling future quorum support.
53
+ * Review responses from admins, one row per reviewer per request. Under quorum, multiple approve responses may accumulate before the request reaches requiredApprovals and transitions to approved.
54
54
  * @type {Array<AdminActionResponseItem>}
55
55
  * @memberof AdminActionRequest
56
56
  */
@@ -104,13 +104,13 @@ export interface AdminActionRequest {
104
104
  */
105
105
  actionPayload: object;
106
106
  /**
107
- * Number of approvals needed to execute. Always 1 in v1, reserved for future quorum.
107
+ * Number of distinct admin approvals needed to execute this request, snapshotted from the organization settings at creation time. Subsequent changes to the org setting do not affect in-flight requests.
108
108
  * @type {number}
109
109
  * @memberof AdminActionRequest
110
110
  */
111
111
  requiredApprovals: number;
112
112
  /**
113
- * Number of approvals received so far.
113
+ * Number of approvals received so far. The request transitions to approved when this reaches requiredApprovals. A single deny at any point transitions the request to denied regardless of this counter.
114
114
  * @type {number}
115
115
  * @memberof AdminActionRequest
116
116
  */
@@ -40,7 +40,7 @@ export interface OrganizationSettings {
40
40
  */
41
41
  approvalTtlHours: number;
42
42
  /**
43
- * Number of approvals required before an action is executed. Default 1 (v1). Reserved for future quorum support.
43
+ * Number of distinct admins (not counting the submitter) that must approve before an action is executed. Default 1. The upper bound enforced on update is the current owner + admin count minus 1.
44
44
  * @type {number}
45
45
  * @memberof OrganizationSettings
46
46
  */
@@ -28,7 +28,7 @@ export interface OrganizationSettingsUpdateRequest {
28
28
  */
29
29
  approvalTtlHours?: number;
30
30
  /**
31
- * Number of approvals required (minimum 1).
31
+ * Number of distinct admins (not counting the submitter) required to approve before an action is executed. Minimum 1, maximum (owners + admins in the organization) - 1. Requests rejected with 400 APPROVAL_THRESHOLD_TOO_HIGH when above the cap.
32
32
  * @type {number}
33
33
  * @memberof OrganizationSettingsUpdateRequest
34
34
  */
@@ -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 WaaS wallet
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 (WaasWallets row) that owns these key shares
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 WaaS wallet
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 (WaasWallets row) that owns these key shares
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
 
@@ -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';