@dynamic-labs/sdk-api 0.18.0 → 0.20.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.18.0",
3
+ "version": "0.20.0",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -17,6 +17,7 @@ function BusinessAccountMemberFromJSONTyped(json, ignoreDiscriminator) {
17
17
  'id': json['id'],
18
18
  'businessAccountId': json['businessAccountId'],
19
19
  'userId': json['userId'],
20
+ 'email': !runtime.exists(json, 'email') ? undefined : json['email'],
20
21
  'role': BusinessAccountMemberRole.BusinessAccountMemberRoleFromJSON(json['role']),
21
22
  'addedByUserId': !runtime.exists(json, 'addedByUserId') ? undefined : json['addedByUserId'],
22
23
  'createdAt': !runtime.exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
@@ -33,6 +34,7 @@ function BusinessAccountMemberToJSON(value) {
33
34
  'id': value.id,
34
35
  'businessAccountId': value.businessAccountId,
35
36
  'userId': value.userId,
37
+ 'email': value.email,
36
38
  'role': BusinessAccountMemberRole.BusinessAccountMemberRoleToJSON(value.role),
37
39
  'addedByUserId': value.addedByUserId,
38
40
  'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
@@ -34,6 +34,12 @@ export interface BusinessAccountMember {
34
34
  * @memberof BusinessAccountMember
35
35
  */
36
36
  userId: string;
37
+ /**
38
+ * Member's verified email; null when they have none
39
+ * @type {string}
40
+ * @memberof BusinessAccountMember
41
+ */
42
+ email?: string | null;
37
43
  /**
38
44
  *
39
45
  * @type {BusinessAccountMemberRole}
@@ -13,6 +13,7 @@ function BusinessAccountMemberFromJSONTyped(json, ignoreDiscriminator) {
13
13
  'id': json['id'],
14
14
  'businessAccountId': json['businessAccountId'],
15
15
  'userId': json['userId'],
16
+ 'email': !exists(json, 'email') ? undefined : json['email'],
16
17
  'role': BusinessAccountMemberRoleFromJSON(json['role']),
17
18
  'addedByUserId': !exists(json, 'addedByUserId') ? undefined : json['addedByUserId'],
18
19
  'createdAt': !exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
@@ -29,6 +30,7 @@ function BusinessAccountMemberToJSON(value) {
29
30
  'id': value.id,
30
31
  'businessAccountId': value.businessAccountId,
31
32
  'userId': value.userId,
33
+ 'email': value.email,
32
34
  'role': BusinessAccountMemberRoleToJSON(value.role),
33
35
  'addedByUserId': value.addedByUserId,
34
36
  'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var runtime = require('../runtime.cjs');
6
+ var SignMessageContext = require('./SignMessageContext.cjs');
6
7
 
7
8
  /* tslint:disable */
8
9
  function WaasDelegateSignMessageRequestFromJSON(json) {
@@ -16,6 +17,8 @@ function WaasDelegateSignMessageRequestFromJSONTyped(json, ignoreDiscriminator)
16
17
  'message': json['message'],
17
18
  'isFormatted': !runtime.exists(json, 'isFormatted') ? undefined : json['isFormatted'],
18
19
  'roomId': !runtime.exists(json, 'roomId') ? undefined : json['roomId'],
20
+ 'context': !runtime.exists(json, 'context') ? undefined : SignMessageContext.SignMessageContextFromJSON(json['context']),
21
+ 'shareSetId': !runtime.exists(json, 'shareSetId') ? undefined : json['shareSetId'],
19
22
  };
20
23
  }
21
24
  function WaasDelegateSignMessageRequestToJSON(value) {
@@ -29,6 +32,8 @@ function WaasDelegateSignMessageRequestToJSON(value) {
29
32
  'message': value.message,
30
33
  'isFormatted': value.isFormatted,
31
34
  'roomId': value.roomId,
35
+ 'context': SignMessageContext.SignMessageContextToJSON(value.context),
36
+ 'shareSetId': value.shareSetId,
32
37
  };
33
38
  }
34
39
 
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { SignMessageContext } from './SignMessageContext';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -33,6 +34,20 @@ export interface WaasDelegateSignMessageRequest {
33
34
  * @memberof WaasDelegateSignMessageRequest
34
35
  */
35
36
  roomId?: string;
37
+ /**
38
+ * Chain-specific transaction/message payload evaluated by the wallet policy engine. Required when the wallet's policy has rules.
39
+ * @type {SignMessageContext}
40
+ * @memberof WaasDelegateSignMessageRequest
41
+ */
42
+ context?: SignMessageContext | null;
43
+ /**
44
+ * Optional identifier of the share set this operation targets. When
45
+ * omitted, the active rootUser share set for `walletId` is resolved
46
+ * server-side (backwards-compat fallback for older SDKs).
47
+ * @type {string}
48
+ * @memberof WaasDelegateSignMessageRequest
49
+ */
50
+ shareSetId?: string | null;
36
51
  }
37
52
  export declare function WaasDelegateSignMessageRequestFromJSON(json: any): WaasDelegateSignMessageRequest;
38
53
  export declare function WaasDelegateSignMessageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasDelegateSignMessageRequest;
@@ -1,4 +1,5 @@
1
1
  import { exists } from '../runtime.js';
2
+ import { SignMessageContextFromJSON, SignMessageContextToJSON } from './SignMessageContext.js';
2
3
 
3
4
  /* tslint:disable */
4
5
  function WaasDelegateSignMessageRequestFromJSON(json) {
@@ -12,6 +13,8 @@ function WaasDelegateSignMessageRequestFromJSONTyped(json, ignoreDiscriminator)
12
13
  'message': json['message'],
13
14
  'isFormatted': !exists(json, 'isFormatted') ? undefined : json['isFormatted'],
14
15
  'roomId': !exists(json, 'roomId') ? undefined : json['roomId'],
16
+ 'context': !exists(json, 'context') ? undefined : SignMessageContextFromJSON(json['context']),
17
+ 'shareSetId': !exists(json, 'shareSetId') ? undefined : json['shareSetId'],
15
18
  };
16
19
  }
17
20
  function WaasDelegateSignMessageRequestToJSON(value) {
@@ -25,6 +28,8 @@ function WaasDelegateSignMessageRequestToJSON(value) {
25
28
  'message': value.message,
26
29
  'isFormatted': value.isFormatted,
27
30
  'roomId': value.roomId,
31
+ 'context': SignMessageContextToJSON(value.context),
32
+ 'shareSetId': value.shareSetId,
28
33
  };
29
34
  }
30
35