@dynamic-labs/sdk-api 0.0.1089 → 0.0.1091

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.1089",
3
+ "version": "0.0.1091",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -68,6 +68,7 @@ function DynamicJwtFromJSONTyped(json, ignoreDiscriminator) {
68
68
  'refreshExp': !runtime.exists(json, 'refreshExp') ? undefined : json['refreshExp'],
69
69
  'sdkVersion': !runtime.exists(json, 'sdkVersion') ? undefined : json['sdkVersion'],
70
70
  'deviceRegistrationId': !runtime.exists(json, 'deviceRegistrationId') ? undefined : json['deviceRegistrationId'],
71
+ 'roles': !runtime.exists(json, 'roles') ? undefined : json['roles'],
71
72
  };
72
73
  }
73
74
  function DynamicJwtToJSON(value) {
@@ -128,6 +129,7 @@ function DynamicJwtToJSON(value) {
128
129
  'refreshExp': value.refreshExp,
129
130
  'sdkVersion': value.sdkVersion,
130
131
  'deviceRegistrationId': value.deviceRegistrationId,
132
+ 'roles': value.roles,
131
133
  };
132
134
  }
133
135
 
@@ -320,6 +320,12 @@ export interface DynamicJwt {
320
320
  * @memberof DynamicJwt
321
321
  */
322
322
  deviceRegistrationId?: string | null;
323
+ /**
324
+ * Role assignments as org:{organizationId}:{role} and account:{businessAccountId}:{role} entries. Empty array when the user has no memberships.
325
+ * @type {Array<string>}
326
+ * @memberof DynamicJwt
327
+ */
328
+ roles?: Array<string>;
323
329
  }
324
330
  export declare function DynamicJwtFromJSON(json: any): DynamicJwt;
325
331
  export declare function DynamicJwtFromJSONTyped(json: any, ignoreDiscriminator: boolean): DynamicJwt;
@@ -64,6 +64,7 @@ function DynamicJwtFromJSONTyped(json, ignoreDiscriminator) {
64
64
  'refreshExp': !exists(json, 'refreshExp') ? undefined : json['refreshExp'],
65
65
  'sdkVersion': !exists(json, 'sdkVersion') ? undefined : json['sdkVersion'],
66
66
  'deviceRegistrationId': !exists(json, 'deviceRegistrationId') ? undefined : json['deviceRegistrationId'],
67
+ 'roles': !exists(json, 'roles') ? undefined : json['roles'],
67
68
  };
68
69
  }
69
70
  function DynamicJwtToJSON(value) {
@@ -124,6 +125,7 @@ function DynamicJwtToJSON(value) {
124
125
  'refreshExp': value.refreshExp,
125
126
  'sdkVersion': value.sdkVersion,
126
127
  'deviceRegistrationId': value.deviceRegistrationId,
128
+ 'roles': value.roles,
127
129
  };
128
130
  }
129
131
 
@@ -22,6 +22,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
22
22
  */
23
23
  exports.TokenScope = void 0;
24
24
  (function (TokenScope) {
25
+ TokenScope["BusinessAccountlinkWallet"] = "business_account:link_wallet";
26
+ TokenScope["BusinessAccountmemberadd"] = "business_account:member:add";
27
+ TokenScope["BusinessAccountmemberremove"] = "business_account:member:remove";
28
+ TokenScope["BusinessAccountmemberroleupdate"] = "business_account:member:role:update";
29
+ TokenScope["BusinessAccountsigneradd"] = "business_account:signer:add";
30
+ TokenScope["BusinessAccountsignerremove"] = "business_account:signer:remove";
31
+ TokenScope["BusinessAccounttransferOwnership"] = "business_account:transfer_ownership";
32
+ TokenScope["BusinessAccountwalletremove"] = "business_account:wallet:remove";
25
33
  TokenScope["ConsoleadminActionreview"] = "console:admin_action:review";
26
34
  TokenScope["ConsoleapprovalWorkflowupdate"] = "console:approval_workflow:update";
27
35
  TokenScope["Consolememberinvite"] = "console:member:invite";
@@ -15,6 +15,14 @@
15
15
  * @enum {string}
16
16
  */
17
17
  export declare enum TokenScope {
18
+ BusinessAccountlinkWallet = "business_account:link_wallet",
19
+ BusinessAccountmemberadd = "business_account:member:add",
20
+ BusinessAccountmemberremove = "business_account:member:remove",
21
+ BusinessAccountmemberroleupdate = "business_account:member:role:update",
22
+ BusinessAccountsigneradd = "business_account:signer:add",
23
+ BusinessAccountsignerremove = "business_account:signer:remove",
24
+ BusinessAccounttransferOwnership = "business_account:transfer_ownership",
25
+ BusinessAccountwalletremove = "business_account:wallet:remove",
18
26
  ConsoleadminActionreview = "console:admin_action:review",
19
27
  ConsoleapprovalWorkflowupdate = "console:approval_workflow:update",
20
28
  Consolememberinvite = "console:member:invite",
@@ -18,6 +18,14 @@
18
18
  */
19
19
  var TokenScope;
20
20
  (function (TokenScope) {
21
+ TokenScope["BusinessAccountlinkWallet"] = "business_account:link_wallet";
22
+ TokenScope["BusinessAccountmemberadd"] = "business_account:member:add";
23
+ TokenScope["BusinessAccountmemberremove"] = "business_account:member:remove";
24
+ TokenScope["BusinessAccountmemberroleupdate"] = "business_account:member:role:update";
25
+ TokenScope["BusinessAccountsigneradd"] = "business_account:signer:add";
26
+ TokenScope["BusinessAccountsignerremove"] = "business_account:signer:remove";
27
+ TokenScope["BusinessAccounttransferOwnership"] = "business_account:transfer_ownership";
28
+ TokenScope["BusinessAccountwalletremove"] = "business_account:wallet:remove";
21
29
  TokenScope["ConsoleadminActionreview"] = "console:admin_action:review";
22
30
  TokenScope["ConsoleapprovalWorkflowupdate"] = "console:approval_workflow:update";
23
31
  TokenScope["Consolememberinvite"] = "console:member:invite";