@mitreka/coreflow-types 0.0.23 → 0.0.25

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.
Files changed (3) hide show
  1. package/auth.ts +15 -1
  2. package/imager.ts +5 -5
  3. package/package.json +1 -1
package/auth.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import type { BaseEntity } from "./entity.js";
2
2
  import type { BaseEntityFilters, QueryFilters } from "./filter.js";
3
+ import type { UserGender } from "./user.js";
3
4
 
4
5
  export type AccessToken = {
5
6
  iss: string; // issuer
@@ -81,7 +82,17 @@ export type IDToken = {
81
82
  aud: string; // Client ID
82
83
  sub: string; // User ID
83
84
  name?: string;
85
+ given_name?: string;
86
+ family_name?: string;
87
+ nickname?: string;
84
88
  email?: string;
89
+ email_verified?: boolean;
90
+ phone_number?: string;
91
+ phone_number_verified?: boolean;
92
+ address?: string;
93
+ birthdate?: string;
94
+ gender?: string;
95
+ picture?: string;
85
96
  iat: number;
86
97
  exp: number;
87
98
  };
@@ -189,7 +200,7 @@ export type TokenExpires = {
189
200
 
190
201
  export type TokenPair = {
191
202
  access_token: string;
192
- refresh_token: string;
203
+ refresh_token?: string;
193
204
  };
194
205
 
195
206
  export type UserAccount = {
@@ -202,9 +213,12 @@ export type UserAccount = {
202
213
  export type UserIdentity = {
203
214
  company_id: string;
204
215
  email: string;
216
+ gender: string;
205
217
  jti: string;
206
218
  name: string;
207
219
  user_id: string;
220
+ address?: string;
221
+ phone?: string;
208
222
  }
209
223
 
210
224
  export type UserSession = {
package/imager.ts CHANGED
@@ -1,8 +1,8 @@
1
- export type CreateAvatarOptions = {
2
- raw?: boolean
3
- }
1
+ export type ImageCreationOptions = {
2
+ encoding?: 'base64';
3
+ };
4
4
 
5
- export type CreateAvatarResponse = {
5
+ export type ImageCreationResponse = {
6
6
  mime: string;
7
7
  data: string;
8
- }
8
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mitreka/coreflow-types",
3
- "version": "0.0.23",
3
+ "version": "0.0.25",
4
4
  "description": "CoreFlow Types Definition",
5
5
  "author": {
6
6
  "name": "Riyan Widiyanto",