@koloseum/types 0.1.13 → 0.1.15

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.
@@ -1442,14 +1442,17 @@ export type Database = {
1442
1442
  varsity_institutions: {
1443
1443
  Row: {
1444
1444
  code: string;
1445
+ conference: string | null;
1445
1446
  name: string;
1446
1447
  };
1447
1448
  Insert: {
1448
1449
  code: string;
1450
+ conference?: string | null;
1449
1451
  name: string;
1450
1452
  };
1451
1453
  Update: {
1452
1454
  code?: string;
1455
+ conference?: string | null;
1453
1456
  name?: string;
1454
1457
  };
1455
1458
  Relationships: [];
@@ -1610,7 +1613,6 @@ export type Database = {
1610
1613
  created_at: string | null;
1611
1614
  id: string;
1612
1615
  last_accessed_at: string | null;
1613
- level: number | null;
1614
1616
  metadata: Json | null;
1615
1617
  name: string | null;
1616
1618
  owner: string | null;
@@ -1625,7 +1627,6 @@ export type Database = {
1625
1627
  created_at?: string | null;
1626
1628
  id?: string;
1627
1629
  last_accessed_at?: string | null;
1628
- level?: number | null;
1629
1630
  metadata?: Json | null;
1630
1631
  name?: string | null;
1631
1632
  owner?: string | null;
@@ -1640,7 +1641,6 @@ export type Database = {
1640
1641
  created_at?: string | null;
1641
1642
  id?: string;
1642
1643
  last_accessed_at?: string | null;
1643
- level?: number | null;
1644
1644
  metadata?: Json | null;
1645
1645
  name?: string | null;
1646
1646
  owner?: string | null;
@@ -1660,38 +1660,6 @@ export type Database = {
1660
1660
  }
1661
1661
  ];
1662
1662
  };
1663
- prefixes: {
1664
- Row: {
1665
- bucket_id: string;
1666
- created_at: string | null;
1667
- level: number;
1668
- name: string;
1669
- updated_at: string | null;
1670
- };
1671
- Insert: {
1672
- bucket_id: string;
1673
- created_at?: string | null;
1674
- level?: number;
1675
- name: string;
1676
- updated_at?: string | null;
1677
- };
1678
- Update: {
1679
- bucket_id?: string;
1680
- created_at?: string | null;
1681
- level?: number;
1682
- name?: string;
1683
- updated_at?: string | null;
1684
- };
1685
- Relationships: [
1686
- {
1687
- foreignKeyName: "prefixes_bucketId_fkey";
1688
- columns: ["bucket_id"];
1689
- isOneToOne: false;
1690
- referencedRelation: "buckets";
1691
- referencedColumns: ["id"];
1692
- }
1693
- ];
1694
- };
1695
1663
  s3_multipart_uploads: {
1696
1664
  Row: {
1697
1665
  bucket_id: string;
@@ -1795,13 +1763,6 @@ export type Database = {
1795
1763
  [_ in never]: never;
1796
1764
  };
1797
1765
  Functions: {
1798
- add_prefixes: {
1799
- Args: {
1800
- _bucket_id: string;
1801
- _name: string;
1802
- };
1803
- Returns: undefined;
1804
- };
1805
1766
  can_insert_object: {
1806
1767
  Args: {
1807
1768
  bucketid: string;
@@ -1811,13 +1772,6 @@ export type Database = {
1811
1772
  };
1812
1773
  Returns: undefined;
1813
1774
  };
1814
- delete_prefix: {
1815
- Args: {
1816
- _bucket_id: string;
1817
- _name: string;
1818
- };
1819
- Returns: boolean;
1820
- };
1821
1775
  extension: {
1822
1776
  Args: {
1823
1777
  name: string;
@@ -1836,24 +1790,6 @@ export type Database = {
1836
1790
  };
1837
1791
  Returns: string[];
1838
1792
  };
1839
- get_level: {
1840
- Args: {
1841
- name: string;
1842
- };
1843
- Returns: number;
1844
- };
1845
- get_prefix: {
1846
- Args: {
1847
- name: string;
1848
- };
1849
- Returns: string;
1850
- };
1851
- get_prefixes: {
1852
- Args: {
1853
- name: string;
1854
- };
1855
- Returns: string[];
1856
- };
1857
1793
  get_size_by_bucket: {
1858
1794
  Args: Record<PropertyKey, never>;
1859
1795
  Returns: {
@@ -1916,63 +1852,6 @@ export type Database = {
1916
1852
  metadata: Json;
1917
1853
  }[];
1918
1854
  };
1919
- search_legacy_v1: {
1920
- Args: {
1921
- prefix: string;
1922
- bucketname: string;
1923
- limits?: number;
1924
- levels?: number;
1925
- offsets?: number;
1926
- search?: string;
1927
- sortcolumn?: string;
1928
- sortorder?: string;
1929
- };
1930
- Returns: {
1931
- name: string;
1932
- id: string;
1933
- updated_at: string;
1934
- created_at: string;
1935
- last_accessed_at: string;
1936
- metadata: Json;
1937
- }[];
1938
- };
1939
- search_v1_optimised: {
1940
- Args: {
1941
- prefix: string;
1942
- bucketname: string;
1943
- limits?: number;
1944
- levels?: number;
1945
- offsets?: number;
1946
- search?: string;
1947
- sortcolumn?: string;
1948
- sortorder?: string;
1949
- };
1950
- Returns: {
1951
- name: string;
1952
- id: string;
1953
- updated_at: string;
1954
- created_at: string;
1955
- last_accessed_at: string;
1956
- metadata: Json;
1957
- }[];
1958
- };
1959
- search_v2: {
1960
- Args: {
1961
- prefix: string;
1962
- bucket_name: string;
1963
- limits?: number;
1964
- levels?: number;
1965
- start_after?: string;
1966
- };
1967
- Returns: {
1968
- key: string;
1969
- name: string;
1970
- id: string;
1971
- updated_at: string;
1972
- created_at: string;
1973
- metadata: Json;
1974
- }[];
1975
- };
1976
1855
  };
1977
1856
  Enums: {
1978
1857
  [_ in never]: never;
@@ -237,6 +237,12 @@ export type Database = MergeDeep<DatabaseGenerated, {
237
237
  get_active_registration: {
238
238
  Returns: Omit<RegistrationCheckObject<"player">, "error"> | Omit<RegistrationCheckObject<"lounge">, "error">;
239
239
  };
240
+ get_lounge_ids: {
241
+ Returns: {
242
+ r_user_id: string | null;
243
+ r_lounge_id: string;
244
+ }[];
245
+ };
240
246
  get_player_ids: {
241
247
  Returns: {
242
248
  r_user_id: string | null;
package/dist/general.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import type { Database } from "./database.js";
2
2
  import type { User } from "@supabase/supabase-js";
3
3
  export type AccountType = "player" | "lounge";
4
- export type AuthenticationType = "login" | "register" | "otp";
5
4
  export interface AppMetadata {
6
5
  providers: string[];
7
6
  provider: string;
@@ -12,6 +11,7 @@ export interface AppMetadata {
12
11
  pseudonym?: string;
13
12
  };
14
13
  }
14
+ export type AuthenticationType = "login" | "register" | "otp";
15
15
  export interface AuthenticationJWT {
16
16
  aud: string;
17
17
  exp: number;
@@ -20,11 +20,7 @@ export interface AuthenticationJWT {
20
20
  email: string;
21
21
  phone: string;
22
22
  app_metadata: AppMetadata;
23
- user_metadata: {
24
- email_verified: boolean;
25
- phone_verified: boolean;
26
- sub: string;
27
- };
23
+ user_metadata: UserMetadata;
28
24
  role: string;
29
25
  aal: string;
30
26
  amr: [{
@@ -75,8 +71,23 @@ export type MicroserviceObject<MicroserviceGroup> = {
75
71
  slug: Exclude<Microservice<MicroserviceGroup>, "account">;
76
72
  roles: MicroserviceRole[];
77
73
  });
78
- export type UserWithAppMetadata = User & {
74
+ export type UserMetadata = {
75
+ email_verified: boolean;
76
+ phone_verified: boolean;
77
+ sub: string;
78
+ backroom?: {
79
+ welcome_notification_sent: boolean;
80
+ };
81
+ lounges?: {
82
+ welcome_notification_sent: boolean;
83
+ };
84
+ players?: {
85
+ welcome_notification_sent: boolean;
86
+ };
87
+ };
88
+ export type UserWithCustomMetadata = User & {
79
89
  app_metadata: AppMetadata;
90
+ user_metadata: UserMetadata;
80
91
  };
81
92
  export interface PhoneOTPData {
82
93
  awaitingOTP: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koloseum/types",
3
- "version": "0.1.13",
3
+ "version": "0.1.15",
4
4
  "author": "Koloseum Technologies Limited",
5
5
  "type": "module",
6
6
  "description": "Type definitions for use across web apps (TypeScript)",