@dynamic-labs/sdk-api 0.0.1089 → 0.0.1090
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
|
@@ -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;
|
package/src/models/DynamicJwt.js
CHANGED
|
@@ -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
|
|