@parra/parra-js-sdk 0.3.531 → 0.3.533

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.
@@ -409,6 +409,24 @@ export interface UserResponse {
409
409
  role_other_description?: string | null;
410
410
  avatar?: ImageAssetStub;
411
411
  }
412
+ export interface TenantMemberTenantStub {
413
+ id: string;
414
+ team_member_id: string;
415
+ entitlements?: Array<TenantEntitlement> | null;
416
+ scopes: Array<string>;
417
+ }
418
+ export interface TenantMemberTeamMemberStub {
419
+ id: string;
420
+ user_id: string;
421
+ }
422
+ export interface TenantMember {
423
+ tenant: TenantMemberTenantStub;
424
+ team_member: TenantMemberTeamMemberStub;
425
+ }
426
+ export interface MemberResponse {
427
+ tenant: TenantMemberTenantStub;
428
+ team_member: TenantMemberTeamMemberStub;
429
+ }
412
430
  export declare enum IdentityType {
413
431
  anonymous = "anonymous",
414
432
  username = "username",
@@ -559,6 +577,7 @@ export interface TenantUser {
559
577
  export interface UserInfoResponse {
560
578
  roles?: Array<string>;
561
579
  user?: UserResponse | null;
580
+ team_member?: MemberResponse | null;
562
581
  tenant_user?: TenantUser | null;
563
582
  }
564
583
  export interface AuthToken {
@@ -5168,7 +5187,9 @@ declare class ParraAPI {
5168
5187
  version_token?: string;
5169
5188
  }, options?: Options) => Promise<AppInfo>;
5170
5189
  checkAuthorization: (body: CheckAuthorizationRequestBody, options?: Options) => Promise<CheckAuthorization>;
5171
- getUserInfo: (options?: Options) => Promise<UserInfoResponse>;
5190
+ getUserInfo: (query?: {
5191
+ tenant_id?: string | null;
5192
+ }, options?: Options) => Promise<UserInfoResponse>;
5172
5193
  getParraAuthToken: (options?: Options) => Promise<AuthToken>;
5173
5194
  listImageAssetsForTenantById: (tenant_id: string, query?: {
5174
5195
  ids?: string;
package/dist/ParraAPI.js CHANGED
@@ -550,9 +550,9 @@ var ParraAPI = /** @class */ (function () {
550
550
  "content-type": "application/json",
551
551
  } }, options));
552
552
  };
553
- this.getUserInfo = function (options) {
553
+ this.getUserInfo = function (query, options) {
554
554
  if (options === void 0) { options = {}; }
555
- return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/user-info"), method: "get" }, options));
555
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/user-info"), method: "get", query: query }, options));
556
556
  };
557
557
  this.getParraAuthToken = function (options) {
558
558
  if (options === void 0) { options = {}; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.531",
3
+ "version": "0.3.533",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",