@mitreka/coreflow-types 0.0.16 → 0.0.17
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/auth.ts +4 -21
- package/package.json +1 -1
package/auth.ts
CHANGED
|
@@ -1,17 +1,6 @@
|
|
|
1
1
|
import type { BaseEntity } from "./entity.js";
|
|
2
2
|
import type { BaseEntityFilters, QueryFilters } from "./filter.js";
|
|
3
3
|
|
|
4
|
-
export type AccessCompany = {
|
|
5
|
-
id: string;
|
|
6
|
-
name: string;
|
|
7
|
-
is_owner: boolean;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export type AccessRole = {
|
|
11
|
-
id: string;
|
|
12
|
-
name: string;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
4
|
export type AccessToken = {
|
|
16
5
|
iss: string; // issuer
|
|
17
6
|
sub: string; // client id
|
|
@@ -31,13 +20,6 @@ export type AccessTokenResponse = {
|
|
|
31
20
|
id_token?: string; // IDToken JWT
|
|
32
21
|
};
|
|
33
22
|
|
|
34
|
-
export type AccessUser = {
|
|
35
|
-
id: string;
|
|
36
|
-
email: string;
|
|
37
|
-
name: string;
|
|
38
|
-
phone?: string;
|
|
39
|
-
};
|
|
40
|
-
|
|
41
23
|
export type AuthAccessType = 'offline' | 'online';
|
|
42
24
|
export type AuthChallengeMethod = 'S256';
|
|
43
25
|
export type AuthGrantType = 'authorization_code' | 'refresh_token';
|
|
@@ -216,9 +198,10 @@ export type UserIdentity = {
|
|
|
216
198
|
}
|
|
217
199
|
|
|
218
200
|
export type UserSession = {
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
201
|
+
name: string;
|
|
202
|
+
email: string;
|
|
203
|
+
avatar: string;
|
|
204
|
+
company: string;
|
|
222
205
|
};
|
|
223
206
|
|
|
224
207
|
export type UserIdentityParam = {
|