@koloseum/types 0.1.0

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