@koloseum/types 0.1.9 → 0.1.10

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 (2) hide show
  1. package/dist/general.d.ts +13 -9
  2. package/package.json +1 -1
package/dist/general.d.ts CHANGED
@@ -2,6 +2,16 @@ import type { Database } from "./database.js";
2
2
  import type { User } from "@supabase/supabase-js";
3
3
  export type AccountType = "player" | "lounge";
4
4
  export type AuthenticationType = "login" | "register" | "otp";
5
+ export interface AppMetadata {
6
+ providers: string[];
7
+ provider: string;
8
+ roles: string[];
9
+ person_data?: {
10
+ first_name: string;
11
+ last_name: string;
12
+ pseudonym?: string;
13
+ };
14
+ }
5
15
  export interface AuthenticationJWT {
6
16
  aud: string;
7
17
  exp: number;
@@ -9,11 +19,7 @@ export interface AuthenticationJWT {
9
19
  sub: string;
10
20
  email: string;
11
21
  phone: string;
12
- app_metadata: {
13
- provider: string;
14
- providers: string[];
15
- roles: string[];
16
- };
22
+ app_metadata: AppMetadata;
17
23
  user_metadata: {
18
24
  email_verified: boolean;
19
25
  phone_verified: boolean;
@@ -40,10 +46,8 @@ export interface IGDBPlatformsResponse {
40
46
  name: string;
41
47
  platform_family: number;
42
48
  }
43
- export type UserWithRoles = User & {
44
- app_metadata: {
45
- roles: string[];
46
- };
49
+ export type UserWithAppMetadata = User & {
50
+ app_metadata: AppMetadata;
47
51
  };
48
52
  export interface PhoneOTPData {
49
53
  awaitingOTP: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koloseum/types",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "author": "Koloseum Technologies Limited",
5
5
  "type": "module",
6
6
  "description": "Type definitions for use across web apps (TypeScript)",