@dynamic-labs/sdk-api 0.185.0 → 0.186.0

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.185.0",
3
+ "version": "0.186.0",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -20,6 +20,7 @@ function BusinessAccountPropertiesFromJSONTyped(json, ignoreDiscriminator) {
20
20
  'businessAccountCreatedAt': (new Date(json['businessAccountCreatedAt'])),
21
21
  'businessAccountSignerId': json['businessAccountSignerId'],
22
22
  'businessAccountSignerType': BusinessAccountSignerType.BusinessAccountSignerTypeFromJSON(json['businessAccountSignerType']),
23
+ 'businessAccountSignerAddedByUserId': !runtime.exists(json, 'businessAccountSignerAddedByUserId') ? undefined : json['businessAccountSignerAddedByUserId'],
23
24
  'businessAccountMemberRole': json['businessAccountMemberRole'],
24
25
  };
25
26
  }
@@ -37,6 +38,7 @@ function BusinessAccountPropertiesToJSON(value) {
37
38
  'businessAccountCreatedAt': (value.businessAccountCreatedAt.toISOString()),
38
39
  'businessAccountSignerId': value.businessAccountSignerId,
39
40
  'businessAccountSignerType': BusinessAccountSignerType.BusinessAccountSignerTypeToJSON(value.businessAccountSignerType),
41
+ 'businessAccountSignerAddedByUserId': value.businessAccountSignerAddedByUserId,
40
42
  'businessAccountMemberRole': value.businessAccountMemberRole,
41
43
  };
42
44
  }
@@ -52,6 +52,12 @@ export interface BusinessAccountProperties {
52
52
  * @memberof BusinessAccountProperties
53
53
  */
54
54
  businessAccountSignerType: BusinessAccountSignerType;
55
+ /**
56
+ * `BusinessAccountSigner.addedByUserId` — the user who added this signer to the wallet. When it differs from the credential owner, the share set was provisioned on their behalf (e.g. another member's ceremony), so its encrypted blob was sealed with the adder's credential, not theirs. Nullable for rows created before the field was tracked.
57
+ * @type {string}
58
+ * @memberof BusinessAccountProperties
59
+ */
60
+ businessAccountSignerAddedByUserId?: string | null;
55
61
  /**
56
62
  * The role a member actually holds: a built-in (`owner`, `admin`, `viewer`) or a customer-defined role the account has defined. Wider than AssignableBusinessAccountRoleName because a held role can be `owner`, which cannot be assigned directly.
57
63
  * @type {string}
@@ -16,6 +16,7 @@ function BusinessAccountPropertiesFromJSONTyped(json, ignoreDiscriminator) {
16
16
  'businessAccountCreatedAt': (new Date(json['businessAccountCreatedAt'])),
17
17
  'businessAccountSignerId': json['businessAccountSignerId'],
18
18
  'businessAccountSignerType': BusinessAccountSignerTypeFromJSON(json['businessAccountSignerType']),
19
+ 'businessAccountSignerAddedByUserId': !exists(json, 'businessAccountSignerAddedByUserId') ? undefined : json['businessAccountSignerAddedByUserId'],
19
20
  'businessAccountMemberRole': json['businessAccountMemberRole'],
20
21
  };
21
22
  }
@@ -33,6 +34,7 @@ function BusinessAccountPropertiesToJSON(value) {
33
34
  'businessAccountCreatedAt': (value.businessAccountCreatedAt.toISOString()),
34
35
  'businessAccountSignerId': value.businessAccountSignerId,
35
36
  'businessAccountSignerType': BusinessAccountSignerTypeToJSON(value.businessAccountSignerType),
37
+ 'businessAccountSignerAddedByUserId': value.businessAccountSignerAddedByUserId,
36
38
  'businessAccountMemberRole': value.businessAccountMemberRole,
37
39
  };
38
40
  }