@koloseum/types 0.1.8 → 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.
@@ -0,0 +1,1936 @@
1
+ export type Json = string | number | boolean | null | {
2
+ [key: string]: Json | undefined;
3
+ } | Json[];
4
+ export type Database = {
5
+ compliance: {
6
+ Tables: {
7
+ active_registrations: {
8
+ Row: {
9
+ created_at: string;
10
+ current_step: Database["compliance"]["Enums"]["registration_step"];
11
+ type: Database["compliance"]["Enums"]["account_type"];
12
+ updated_at: string;
13
+ user_id: string;
14
+ };
15
+ Insert: {
16
+ created_at?: string;
17
+ current_step: Database["compliance"]["Enums"]["registration_step"];
18
+ type: Database["compliance"]["Enums"]["account_type"];
19
+ updated_at?: string;
20
+ user_id?: string;
21
+ };
22
+ Update: {
23
+ created_at?: string;
24
+ current_step?: Database["compliance"]["Enums"]["registration_step"];
25
+ type?: Database["compliance"]["Enums"]["account_type"];
26
+ updated_at?: string;
27
+ user_id?: string;
28
+ };
29
+ Relationships: [];
30
+ };
31
+ app_roles: {
32
+ Row: {
33
+ created_at: string;
34
+ id: number;
35
+ name: string;
36
+ };
37
+ Insert: {
38
+ created_at?: string;
39
+ id?: number;
40
+ name: string;
41
+ };
42
+ Update: {
43
+ created_at?: string;
44
+ id?: number;
45
+ name?: string;
46
+ };
47
+ Relationships: [];
48
+ };
49
+ data_update_requests: {
50
+ Row: {
51
+ account_type: Database["compliance"]["Enums"]["account_type"];
52
+ created_at: string;
53
+ id: string;
54
+ is_for_minor_rep: boolean | null;
55
+ rejection_reason: string | null;
56
+ status: Database["compliance"]["Enums"]["data_update_request_status"];
57
+ updated_at: string | null;
58
+ updates: Json;
59
+ user_id: string;
60
+ };
61
+ Insert: {
62
+ account_type: Database["compliance"]["Enums"]["account_type"];
63
+ created_at?: string;
64
+ id?: string;
65
+ is_for_minor_rep?: boolean | null;
66
+ rejection_reason?: string | null;
67
+ status?: Database["compliance"]["Enums"]["data_update_request_status"];
68
+ updated_at?: string | null;
69
+ updates: Json;
70
+ user_id?: string;
71
+ };
72
+ Update: {
73
+ account_type?: Database["compliance"]["Enums"]["account_type"];
74
+ created_at?: string;
75
+ id?: string;
76
+ is_for_minor_rep?: boolean | null;
77
+ rejection_reason?: string | null;
78
+ status?: Database["compliance"]["Enums"]["data_update_request_status"];
79
+ updated_at?: string | null;
80
+ updates?: Json;
81
+ user_id?: string;
82
+ };
83
+ Relationships: [];
84
+ };
85
+ data_updates: {
86
+ Row: {
87
+ account_type: Database["compliance"]["Enums"]["account_type"];
88
+ created_at: string;
89
+ id: string;
90
+ is_for_minor_rep: boolean | null;
91
+ request_id: string | null;
92
+ updates: Json;
93
+ user_id: string;
94
+ };
95
+ Insert: {
96
+ account_type: Database["compliance"]["Enums"]["account_type"];
97
+ created_at?: string;
98
+ id?: string;
99
+ is_for_minor_rep?: boolean | null;
100
+ request_id?: string | null;
101
+ updates: Json;
102
+ user_id?: string;
103
+ };
104
+ Update: {
105
+ account_type?: Database["compliance"]["Enums"]["account_type"];
106
+ created_at?: string;
107
+ id?: string;
108
+ is_for_minor_rep?: boolean | null;
109
+ request_id?: string | null;
110
+ updates?: Json;
111
+ user_id?: string;
112
+ };
113
+ Relationships: [
114
+ {
115
+ foreignKeyName: "compliance_data_updates_request_id_fkey";
116
+ columns: ["request_id"];
117
+ isOneToOne: true;
118
+ referencedRelation: "data_update_requests";
119
+ referencedColumns: ["id"];
120
+ }
121
+ ];
122
+ };
123
+ lounge_branches: {
124
+ Row: {
125
+ address: Json;
126
+ amenities: Json | null;
127
+ created_at: string;
128
+ email: string | null;
129
+ id: string;
130
+ name: string;
131
+ phone: string;
132
+ user_id: string;
133
+ };
134
+ Insert: {
135
+ address: Json;
136
+ amenities?: Json | null;
137
+ created_at?: string;
138
+ email?: string | null;
139
+ id?: string;
140
+ name: string;
141
+ phone: string;
142
+ user_id?: string;
143
+ };
144
+ Update: {
145
+ address?: Json;
146
+ amenities?: Json | null;
147
+ created_at?: string;
148
+ email?: string | null;
149
+ id?: string;
150
+ name?: string;
151
+ phone?: string;
152
+ user_id?: string;
153
+ };
154
+ Relationships: [];
155
+ };
156
+ lounge_company_verification_attempts: {
157
+ Row: {
158
+ company_data: Json | null;
159
+ company_number: string;
160
+ country_code: string;
161
+ created_at: string;
162
+ id: string;
163
+ user_id: string;
164
+ };
165
+ Insert: {
166
+ company_data?: Json | null;
167
+ company_number: string;
168
+ country_code: string;
169
+ created_at?: string;
170
+ id?: string;
171
+ user_id?: string;
172
+ };
173
+ Update: {
174
+ company_data?: Json | null;
175
+ company_number?: string;
176
+ country_code?: string;
177
+ created_at?: string;
178
+ id?: string;
179
+ user_id?: string;
180
+ };
181
+ Relationships: [];
182
+ };
183
+ lounge_staff: {
184
+ Row: {
185
+ birth_date: string;
186
+ created_at: string;
187
+ deleted: boolean;
188
+ deleted_at: string | null;
189
+ email: string | null;
190
+ email_updated_at: string | null;
191
+ first_name: string;
192
+ gender_identity: Database["compliance"]["Enums"]["gender_identity"] | null;
193
+ id: string;
194
+ last_name: string;
195
+ lounge_id: string;
196
+ middle_names: string | null;
197
+ nationality: string;
198
+ phone: string;
199
+ phone_updated_at: string | null;
200
+ pronouns: Database["compliance"]["Enums"]["pronouns"][] | null;
201
+ sex: Database["compliance"]["Enums"]["sex"] | null;
202
+ show_pronouns: boolean | null;
203
+ user_id: string;
204
+ };
205
+ Insert: {
206
+ birth_date: string;
207
+ created_at?: string;
208
+ deleted?: boolean;
209
+ deleted_at?: string | null;
210
+ email?: string | null;
211
+ email_updated_at?: string | null;
212
+ first_name: string;
213
+ gender_identity?: Database["compliance"]["Enums"]["gender_identity"] | null;
214
+ id?: string;
215
+ last_name: string;
216
+ lounge_id?: string;
217
+ middle_names?: string | null;
218
+ nationality: string;
219
+ phone: string;
220
+ phone_updated_at?: string | null;
221
+ pronouns?: Database["compliance"]["Enums"]["pronouns"][] | null;
222
+ sex?: Database["compliance"]["Enums"]["sex"] | null;
223
+ show_pronouns?: boolean | null;
224
+ user_id?: string;
225
+ };
226
+ Update: {
227
+ birth_date?: string;
228
+ created_at?: string;
229
+ deleted?: boolean;
230
+ deleted_at?: string | null;
231
+ email?: string | null;
232
+ email_updated_at?: string | null;
233
+ first_name?: string;
234
+ gender_identity?: Database["compliance"]["Enums"]["gender_identity"] | null;
235
+ id?: string;
236
+ last_name?: string;
237
+ lounge_id?: string;
238
+ middle_names?: string | null;
239
+ nationality?: string;
240
+ phone?: string;
241
+ phone_updated_at?: string | null;
242
+ pronouns?: Database["compliance"]["Enums"]["pronouns"][] | null;
243
+ sex?: Database["compliance"]["Enums"]["sex"] | null;
244
+ show_pronouns?: boolean | null;
245
+ user_id?: string;
246
+ };
247
+ Relationships: [
248
+ {
249
+ foreignKeyName: "lounge_staff_lounge_id_fkey";
250
+ columns: ["lounge_id"];
251
+ isOneToOne: false;
252
+ referencedRelation: "lounges";
253
+ referencedColumns: ["id"];
254
+ }
255
+ ];
256
+ };
257
+ lounge_staff_id_verification_attempts: {
258
+ Row: {
259
+ created_at: string;
260
+ id: string;
261
+ id_country: string;
262
+ id_number: string;
263
+ id_type: Database["compliance"]["Enums"]["id_type"];
264
+ person_data: Json | null;
265
+ user_id: string;
266
+ };
267
+ Insert: {
268
+ created_at?: string;
269
+ id?: string;
270
+ id_country: string;
271
+ id_number: string;
272
+ id_type: Database["compliance"]["Enums"]["id_type"];
273
+ person_data?: Json | null;
274
+ user_id?: string;
275
+ };
276
+ Update: {
277
+ created_at?: string;
278
+ id?: string;
279
+ id_country?: string;
280
+ id_number?: string;
281
+ id_type?: Database["compliance"]["Enums"]["id_type"];
282
+ person_data?: Json | null;
283
+ user_id?: string;
284
+ };
285
+ Relationships: [];
286
+ };
287
+ lounge_staff_verified_id_documents: {
288
+ Row: {
289
+ created_at: string;
290
+ id_country: string;
291
+ id_number: string;
292
+ id_type: Database["compliance"]["Enums"]["id_type"];
293
+ issued_on: string;
294
+ user_id: string;
295
+ valid_until: string | null;
296
+ };
297
+ Insert: {
298
+ created_at?: string;
299
+ id_country: string;
300
+ id_number: string;
301
+ id_type: Database["compliance"]["Enums"]["id_type"];
302
+ issued_on: string;
303
+ user_id?: string;
304
+ valid_until?: string | null;
305
+ };
306
+ Update: {
307
+ created_at?: string;
308
+ id_country?: string;
309
+ id_number?: string;
310
+ id_type?: Database["compliance"]["Enums"]["id_type"];
311
+ issued_on?: string;
312
+ user_id?: string;
313
+ valid_until?: string | null;
314
+ };
315
+ Relationships: [];
316
+ };
317
+ lounge_verified_company_documents: {
318
+ Row: {
319
+ company_number: string;
320
+ company_type: string;
321
+ country_code: string;
322
+ created_at: string;
323
+ user_id: string;
324
+ };
325
+ Insert: {
326
+ company_number: string;
327
+ company_type: string;
328
+ country_code: string;
329
+ created_at?: string;
330
+ user_id?: string;
331
+ };
332
+ Update: {
333
+ company_number?: string;
334
+ company_type?: string;
335
+ country_code?: string;
336
+ created_at?: string;
337
+ user_id?: string;
338
+ };
339
+ Relationships: [];
340
+ };
341
+ lounges: {
342
+ Row: {
343
+ company_name: string;
344
+ created_at: string;
345
+ deleted: boolean;
346
+ deleted_at: string | null;
347
+ id: string;
348
+ registration_date: string;
349
+ trade_name: string | null;
350
+ user_id: string | null;
351
+ website: string | null;
352
+ };
353
+ Insert: {
354
+ company_name: string;
355
+ created_at?: string;
356
+ deleted?: boolean;
357
+ deleted_at?: string | null;
358
+ id?: string;
359
+ registration_date: string;
360
+ trade_name?: string | null;
361
+ user_id?: string | null;
362
+ website?: string | null;
363
+ };
364
+ Update: {
365
+ company_name?: string;
366
+ created_at?: string;
367
+ deleted?: boolean;
368
+ deleted_at?: string | null;
369
+ id?: string;
370
+ registration_date?: string;
371
+ trade_name?: string | null;
372
+ user_id?: string | null;
373
+ website?: string | null;
374
+ };
375
+ Relationships: [];
376
+ };
377
+ player_addresses: {
378
+ Row: {
379
+ address1: string;
380
+ address2: string | null;
381
+ county: string;
382
+ created_at: string;
383
+ id: string;
384
+ postcode: string;
385
+ residential: boolean;
386
+ sub_county: string;
387
+ town: string;
388
+ user_id: string;
389
+ };
390
+ Insert: {
391
+ address1: string;
392
+ address2?: string | null;
393
+ county: string;
394
+ created_at?: string;
395
+ id?: string;
396
+ postcode: string;
397
+ residential: boolean;
398
+ sub_county: string;
399
+ town: string;
400
+ user_id?: string;
401
+ };
402
+ Update: {
403
+ address1?: string;
404
+ address2?: string | null;
405
+ county?: string;
406
+ created_at?: string;
407
+ id?: string;
408
+ postcode?: string;
409
+ residential?: boolean;
410
+ sub_county?: string;
411
+ town?: string;
412
+ user_id?: string;
413
+ };
414
+ Relationships: [];
415
+ };
416
+ player_bans: {
417
+ Row: {
418
+ created_at: string;
419
+ end_time: string | null;
420
+ id: string;
421
+ player_id: string;
422
+ reason: string;
423
+ start_time: string;
424
+ user_id: string | null;
425
+ };
426
+ Insert: {
427
+ created_at?: string;
428
+ end_time?: string | null;
429
+ id?: string;
430
+ player_id: string;
431
+ reason: string;
432
+ start_time?: string;
433
+ user_id?: string | null;
434
+ };
435
+ Update: {
436
+ created_at?: string;
437
+ end_time?: string | null;
438
+ id?: string;
439
+ player_id?: string;
440
+ reason?: string;
441
+ start_time?: string;
442
+ user_id?: string | null;
443
+ };
444
+ Relationships: [
445
+ {
446
+ foreignKeyName: "player_bans_player_id_fkey";
447
+ columns: ["player_id"];
448
+ isOneToOne: false;
449
+ referencedRelation: "players";
450
+ referencedColumns: ["id"];
451
+ }
452
+ ];
453
+ };
454
+ player_consoles: {
455
+ Row: {
456
+ console_id: string;
457
+ is_primary: boolean;
458
+ player_id: string;
459
+ quantity: number;
460
+ user_id: string | null;
461
+ };
462
+ Insert: {
463
+ console_id: string;
464
+ is_primary?: boolean;
465
+ player_id?: string;
466
+ quantity?: number;
467
+ user_id?: string | null;
468
+ };
469
+ Update: {
470
+ console_id?: string;
471
+ is_primary?: boolean;
472
+ player_id?: string;
473
+ quantity?: number;
474
+ user_id?: string | null;
475
+ };
476
+ Relationships: [
477
+ {
478
+ foreignKeyName: "player_consoles_player_id_fkey";
479
+ columns: ["player_id"];
480
+ isOneToOne: false;
481
+ referencedRelation: "players";
482
+ referencedColumns: ["id"];
483
+ }
484
+ ];
485
+ };
486
+ player_id_verification_attempts: {
487
+ Row: {
488
+ created_at: string;
489
+ id: string;
490
+ id_country: string;
491
+ id_number: string;
492
+ id_type: Database["compliance"]["Enums"]["id_type"];
493
+ person_data: Json | null;
494
+ user_id: string;
495
+ };
496
+ Insert: {
497
+ created_at?: string;
498
+ id?: string;
499
+ id_country: string;
500
+ id_number: string;
501
+ id_type: Database["compliance"]["Enums"]["id_type"];
502
+ person_data?: Json | null;
503
+ user_id?: string;
504
+ };
505
+ Update: {
506
+ created_at?: string;
507
+ id?: string;
508
+ id_country?: string;
509
+ id_number?: string;
510
+ id_type?: Database["compliance"]["Enums"]["id_type"];
511
+ person_data?: Json | null;
512
+ user_id?: string;
513
+ };
514
+ Relationships: [];
515
+ };
516
+ player_minor_rep_id_verification_attempts: {
517
+ Row: {
518
+ created_at: string;
519
+ id: string;
520
+ id_country: string;
521
+ id_number: string;
522
+ id_type: Database["compliance"]["Enums"]["id_type"];
523
+ person_data: Json | null;
524
+ user_id: string;
525
+ };
526
+ Insert: {
527
+ created_at?: string;
528
+ id?: string;
529
+ id_country: string;
530
+ id_number: string;
531
+ id_type: Database["compliance"]["Enums"]["id_type"];
532
+ person_data?: Json | null;
533
+ user_id?: string;
534
+ };
535
+ Update: {
536
+ created_at?: string;
537
+ id?: string;
538
+ id_country?: string;
539
+ id_number?: string;
540
+ id_type?: Database["compliance"]["Enums"]["id_type"];
541
+ person_data?: Json | null;
542
+ user_id?: string;
543
+ };
544
+ Relationships: [];
545
+ };
546
+ player_minor_rep_personal_details: {
547
+ Row: {
548
+ birth_date: string;
549
+ created_at: string;
550
+ created_by: string | null;
551
+ email: string | null;
552
+ email_updated_at: string | null;
553
+ first_name: string;
554
+ gender_identity: Database["compliance"]["Enums"]["gender_identity"] | null;
555
+ id: string;
556
+ last_name: string;
557
+ middle_names: string | null;
558
+ nationality: string;
559
+ phone: string;
560
+ phone_updated_at: string | null;
561
+ pronouns: Database["compliance"]["Enums"]["pronouns"][] | null;
562
+ sex: Database["compliance"]["Enums"]["sex"] | null;
563
+ show_pronouns: boolean | null;
564
+ };
565
+ Insert: {
566
+ birth_date: string;
567
+ created_at?: string;
568
+ created_by?: string | null;
569
+ email?: string | null;
570
+ email_updated_at?: string | null;
571
+ first_name: string;
572
+ gender_identity?: Database["compliance"]["Enums"]["gender_identity"] | null;
573
+ id?: string;
574
+ last_name: string;
575
+ middle_names?: string | null;
576
+ nationality: string;
577
+ phone: string;
578
+ phone_updated_at?: string | null;
579
+ pronouns?: Database["compliance"]["Enums"]["pronouns"][] | null;
580
+ sex?: Database["compliance"]["Enums"]["sex"] | null;
581
+ show_pronouns?: boolean | null;
582
+ };
583
+ Update: {
584
+ birth_date?: string;
585
+ created_at?: string;
586
+ created_by?: string | null;
587
+ email?: string | null;
588
+ email_updated_at?: string | null;
589
+ first_name?: string;
590
+ gender_identity?: Database["compliance"]["Enums"]["gender_identity"] | null;
591
+ id?: string;
592
+ last_name?: string;
593
+ middle_names?: string | null;
594
+ nationality?: string;
595
+ phone?: string;
596
+ phone_updated_at?: string | null;
597
+ pronouns?: Database["compliance"]["Enums"]["pronouns"][] | null;
598
+ sex?: Database["compliance"]["Enums"]["sex"] | null;
599
+ show_pronouns?: boolean | null;
600
+ };
601
+ Relationships: [];
602
+ };
603
+ player_minor_rep_phone_verification_attempts: {
604
+ Row: {
605
+ created_at: string;
606
+ phone: string;
607
+ send_code_attempts: Json;
608
+ status: Database["compliance"]["Enums"]["twilio_verification_status"];
609
+ twilio_sid: string;
610
+ updated_at: string;
611
+ user_id: string;
612
+ };
613
+ Insert: {
614
+ created_at: string;
615
+ phone: string;
616
+ send_code_attempts: Json;
617
+ status?: Database["compliance"]["Enums"]["twilio_verification_status"];
618
+ twilio_sid: string;
619
+ updated_at: string;
620
+ user_id?: string;
621
+ };
622
+ Update: {
623
+ created_at?: string;
624
+ phone?: string;
625
+ send_code_attempts?: Json;
626
+ status?: Database["compliance"]["Enums"]["twilio_verification_status"];
627
+ twilio_sid?: string;
628
+ updated_at?: string;
629
+ user_id?: string;
630
+ };
631
+ Relationships: [];
632
+ };
633
+ player_minor_rep_verified_id_documents: {
634
+ Row: {
635
+ created_at: string;
636
+ id_country: string;
637
+ id_number: string;
638
+ id_type: Database["compliance"]["Enums"]["id_type"];
639
+ issued_on: string;
640
+ user_id: string;
641
+ valid_until: string | null;
642
+ };
643
+ Insert: {
644
+ created_at?: string;
645
+ id_country: string;
646
+ id_number: string;
647
+ id_type: Database["compliance"]["Enums"]["id_type"];
648
+ issued_on: string;
649
+ user_id?: string;
650
+ valid_until?: string | null;
651
+ };
652
+ Update: {
653
+ created_at?: string;
654
+ id_country?: string;
655
+ id_number?: string;
656
+ id_type?: Database["compliance"]["Enums"]["id_type"];
657
+ issued_on?: string;
658
+ user_id?: string;
659
+ valid_until?: string | null;
660
+ };
661
+ Relationships: [];
662
+ };
663
+ player_minor_reps: {
664
+ Row: {
665
+ created_at: string;
666
+ non_platform_id: string | null;
667
+ other_relation: string | null;
668
+ platform_id: string | null;
669
+ relation: Database["compliance"]["Enums"]["minor_relation"] | null;
670
+ user_id: string;
671
+ };
672
+ Insert: {
673
+ created_at?: string;
674
+ non_platform_id?: string | null;
675
+ other_relation?: string | null;
676
+ platform_id?: string | null;
677
+ relation?: Database["compliance"]["Enums"]["minor_relation"] | null;
678
+ user_id?: string;
679
+ };
680
+ Update: {
681
+ created_at?: string;
682
+ non_platform_id?: string | null;
683
+ other_relation?: string | null;
684
+ platform_id?: string | null;
685
+ relation?: Database["compliance"]["Enums"]["minor_relation"] | null;
686
+ user_id?: string;
687
+ };
688
+ Relationships: [
689
+ {
690
+ foreignKeyName: "compliance_player_minor_reps_non_platform_id_fkey";
691
+ columns: ["non_platform_id"];
692
+ isOneToOne: false;
693
+ referencedRelation: "player_minor_rep_personal_details";
694
+ referencedColumns: ["id"];
695
+ }
696
+ ];
697
+ };
698
+ player_mobile_operating_systems: {
699
+ Row: {
700
+ is_primary: boolean;
701
+ player_id: string;
702
+ quantity: number;
703
+ system_id: number;
704
+ user_id: string | null;
705
+ };
706
+ Insert: {
707
+ is_primary?: boolean;
708
+ player_id: string;
709
+ quantity: number;
710
+ system_id: number;
711
+ user_id?: string | null;
712
+ };
713
+ Update: {
714
+ is_primary?: boolean;
715
+ player_id?: string;
716
+ quantity?: number;
717
+ system_id?: number;
718
+ user_id?: string | null;
719
+ };
720
+ Relationships: [
721
+ {
722
+ foreignKeyName: "compliance_player_mobile_operating_systems_player_id_fkey";
723
+ columns: ["player_id"];
724
+ isOneToOne: false;
725
+ referencedRelation: "players";
726
+ referencedColumns: ["id"];
727
+ }
728
+ ];
729
+ };
730
+ player_platforms: {
731
+ Row: {
732
+ is_primary: boolean;
733
+ platform_shorthand: string;
734
+ player_id: string;
735
+ user_id: string | null;
736
+ username: string | null;
737
+ };
738
+ Insert: {
739
+ is_primary?: boolean;
740
+ platform_shorthand: string;
741
+ player_id?: string;
742
+ user_id?: string | null;
743
+ username?: string | null;
744
+ };
745
+ Update: {
746
+ is_primary?: boolean;
747
+ platform_shorthand?: string;
748
+ player_id?: string;
749
+ user_id?: string | null;
750
+ username?: string | null;
751
+ };
752
+ Relationships: [
753
+ {
754
+ foreignKeyName: "player_platforms_player_id_fkey";
755
+ columns: ["player_id"];
756
+ isOneToOne: false;
757
+ referencedRelation: "players";
758
+ referencedColumns: ["id"];
759
+ }
760
+ ];
761
+ };
762
+ player_socials: {
763
+ Row: {
764
+ created_at: string;
765
+ handle: string;
766
+ platform: Database["public"]["Enums"]["social_media_platform"];
767
+ user_id: string;
768
+ };
769
+ Insert: {
770
+ created_at?: string;
771
+ handle: string;
772
+ platform: Database["public"]["Enums"]["social_media_platform"];
773
+ user_id?: string;
774
+ };
775
+ Update: {
776
+ created_at?: string;
777
+ handle?: string;
778
+ platform?: Database["public"]["Enums"]["social_media_platform"];
779
+ user_id?: string;
780
+ };
781
+ Relationships: [];
782
+ };
783
+ player_varsity_institutions: {
784
+ Row: {
785
+ created_at: string;
786
+ enrollment_year: number;
787
+ formatted_institution_name: string | null;
788
+ graduation_year: number;
789
+ id: string;
790
+ institution_code: string | null;
791
+ institution_name_issue: Database["compliance"]["Enums"]["institution_name_issue"] | null;
792
+ player_id: string;
793
+ user_id: string | null;
794
+ };
795
+ Insert: {
796
+ created_at?: string;
797
+ enrollment_year: number;
798
+ formatted_institution_name?: string | null;
799
+ graduation_year: number;
800
+ id?: string;
801
+ institution_code?: string | null;
802
+ institution_name_issue?: Database["compliance"]["Enums"]["institution_name_issue"] | null;
803
+ player_id?: string;
804
+ user_id?: string | null;
805
+ };
806
+ Update: {
807
+ created_at?: string;
808
+ enrollment_year?: number;
809
+ formatted_institution_name?: string | null;
810
+ graduation_year?: number;
811
+ id?: string;
812
+ institution_code?: string | null;
813
+ institution_name_issue?: Database["compliance"]["Enums"]["institution_name_issue"] | null;
814
+ player_id?: string;
815
+ user_id?: string | null;
816
+ };
817
+ Relationships: [
818
+ {
819
+ foreignKeyName: "compliance_player_varsity_institutions_player_id_fkey";
820
+ columns: ["player_id"];
821
+ isOneToOne: false;
822
+ referencedRelation: "players";
823
+ referencedColumns: ["id"];
824
+ }
825
+ ];
826
+ };
827
+ player_verified_id_documents: {
828
+ Row: {
829
+ created_at: string;
830
+ id_country: string;
831
+ id_number: string;
832
+ id_type: Database["compliance"]["Enums"]["id_type"];
833
+ issued_on: string | null;
834
+ user_id: string;
835
+ valid_until: string | null;
836
+ };
837
+ Insert: {
838
+ created_at?: string;
839
+ id_country: string;
840
+ id_number: string;
841
+ id_type: Database["compliance"]["Enums"]["id_type"];
842
+ issued_on?: string | null;
843
+ user_id?: string;
844
+ valid_until?: string | null;
845
+ };
846
+ Update: {
847
+ created_at?: string;
848
+ id_country?: string;
849
+ id_number?: string;
850
+ id_type?: Database["compliance"]["Enums"]["id_type"];
851
+ issued_on?: string | null;
852
+ user_id?: string;
853
+ valid_until?: string | null;
854
+ };
855
+ Relationships: [];
856
+ };
857
+ player_xp_transactions: {
858
+ Row: {
859
+ amount: number;
860
+ category: Database["public"]["Enums"]["category"];
861
+ created_at: string;
862
+ description: string;
863
+ id: string;
864
+ player_id: string;
865
+ service: Database["public"]["Enums"]["service"] | null;
866
+ user_id: string | null;
867
+ };
868
+ Insert: {
869
+ amount: number;
870
+ category: Database["public"]["Enums"]["category"];
871
+ created_at?: string;
872
+ description: string;
873
+ id?: string;
874
+ player_id?: string;
875
+ service?: Database["public"]["Enums"]["service"] | null;
876
+ user_id?: string | null;
877
+ };
878
+ Update: {
879
+ amount?: number;
880
+ category?: Database["public"]["Enums"]["category"];
881
+ created_at?: string;
882
+ description?: string;
883
+ id?: string;
884
+ player_id?: string;
885
+ service?: Database["public"]["Enums"]["service"] | null;
886
+ user_id?: string | null;
887
+ };
888
+ Relationships: [
889
+ {
890
+ foreignKeyName: "player_xp_transactions_player_id_fkey";
891
+ columns: ["player_id"];
892
+ isOneToOne: false;
893
+ referencedRelation: "players";
894
+ referencedColumns: ["id"];
895
+ }
896
+ ];
897
+ };
898
+ players: {
899
+ Row: {
900
+ birth_date: string;
901
+ created_at: string;
902
+ deleted: boolean;
903
+ deleted_at: string | null;
904
+ first_name: string;
905
+ gender_identity: Database["compliance"]["Enums"]["gender_identity"] | null;
906
+ id: string;
907
+ last_name: string;
908
+ middle_names: string | null;
909
+ nationality: string;
910
+ pronouns: Database["compliance"]["Enums"]["pronouns"][] | null;
911
+ pseudonym: string | null;
912
+ sex: Database["compliance"]["Enums"]["sex"] | null;
913
+ show_birth_date: boolean;
914
+ show_pronouns: boolean | null;
915
+ user_id: string | null;
916
+ };
917
+ Insert: {
918
+ birth_date: string;
919
+ created_at?: string;
920
+ deleted?: boolean;
921
+ deleted_at?: string | null;
922
+ first_name: string;
923
+ gender_identity?: Database["compliance"]["Enums"]["gender_identity"] | null;
924
+ id?: string;
925
+ last_name: string;
926
+ middle_names?: string | null;
927
+ nationality: string;
928
+ pronouns?: Database["compliance"]["Enums"]["pronouns"][] | null;
929
+ pseudonym?: string | null;
930
+ sex?: Database["compliance"]["Enums"]["sex"] | null;
931
+ show_birth_date: boolean;
932
+ show_pronouns?: boolean | null;
933
+ user_id?: string | null;
934
+ };
935
+ Update: {
936
+ birth_date?: string;
937
+ created_at?: string;
938
+ deleted?: boolean;
939
+ deleted_at?: string | null;
940
+ first_name?: string;
941
+ gender_identity?: Database["compliance"]["Enums"]["gender_identity"] | null;
942
+ id?: string;
943
+ last_name?: string;
944
+ middle_names?: string | null;
945
+ nationality?: string;
946
+ pronouns?: Database["compliance"]["Enums"]["pronouns"][] | null;
947
+ pseudonym?: string | null;
948
+ sex?: Database["compliance"]["Enums"]["sex"] | null;
949
+ show_birth_date?: boolean;
950
+ show_pronouns?: boolean | null;
951
+ user_id?: string | null;
952
+ };
953
+ Relationships: [];
954
+ };
955
+ role_permissions: {
956
+ Row: {
957
+ permission: string;
958
+ role: string;
959
+ };
960
+ Insert: {
961
+ permission: string;
962
+ role: string;
963
+ };
964
+ Update: {
965
+ permission?: string;
966
+ role?: string;
967
+ };
968
+ Relationships: [];
969
+ };
970
+ temporary_player_xp_transactions: {
971
+ Row: {
972
+ amount: number;
973
+ created_at: string;
974
+ description: string;
975
+ id: string;
976
+ player_id: string | null;
977
+ user_id: string | null;
978
+ };
979
+ Insert: {
980
+ amount: number;
981
+ created_at?: string;
982
+ description: string;
983
+ id?: string;
984
+ player_id?: string | null;
985
+ user_id?: string | null;
986
+ };
987
+ Update: {
988
+ amount?: number;
989
+ created_at?: string;
990
+ description?: string;
991
+ id?: string;
992
+ player_id?: string | null;
993
+ user_id?: string | null;
994
+ };
995
+ Relationships: [
996
+ {
997
+ foreignKeyName: "temporary_player_xp_transactions_player_id_fkey";
998
+ columns: ["player_id"];
999
+ isOneToOne: false;
1000
+ referencedRelation: "temporary_players";
1001
+ referencedColumns: ["id"];
1002
+ },
1003
+ {
1004
+ foreignKeyName: "temporary_player_xp_transactions_user_id_fkey";
1005
+ columns: ["user_id"];
1006
+ isOneToOne: false;
1007
+ referencedRelation: "temporary_players";
1008
+ referencedColumns: ["user_id"];
1009
+ }
1010
+ ];
1011
+ };
1012
+ temporary_players: {
1013
+ Row: {
1014
+ created_at: string;
1015
+ first_name: string;
1016
+ id: string;
1017
+ last_name: string;
1018
+ phone: string;
1019
+ user_id: string | null;
1020
+ };
1021
+ Insert: {
1022
+ created_at?: string;
1023
+ first_name: string;
1024
+ id?: string;
1025
+ last_name: string;
1026
+ phone: string;
1027
+ user_id?: string | null;
1028
+ };
1029
+ Update: {
1030
+ created_at?: string;
1031
+ first_name?: string;
1032
+ id?: string;
1033
+ last_name?: string;
1034
+ phone?: string;
1035
+ user_id?: string | null;
1036
+ };
1037
+ Relationships: [];
1038
+ };
1039
+ user_roles: {
1040
+ Row: {
1041
+ role: string;
1042
+ user_id: string;
1043
+ };
1044
+ Insert: {
1045
+ role: string;
1046
+ user_id?: string;
1047
+ };
1048
+ Update: {
1049
+ role?: string;
1050
+ user_id?: string;
1051
+ };
1052
+ Relationships: [
1053
+ {
1054
+ foreignKeyName: "user_roles_role_fkey";
1055
+ columns: ["role"];
1056
+ isOneToOne: false;
1057
+ referencedRelation: "app_roles";
1058
+ referencedColumns: ["name"];
1059
+ }
1060
+ ];
1061
+ };
1062
+ };
1063
+ Views: {
1064
+ [_ in never]: never;
1065
+ };
1066
+ Functions: {
1067
+ authorize: {
1068
+ Args: {
1069
+ requested_permission: string;
1070
+ };
1071
+ Returns: boolean;
1072
+ };
1073
+ complete_registration: {
1074
+ Args: Record<PropertyKey, never>;
1075
+ Returns: undefined;
1076
+ };
1077
+ create_lounge: {
1078
+ Args: {
1079
+ p_company_name: string;
1080
+ p_registration_date: string;
1081
+ p_trade_name?: string;
1082
+ p_website?: string;
1083
+ };
1084
+ Returns: string;
1085
+ };
1086
+ create_lounge_staff: {
1087
+ Args: {
1088
+ p_first_name: string;
1089
+ p_last_name: string;
1090
+ p_birth_date: string;
1091
+ p_nationality: string;
1092
+ p_sex: Database["compliance"]["Enums"]["sex"];
1093
+ p_middle_names?: string;
1094
+ p_gender_identity?: Database["compliance"]["Enums"]["gender_identity"];
1095
+ p_pronouns?: Database["compliance"]["Enums"]["pronouns"][];
1096
+ p_show_pronouns?: boolean;
1097
+ };
1098
+ Returns: string;
1099
+ };
1100
+ create_player: {
1101
+ Args: {
1102
+ p_first_name: string;
1103
+ p_last_name: string;
1104
+ p_birth_date: string;
1105
+ p_nationality: string;
1106
+ p_sex: Database["compliance"]["Enums"]["sex"];
1107
+ p_middle_names?: string;
1108
+ p_pseudonym?: string;
1109
+ p_show_birth_date?: boolean;
1110
+ p_gender_identity?: Database["compliance"]["Enums"]["gender_identity"];
1111
+ p_pronouns?: Database["compliance"]["Enums"]["pronouns"][];
1112
+ p_show_pronouns?: boolean;
1113
+ };
1114
+ Returns: string;
1115
+ };
1116
+ create_player_minor_rep: {
1117
+ Args: {
1118
+ p_phone: string;
1119
+ p_first_name: string;
1120
+ p_last_name: string;
1121
+ p_birth_date: string;
1122
+ p_nationality: string;
1123
+ p_sex: Database["compliance"]["Enums"]["sex"];
1124
+ p_relation: Database["compliance"]["Enums"]["minor_relation"];
1125
+ p_middle_names?: string;
1126
+ p_gender_identity?: Database["compliance"]["Enums"]["gender_identity"];
1127
+ p_pronouns?: Database["compliance"]["Enums"]["pronouns"][];
1128
+ p_show_pronouns?: boolean;
1129
+ p_other_relation?: string;
1130
+ };
1131
+ Returns: string;
1132
+ };
1133
+ create_varsity_stint: {
1134
+ Args: {
1135
+ p_institution_code: string;
1136
+ p_enrollment_year: number;
1137
+ p_graduation_year: number;
1138
+ p_institution_name_issue?: Database["compliance"]["Enums"]["institution_name_issue"];
1139
+ p_formatted_institution_name?: string;
1140
+ };
1141
+ Returns: string;
1142
+ };
1143
+ custom_access_token_hook: {
1144
+ Args: {
1145
+ event: Json;
1146
+ };
1147
+ Returns: Json;
1148
+ };
1149
+ extract_names: {
1150
+ Args: {
1151
+ input_string: string;
1152
+ };
1153
+ Returns: {
1154
+ first_name: string;
1155
+ middle_names: string;
1156
+ last_name: string;
1157
+ }[];
1158
+ };
1159
+ gen_platform_id: {
1160
+ Args: {
1161
+ account_type: Database["compliance"]["Enums"]["account_type"];
1162
+ is_for_staff?: boolean;
1163
+ is_for_branch?: boolean;
1164
+ };
1165
+ Returns: string;
1166
+ };
1167
+ get_active_registration: {
1168
+ Args: Record<PropertyKey, never>;
1169
+ Returns: Json;
1170
+ };
1171
+ get_lounge_id: {
1172
+ Args: Record<PropertyKey, never>;
1173
+ Returns: string;
1174
+ };
1175
+ get_lounge_ids: {
1176
+ Args: {
1177
+ search?: string;
1178
+ };
1179
+ Returns: {
1180
+ r_user_id: string;
1181
+ r_lounge_id: string;
1182
+ }[];
1183
+ };
1184
+ get_player_ids: {
1185
+ Args: {
1186
+ search?: string;
1187
+ };
1188
+ Returns: {
1189
+ r_user_id: string;
1190
+ r_player_id: string;
1191
+ }[];
1192
+ };
1193
+ get_user_phone: {
1194
+ Args: {
1195
+ search?: string;
1196
+ };
1197
+ Returns: string;
1198
+ };
1199
+ is_user_permanent: {
1200
+ Args: {
1201
+ user_id: string;
1202
+ user_is_anonymous?: boolean;
1203
+ };
1204
+ Returns: boolean;
1205
+ };
1206
+ link_existing_minor_rep: {
1207
+ Args: {
1208
+ p_user_id: string;
1209
+ p_minor_relation: Database["compliance"]["Enums"]["minor_relation"];
1210
+ p_other_relation: string;
1211
+ };
1212
+ Returns: undefined;
1213
+ };
1214
+ log_minor_rep_phone_verification: {
1215
+ Args: {
1216
+ p_twilio_sid: string;
1217
+ p_status: Database["compliance"]["Enums"]["twilio_verification_status"];
1218
+ p_updated_at: string;
1219
+ p_phone?: string;
1220
+ p_send_code_attempts?: Json;
1221
+ p_created_at?: string;
1222
+ };
1223
+ Returns: undefined;
1224
+ };
1225
+ minor_rep_non_platform_id: {
1226
+ Args: Record<PropertyKey, never>;
1227
+ Returns: string;
1228
+ };
1229
+ minor_rep_phone: {
1230
+ Args: Record<PropertyKey, never>;
1231
+ Returns: string;
1232
+ };
1233
+ phone_is_in_auth: {
1234
+ Args: {
1235
+ p_phone: string;
1236
+ };
1237
+ Returns: boolean;
1238
+ };
1239
+ player_id: {
1240
+ Args: Record<PropertyKey, never>;
1241
+ Returns: string;
1242
+ };
1243
+ submit_gaming_and_socials_data: {
1244
+ Args: {
1245
+ p_primary_platform: Json;
1246
+ p_consoles: Json[];
1247
+ p_socials: Json[];
1248
+ };
1249
+ Returns: undefined;
1250
+ };
1251
+ validate_pronouns: {
1252
+ Args: {
1253
+ pronouns: Database["compliance"]["Enums"]["pronouns"][];
1254
+ };
1255
+ Returns: boolean;
1256
+ };
1257
+ };
1258
+ Enums: {
1259
+ account_type: "player" | "lounge";
1260
+ data_update_request_status: "pending" | "approved" | "rejected" | "cancelled";
1261
+ gender_identity: "cisgender" | "transgender" | "nonbinary";
1262
+ id_type: "national" | "alien" | "passport" | "driver_licence";
1263
+ institution_name_issue: "not_listed" | "has_error";
1264
+ luggage_deposit_type: "shelf" | "locker";
1265
+ minor_relation: "sibling" | "parent" | "guardian" | "grandparent" | "cousin" | "uncle/aunt" | "other";
1266
+ pronouns: "he/him/his/himself" | "she/her/hers/herself" | "they/them/their/themself" | "name_only";
1267
+ registration_step: "1" | "2" | "3" | "4" | "0";
1268
+ sex: "male" | "female" | "intersex_man" | "intersex_woman";
1269
+ twilio_verification_status: "pending" | "approved" | "canceled";
1270
+ };
1271
+ CompositeTypes: {
1272
+ [_ in never]: never;
1273
+ };
1274
+ };
1275
+ graphql_public: {
1276
+ Tables: {
1277
+ [_ in never]: never;
1278
+ };
1279
+ Views: {
1280
+ [_ in never]: never;
1281
+ };
1282
+ Functions: {
1283
+ graphql: {
1284
+ Args: {
1285
+ operationName?: string;
1286
+ query?: string;
1287
+ variables?: Json;
1288
+ extensions?: Json;
1289
+ };
1290
+ Returns: Json;
1291
+ };
1292
+ };
1293
+ Enums: {
1294
+ [_ in never]: never;
1295
+ };
1296
+ CompositeTypes: {
1297
+ [_ in never]: never;
1298
+ };
1299
+ };
1300
+ public: {
1301
+ Tables: {
1302
+ consoles: {
1303
+ Row: {
1304
+ abbreviation: string | null;
1305
+ generation: number;
1306
+ id: string;
1307
+ is_handheld: boolean;
1308
+ name: string;
1309
+ platform_shorthand: string;
1310
+ };
1311
+ Insert: {
1312
+ abbreviation?: string | null;
1313
+ generation: number;
1314
+ id?: string;
1315
+ is_handheld: boolean;
1316
+ name: string;
1317
+ platform_shorthand: string;
1318
+ };
1319
+ Update: {
1320
+ abbreviation?: string | null;
1321
+ generation?: number;
1322
+ id?: string;
1323
+ is_handheld?: boolean;
1324
+ name?: string;
1325
+ platform_shorthand?: string;
1326
+ };
1327
+ Relationships: [
1328
+ {
1329
+ foreignKeyName: "public_consoles_platform_shorthand_fkey";
1330
+ columns: ["platform_shorthand"];
1331
+ isOneToOne: false;
1332
+ referencedRelation: "platforms";
1333
+ referencedColumns: ["shorthand"];
1334
+ }
1335
+ ];
1336
+ };
1337
+ countries: {
1338
+ Row: {
1339
+ code: string;
1340
+ name: string;
1341
+ };
1342
+ Insert: {
1343
+ code: string;
1344
+ name: string;
1345
+ };
1346
+ Update: {
1347
+ code?: string;
1348
+ name?: string;
1349
+ };
1350
+ Relationships: [];
1351
+ };
1352
+ games: {
1353
+ Row: {
1354
+ genres: string[];
1355
+ id: string;
1356
+ name: string;
1357
+ release_date: string;
1358
+ supported: boolean;
1359
+ };
1360
+ Insert: {
1361
+ genres: string[];
1362
+ id?: string;
1363
+ name: string;
1364
+ release_date: string;
1365
+ supported: boolean;
1366
+ };
1367
+ Update: {
1368
+ genres?: string[];
1369
+ id?: string;
1370
+ name?: string;
1371
+ release_date?: string;
1372
+ supported?: boolean;
1373
+ };
1374
+ Relationships: [];
1375
+ };
1376
+ games_consoles: {
1377
+ Row: {
1378
+ console_id: string;
1379
+ game_id: string;
1380
+ };
1381
+ Insert: {
1382
+ console_id: string;
1383
+ game_id: string;
1384
+ };
1385
+ Update: {
1386
+ console_id?: string;
1387
+ game_id?: string;
1388
+ };
1389
+ Relationships: [
1390
+ {
1391
+ foreignKeyName: "public_games_consoles_console_id_fkey";
1392
+ columns: ["console_id"];
1393
+ isOneToOne: false;
1394
+ referencedRelation: "consoles";
1395
+ referencedColumns: ["id"];
1396
+ },
1397
+ {
1398
+ foreignKeyName: "public_games_consoles_game_id_fkey";
1399
+ columns: ["game_id"];
1400
+ isOneToOne: false;
1401
+ referencedRelation: "games";
1402
+ referencedColumns: ["id"];
1403
+ }
1404
+ ];
1405
+ };
1406
+ mobile_operating_systems: {
1407
+ Row: {
1408
+ id: number;
1409
+ name: string;
1410
+ };
1411
+ Insert: {
1412
+ id?: number;
1413
+ name: string;
1414
+ };
1415
+ Update: {
1416
+ id?: number;
1417
+ name?: string;
1418
+ };
1419
+ Relationships: [];
1420
+ };
1421
+ platforms: {
1422
+ Row: {
1423
+ name: string;
1424
+ online_name: string | null;
1425
+ shorthand: string;
1426
+ };
1427
+ Insert: {
1428
+ name: string;
1429
+ online_name?: string | null;
1430
+ shorthand: string;
1431
+ };
1432
+ Update: {
1433
+ name?: string;
1434
+ online_name?: string | null;
1435
+ shorthand?: string;
1436
+ };
1437
+ Relationships: [];
1438
+ };
1439
+ varsity_institutions: {
1440
+ Row: {
1441
+ code: string;
1442
+ name: string;
1443
+ };
1444
+ Insert: {
1445
+ code: string;
1446
+ name: string;
1447
+ };
1448
+ Update: {
1449
+ code?: string;
1450
+ name?: string;
1451
+ };
1452
+ Relationships: [];
1453
+ };
1454
+ };
1455
+ Views: {
1456
+ active_lounges: {
1457
+ Row: {
1458
+ created_at: string | null;
1459
+ id: string | null;
1460
+ name: string | null;
1461
+ registration_date: string | null;
1462
+ };
1463
+ Insert: {
1464
+ created_at?: string | null;
1465
+ id?: string | null;
1466
+ name?: never;
1467
+ registration_date?: string | null;
1468
+ };
1469
+ Update: {
1470
+ created_at?: string | null;
1471
+ id?: string | null;
1472
+ name?: never;
1473
+ registration_date?: string | null;
1474
+ };
1475
+ Relationships: [];
1476
+ };
1477
+ active_player_socials: {
1478
+ Row: {
1479
+ handle: string | null;
1480
+ id: string | null;
1481
+ platform: Database["public"]["Enums"]["social_media_platform"] | null;
1482
+ };
1483
+ Relationships: [];
1484
+ };
1485
+ active_players: {
1486
+ Row: {
1487
+ birth_date: string | null;
1488
+ created_at: string | null;
1489
+ first_name: string | null;
1490
+ id: string | null;
1491
+ last_name: string | null;
1492
+ middle_names: string | null;
1493
+ nationality: string | null;
1494
+ pronouns: Database["compliance"]["Enums"]["pronouns"][] | null;
1495
+ pseudonym: string | null;
1496
+ };
1497
+ Insert: {
1498
+ birth_date?: never;
1499
+ created_at?: string | null;
1500
+ first_name?: string | null;
1501
+ id?: string | null;
1502
+ last_name?: string | null;
1503
+ middle_names?: string | null;
1504
+ nationality?: string | null;
1505
+ pronouns?: never;
1506
+ pseudonym?: string | null;
1507
+ };
1508
+ Update: {
1509
+ birth_date?: never;
1510
+ created_at?: string | null;
1511
+ first_name?: string | null;
1512
+ id?: string | null;
1513
+ last_name?: string | null;
1514
+ middle_names?: string | null;
1515
+ nationality?: string | null;
1516
+ pronouns?: never;
1517
+ pseudonym?: string | null;
1518
+ };
1519
+ Relationships: [
1520
+ {
1521
+ foreignKeyName: "compliance_players_nationality_fkey";
1522
+ columns: ["nationality"];
1523
+ isOneToOne: false;
1524
+ referencedRelation: "countries";
1525
+ referencedColumns: ["code"];
1526
+ }
1527
+ ];
1528
+ };
1529
+ };
1530
+ Functions: {
1531
+ [_ in never]: never;
1532
+ };
1533
+ Enums: {
1534
+ category: "authentication" | "account" | "sessions" | "football" | "fighting" | "battle_royale";
1535
+ service: "league" | "challenges" | "locals" | "sims" | "clip_of_the_week";
1536
+ social_media_platform: "facebook" | "instagram" | "kick" | "tiktok" | "twitch" | "twitter" | "youtube";
1537
+ };
1538
+ CompositeTypes: {
1539
+ [_ in never]: never;
1540
+ };
1541
+ };
1542
+ storage: {
1543
+ Tables: {
1544
+ buckets: {
1545
+ Row: {
1546
+ allowed_mime_types: string[] | null;
1547
+ avif_autodetection: boolean | null;
1548
+ created_at: string | null;
1549
+ file_size_limit: number | null;
1550
+ id: string;
1551
+ name: string;
1552
+ owner: string | null;
1553
+ owner_id: string | null;
1554
+ public: boolean | null;
1555
+ updated_at: string | null;
1556
+ };
1557
+ Insert: {
1558
+ allowed_mime_types?: string[] | null;
1559
+ avif_autodetection?: boolean | null;
1560
+ created_at?: string | null;
1561
+ file_size_limit?: number | null;
1562
+ id: string;
1563
+ name: string;
1564
+ owner?: string | null;
1565
+ owner_id?: string | null;
1566
+ public?: boolean | null;
1567
+ updated_at?: string | null;
1568
+ };
1569
+ Update: {
1570
+ allowed_mime_types?: string[] | null;
1571
+ avif_autodetection?: boolean | null;
1572
+ created_at?: string | null;
1573
+ file_size_limit?: number | null;
1574
+ id?: string;
1575
+ name?: string;
1576
+ owner?: string | null;
1577
+ owner_id?: string | null;
1578
+ public?: boolean | null;
1579
+ updated_at?: string | null;
1580
+ };
1581
+ Relationships: [];
1582
+ };
1583
+ migrations: {
1584
+ Row: {
1585
+ executed_at: string | null;
1586
+ hash: string;
1587
+ id: number;
1588
+ name: string;
1589
+ };
1590
+ Insert: {
1591
+ executed_at?: string | null;
1592
+ hash: string;
1593
+ id: number;
1594
+ name: string;
1595
+ };
1596
+ Update: {
1597
+ executed_at?: string | null;
1598
+ hash?: string;
1599
+ id?: number;
1600
+ name?: string;
1601
+ };
1602
+ Relationships: [];
1603
+ };
1604
+ objects: {
1605
+ Row: {
1606
+ bucket_id: string | null;
1607
+ created_at: string | null;
1608
+ id: string;
1609
+ last_accessed_at: string | null;
1610
+ metadata: Json | null;
1611
+ name: string | null;
1612
+ owner: string | null;
1613
+ owner_id: string | null;
1614
+ path_tokens: string[] | null;
1615
+ updated_at: string | null;
1616
+ user_metadata: Json | null;
1617
+ version: string | null;
1618
+ };
1619
+ Insert: {
1620
+ bucket_id?: string | null;
1621
+ created_at?: string | null;
1622
+ id?: string;
1623
+ last_accessed_at?: string | null;
1624
+ metadata?: Json | null;
1625
+ name?: string | null;
1626
+ owner?: string | null;
1627
+ owner_id?: string | null;
1628
+ path_tokens?: string[] | null;
1629
+ updated_at?: string | null;
1630
+ user_metadata?: Json | null;
1631
+ version?: string | null;
1632
+ };
1633
+ Update: {
1634
+ bucket_id?: string | null;
1635
+ created_at?: string | null;
1636
+ id?: string;
1637
+ last_accessed_at?: string | null;
1638
+ metadata?: Json | null;
1639
+ name?: string | null;
1640
+ owner?: string | null;
1641
+ owner_id?: string | null;
1642
+ path_tokens?: string[] | null;
1643
+ updated_at?: string | null;
1644
+ user_metadata?: Json | null;
1645
+ version?: string | null;
1646
+ };
1647
+ Relationships: [
1648
+ {
1649
+ foreignKeyName: "objects_bucketId_fkey";
1650
+ columns: ["bucket_id"];
1651
+ isOneToOne: false;
1652
+ referencedRelation: "buckets";
1653
+ referencedColumns: ["id"];
1654
+ }
1655
+ ];
1656
+ };
1657
+ s3_multipart_uploads: {
1658
+ Row: {
1659
+ bucket_id: string;
1660
+ created_at: string;
1661
+ id: string;
1662
+ in_progress_size: number;
1663
+ key: string;
1664
+ owner_id: string | null;
1665
+ upload_signature: string;
1666
+ user_metadata: Json | null;
1667
+ version: string;
1668
+ };
1669
+ Insert: {
1670
+ bucket_id: string;
1671
+ created_at?: string;
1672
+ id: string;
1673
+ in_progress_size?: number;
1674
+ key: string;
1675
+ owner_id?: string | null;
1676
+ upload_signature: string;
1677
+ user_metadata?: Json | null;
1678
+ version: string;
1679
+ };
1680
+ Update: {
1681
+ bucket_id?: string;
1682
+ created_at?: string;
1683
+ id?: string;
1684
+ in_progress_size?: number;
1685
+ key?: string;
1686
+ owner_id?: string | null;
1687
+ upload_signature?: string;
1688
+ user_metadata?: Json | null;
1689
+ version?: string;
1690
+ };
1691
+ Relationships: [
1692
+ {
1693
+ foreignKeyName: "s3_multipart_uploads_bucket_id_fkey";
1694
+ columns: ["bucket_id"];
1695
+ isOneToOne: false;
1696
+ referencedRelation: "buckets";
1697
+ referencedColumns: ["id"];
1698
+ }
1699
+ ];
1700
+ };
1701
+ s3_multipart_uploads_parts: {
1702
+ Row: {
1703
+ bucket_id: string;
1704
+ created_at: string;
1705
+ etag: string;
1706
+ id: string;
1707
+ key: string;
1708
+ owner_id: string | null;
1709
+ part_number: number;
1710
+ size: number;
1711
+ upload_id: string;
1712
+ version: string;
1713
+ };
1714
+ Insert: {
1715
+ bucket_id: string;
1716
+ created_at?: string;
1717
+ etag: string;
1718
+ id?: string;
1719
+ key: string;
1720
+ owner_id?: string | null;
1721
+ part_number: number;
1722
+ size?: number;
1723
+ upload_id: string;
1724
+ version: string;
1725
+ };
1726
+ Update: {
1727
+ bucket_id?: string;
1728
+ created_at?: string;
1729
+ etag?: string;
1730
+ id?: string;
1731
+ key?: string;
1732
+ owner_id?: string | null;
1733
+ part_number?: number;
1734
+ size?: number;
1735
+ upload_id?: string;
1736
+ version?: string;
1737
+ };
1738
+ Relationships: [
1739
+ {
1740
+ foreignKeyName: "s3_multipart_uploads_parts_bucket_id_fkey";
1741
+ columns: ["bucket_id"];
1742
+ isOneToOne: false;
1743
+ referencedRelation: "buckets";
1744
+ referencedColumns: ["id"];
1745
+ },
1746
+ {
1747
+ foreignKeyName: "s3_multipart_uploads_parts_upload_id_fkey";
1748
+ columns: ["upload_id"];
1749
+ isOneToOne: false;
1750
+ referencedRelation: "s3_multipart_uploads";
1751
+ referencedColumns: ["id"];
1752
+ }
1753
+ ];
1754
+ };
1755
+ };
1756
+ Views: {
1757
+ [_ in never]: never;
1758
+ };
1759
+ Functions: {
1760
+ can_insert_object: {
1761
+ Args: {
1762
+ bucketid: string;
1763
+ name: string;
1764
+ owner: string;
1765
+ metadata: Json;
1766
+ };
1767
+ Returns: undefined;
1768
+ };
1769
+ extension: {
1770
+ Args: {
1771
+ name: string;
1772
+ };
1773
+ Returns: string;
1774
+ };
1775
+ filename: {
1776
+ Args: {
1777
+ name: string;
1778
+ };
1779
+ Returns: string;
1780
+ };
1781
+ foldername: {
1782
+ Args: {
1783
+ name: string;
1784
+ };
1785
+ Returns: string[];
1786
+ };
1787
+ get_size_by_bucket: {
1788
+ Args: Record<PropertyKey, never>;
1789
+ Returns: {
1790
+ size: number;
1791
+ bucket_id: string;
1792
+ }[];
1793
+ };
1794
+ list_multipart_uploads_with_delimiter: {
1795
+ Args: {
1796
+ bucket_id: string;
1797
+ prefix_param: string;
1798
+ delimiter_param: string;
1799
+ max_keys?: number;
1800
+ next_key_token?: string;
1801
+ next_upload_token?: string;
1802
+ };
1803
+ Returns: {
1804
+ key: string;
1805
+ id: string;
1806
+ created_at: string;
1807
+ }[];
1808
+ };
1809
+ list_objects_with_delimiter: {
1810
+ Args: {
1811
+ bucket_id: string;
1812
+ prefix_param: string;
1813
+ delimiter_param: string;
1814
+ max_keys?: number;
1815
+ start_after?: string;
1816
+ next_token?: string;
1817
+ };
1818
+ Returns: {
1819
+ name: string;
1820
+ id: string;
1821
+ metadata: Json;
1822
+ updated_at: string;
1823
+ }[];
1824
+ };
1825
+ operation: {
1826
+ Args: Record<PropertyKey, never>;
1827
+ Returns: string;
1828
+ };
1829
+ search: {
1830
+ Args: {
1831
+ prefix: string;
1832
+ bucketname: string;
1833
+ limits?: number;
1834
+ levels?: number;
1835
+ offsets?: number;
1836
+ search?: string;
1837
+ sortcolumn?: string;
1838
+ sortorder?: string;
1839
+ };
1840
+ Returns: {
1841
+ name: string;
1842
+ id: string;
1843
+ updated_at: string;
1844
+ created_at: string;
1845
+ last_accessed_at: string;
1846
+ metadata: Json;
1847
+ }[];
1848
+ };
1849
+ };
1850
+ Enums: {
1851
+ [_ in never]: never;
1852
+ };
1853
+ CompositeTypes: {
1854
+ [_ in never]: never;
1855
+ };
1856
+ };
1857
+ };
1858
+ type DefaultSchema = Database[Extract<keyof Database, "public">];
1859
+ export type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) | {
1860
+ schema: keyof Database;
1861
+ }, TableName extends DefaultSchemaTableNameOrOptions extends {
1862
+ schema: keyof Database;
1863
+ } ? keyof (Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & Database[DefaultSchemaTableNameOrOptions["schema"]]["Views"]) : never = never> = DefaultSchemaTableNameOrOptions extends {
1864
+ schema: keyof Database;
1865
+ } ? (Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & Database[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
1866
+ Row: infer R;
1867
+ } ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) ? (DefaultSchema["Tables"] & DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
1868
+ Row: infer R;
1869
+ } ? R : never : never;
1870
+ export type TablesInsert<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
1871
+ schema: keyof Database;
1872
+ }, TableName extends DefaultSchemaTableNameOrOptions extends {
1873
+ schema: keyof Database;
1874
+ } ? keyof Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
1875
+ schema: keyof Database;
1876
+ } ? Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
1877
+ Insert: infer I;
1878
+ } ? I : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
1879
+ Insert: infer I;
1880
+ } ? I : never : never;
1881
+ export type TablesUpdate<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
1882
+ schema: keyof Database;
1883
+ }, TableName extends DefaultSchemaTableNameOrOptions extends {
1884
+ schema: keyof Database;
1885
+ } ? keyof Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
1886
+ schema: keyof Database;
1887
+ } ? Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
1888
+ Update: infer U;
1889
+ } ? U : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
1890
+ Update: infer U;
1891
+ } ? U : never : never;
1892
+ export type Enums<DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] | {
1893
+ schema: keyof Database;
1894
+ }, EnumName extends DefaultSchemaEnumNameOrOptions extends {
1895
+ schema: keyof Database;
1896
+ } ? keyof Database[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"] : never = never> = DefaultSchemaEnumNameOrOptions extends {
1897
+ schema: keyof Database;
1898
+ } ? Database[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"][EnumName] : DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] ? DefaultSchema["Enums"][DefaultSchemaEnumNameOrOptions] : never;
1899
+ export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] | {
1900
+ schema: keyof Database;
1901
+ }, CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
1902
+ schema: keyof Database;
1903
+ } ? keyof Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"] : never = never> = PublicCompositeTypeNameOrOptions extends {
1904
+ schema: keyof Database;
1905
+ } ? Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName] : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] ? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions] : never;
1906
+ export declare const Constants: {
1907
+ readonly compliance: {
1908
+ readonly Enums: {
1909
+ readonly account_type: readonly ["player", "lounge"];
1910
+ readonly data_update_request_status: readonly ["pending", "approved", "rejected", "cancelled"];
1911
+ readonly gender_identity: readonly ["cisgender", "transgender", "nonbinary"];
1912
+ readonly id_type: readonly ["national", "alien", "passport", "driver_licence"];
1913
+ readonly institution_name_issue: readonly ["not_listed", "has_error"];
1914
+ readonly luggage_deposit_type: readonly ["shelf", "locker"];
1915
+ readonly minor_relation: readonly ["sibling", "parent", "guardian", "grandparent", "cousin", "uncle/aunt", "other"];
1916
+ readonly pronouns: readonly ["he/him/his/himself", "she/her/hers/herself", "they/them/their/themself", "name_only"];
1917
+ readonly registration_step: readonly ["1", "2", "3", "4", "0"];
1918
+ readonly sex: readonly ["male", "female", "intersex_man", "intersex_woman"];
1919
+ readonly twilio_verification_status: readonly ["pending", "approved", "canceled"];
1920
+ };
1921
+ };
1922
+ readonly graphql_public: {
1923
+ readonly Enums: {};
1924
+ };
1925
+ readonly public: {
1926
+ readonly Enums: {
1927
+ readonly category: readonly ["authentication", "account", "sessions", "football", "fighting", "battle_royale"];
1928
+ readonly service: readonly ["league", "challenges", "locals", "sims", "clip_of_the_week"];
1929
+ readonly social_media_platform: readonly ["facebook", "instagram", "kick", "tiktok", "twitch", "twitter", "youtube"];
1930
+ };
1931
+ };
1932
+ readonly storage: {
1933
+ readonly Enums: {};
1934
+ };
1935
+ };
1936
+ export {};