@logto/js 4.1.4 → 4.1.5

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.
@@ -1,12 +1,19 @@
1
+ import { type Nullable } from 'vitest';
1
2
  import { type IdTokenClaims } from '../index.js';
2
3
  import type { Requester } from '../types/index.js';
3
4
  type Identity = {
4
5
  userId: string;
5
6
  details?: Record<string, unknown>;
6
7
  };
8
+ type OrganizationData = {
9
+ id: string;
10
+ name: string;
11
+ description: Nullable<string>;
12
+ };
7
13
  export type UserInfoResponse = IdTokenClaims & {
8
14
  custom_data?: unknown;
9
15
  identities?: Record<string, Identity>;
16
+ organization_data?: OrganizationData[];
10
17
  };
11
18
  export declare const fetchUserInfo: (userInfoEndpoint: string, accessToken: string, requester: Requester) => Promise<UserInfoResponse>;
12
19
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logto/js",
3
- "version": "4.1.4",
3
+ "version": "4.1.5",
4
4
  "type": "module",
5
5
  "main": "./lib/index.cjs",
6
6
  "module": "./lib/index.js",
@@ -28,7 +28,7 @@
28
28
  "@silverhand/ts-config": "^6.0.0",
29
29
  "@types/node": "^20.11.19",
30
30
  "@vitest/coverage-v8": "^1.6.0",
31
- "angular-auth-oidc-client": "^17.0.0",
31
+ "angular-auth-oidc-client": "^18.0.0",
32
32
  "eslint": "^8.57.0",
33
33
  "happy-dom": "^14.0.0",
34
34
  "jose": "^5.2.2",