@koloseum/types 0.1.7 → 0.1.9

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