@mitreka/coreflow-types 0.0.12 → 0.0.14

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 CHANGED
@@ -41,6 +41,7 @@ export type AccessUser = {
41
41
  export type AuthAccessType = 'offline' | 'online';
42
42
  export type AuthChallengeMethod = 'S256';
43
43
  export type AuthGrantType = 'authorization_code' | 'refresh_token';
44
+ export type AuthPrompt = 'none' | 'select_account';
44
45
  export type AuthResponseType = 'code' | 'token';
45
46
 
46
47
  export type AuthorizationParam = {
@@ -53,6 +54,7 @@ export type AuthorizationParam = {
53
54
  company_id: string;
54
55
  error: string;
55
56
  grant_type: AuthGrantType;
57
+ prompt: AuthPrompt
56
58
  redirect_uri: string;
57
59
  refresh_token: string;
58
60
  response_type: AuthResponseType;
@@ -93,7 +95,7 @@ export type IDToken = {
93
95
  iss: string;
94
96
  aud: string; // Client ID
95
97
  sub: string; // User ID
96
- name: string;
98
+ name?: string;
97
99
  email?: string;
98
100
  iat: number;
99
101
  exp: number;
package/cryptor.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export type CryptorOptions = {
2
- key: string;
3
- iv: string;
4
- }
2
+ algorithm: CryptorAlgorithm
3
+ }
4
+
5
+ export type CryptorAlgorithm = 'aes-256-cbc' | 'aes-256-gcm';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mitreka/coreflow-types",
3
- "version": "0.0.12",
3
+ "version": "0.0.14",
4
4
  "description": "CoreFlow Types Definition",
5
5
  "author": {
6
6
  "name": "Riyan Widiyanto",
package/user.ts CHANGED
@@ -126,6 +126,7 @@ export type UserMeta = {
126
126
 
127
127
  export interface UserRoleEntity extends RelationEntity {
128
128
  id: string;
129
+ company_id: string;
129
130
  user_id: string;
130
131
  role_id: string;
131
132
  is_active: boolean;