@teardown/types 0.0.2

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,888 @@
1
+ export type Json = string | number | boolean | null | {
2
+ [key: string]: Json | undefined;
3
+ } | Json[];
4
+ export type Database = {
5
+ __InternalSupabase: {
6
+ PostgrestVersion: "13.0.5";
7
+ };
8
+ public: {
9
+ Tables: {
10
+ device_sessions: {
11
+ Row: {
12
+ created_at: string;
13
+ device_id: string;
14
+ emergency_launch_reason: string | null;
15
+ id: string;
16
+ is_embedded_launch: boolean | null;
17
+ is_emergency_launch: boolean | null;
18
+ metadata: Json | null;
19
+ os_version: string | null;
20
+ ota_update_created_at: string | null;
21
+ ota_update_id: string | null;
22
+ ota_update_runtime_version: string | null;
23
+ ota_updates_enabled: boolean | null;
24
+ started_at: string;
25
+ token: string | null;
26
+ updated_at: string;
27
+ version: string | null;
28
+ version_build_id: string | null;
29
+ version_id: string | null;
30
+ };
31
+ Insert: {
32
+ created_at?: string;
33
+ device_id: string;
34
+ emergency_launch_reason?: string | null;
35
+ id?: string;
36
+ is_embedded_launch?: boolean | null;
37
+ is_emergency_launch?: boolean | null;
38
+ metadata?: Json | null;
39
+ os_version?: string | null;
40
+ ota_update_created_at?: string | null;
41
+ ota_update_id?: string | null;
42
+ ota_update_runtime_version?: string | null;
43
+ ota_updates_enabled?: boolean | null;
44
+ started_at?: string;
45
+ token?: string | null;
46
+ updated_at?: string;
47
+ version?: string | null;
48
+ version_build_id?: string | null;
49
+ version_id?: string | null;
50
+ };
51
+ Update: {
52
+ created_at?: string;
53
+ device_id?: string;
54
+ emergency_launch_reason?: string | null;
55
+ id?: string;
56
+ is_embedded_launch?: boolean | null;
57
+ is_emergency_launch?: boolean | null;
58
+ metadata?: Json | null;
59
+ os_version?: string | null;
60
+ ota_update_created_at?: string | null;
61
+ ota_update_id?: string | null;
62
+ ota_update_runtime_version?: string | null;
63
+ ota_updates_enabled?: boolean | null;
64
+ started_at?: string;
65
+ token?: string | null;
66
+ updated_at?: string;
67
+ version?: string | null;
68
+ version_build_id?: string | null;
69
+ version_id?: string | null;
70
+ };
71
+ Relationships: [
72
+ {
73
+ foreignKeyName: "device_sessions_device_id_fkey";
74
+ columns: ["device_id"];
75
+ isOneToOne: false;
76
+ referencedRelation: "devices";
77
+ referencedColumns: ["id"];
78
+ },
79
+ {
80
+ foreignKeyName: "device_sessions_ota_update_id_fkey";
81
+ columns: ["ota_update_id"];
82
+ isOneToOne: false;
83
+ referencedRelation: "ota_updates";
84
+ referencedColumns: ["id"];
85
+ },
86
+ {
87
+ foreignKeyName: "device_sessions_version_build_id_fkey";
88
+ columns: ["version_build_id"];
89
+ isOneToOne: false;
90
+ referencedRelation: "version_builds";
91
+ referencedColumns: ["id"];
92
+ },
93
+ {
94
+ foreignKeyName: "device_sessions_version_id_fkey";
95
+ columns: ["version_id"];
96
+ isOneToOne: false;
97
+ referencedRelation: "project_versions";
98
+ referencedColumns: ["id"];
99
+ }
100
+ ];
101
+ };
102
+ devices: {
103
+ Row: {
104
+ created_at: string;
105
+ device_brand: string | null;
106
+ device_id: string;
107
+ device_name: string | null;
108
+ id: string;
109
+ metadata: Json | null;
110
+ os_name: string | null;
111
+ os_type: string | null;
112
+ persona_id: string;
113
+ platform: Database["public"]["Enums"]["device_platform"] | null;
114
+ updated_at: string;
115
+ };
116
+ Insert: {
117
+ created_at?: string;
118
+ device_brand?: string | null;
119
+ device_id: string;
120
+ device_name?: string | null;
121
+ id?: string;
122
+ metadata?: Json | null;
123
+ os_name?: string | null;
124
+ os_type?: string | null;
125
+ persona_id: string;
126
+ platform?: Database["public"]["Enums"]["device_platform"] | null;
127
+ updated_at?: string;
128
+ };
129
+ Update: {
130
+ created_at?: string;
131
+ device_brand?: string | null;
132
+ device_id?: string;
133
+ device_name?: string | null;
134
+ id?: string;
135
+ metadata?: Json | null;
136
+ os_name?: string | null;
137
+ os_type?: string | null;
138
+ persona_id?: string;
139
+ platform?: Database["public"]["Enums"]["device_platform"] | null;
140
+ updated_at?: string;
141
+ };
142
+ Relationships: [
143
+ {
144
+ foreignKeyName: "devices_persona_id_fkey";
145
+ columns: ["persona_id"];
146
+ isOneToOne: false;
147
+ referencedRelation: "personas";
148
+ referencedColumns: ["id"];
149
+ }
150
+ ];
151
+ };
152
+ environments: {
153
+ Row: {
154
+ created_at: string;
155
+ id: string;
156
+ name: string;
157
+ project_id: string;
158
+ slug: string;
159
+ type: Database["public"]["Enums"]["environment_type"];
160
+ updated_at: string;
161
+ };
162
+ Insert: {
163
+ created_at?: string;
164
+ id?: string;
165
+ name: string;
166
+ project_id: string;
167
+ slug: string;
168
+ type: Database["public"]["Enums"]["environment_type"];
169
+ updated_at?: string;
170
+ };
171
+ Update: {
172
+ created_at?: string;
173
+ id?: string;
174
+ name?: string;
175
+ project_id?: string;
176
+ slug?: string;
177
+ type?: Database["public"]["Enums"]["environment_type"];
178
+ updated_at?: string;
179
+ };
180
+ Relationships: [
181
+ {
182
+ foreignKeyName: "environments_project_id_fkey";
183
+ columns: ["project_id"];
184
+ isOneToOne: false;
185
+ referencedRelation: "projects";
186
+ referencedColumns: ["id"];
187
+ }
188
+ ];
189
+ };
190
+ github_installations: {
191
+ Row: {
192
+ account_id: number;
193
+ account_login: string;
194
+ account_type: string;
195
+ created_at: string;
196
+ events: string[] | null;
197
+ id: string;
198
+ installation_id: number;
199
+ installed_by_user_id: string | null;
200
+ permissions: Json | null;
201
+ suspended_at: string | null;
202
+ suspended_by: Json | null;
203
+ target_type: string;
204
+ updated_at: string;
205
+ };
206
+ Insert: {
207
+ account_id: number;
208
+ account_login: string;
209
+ account_type: string;
210
+ created_at?: string;
211
+ events?: string[] | null;
212
+ id?: string;
213
+ installation_id: number;
214
+ installed_by_user_id?: string | null;
215
+ permissions?: Json | null;
216
+ suspended_at?: string | null;
217
+ suspended_by?: Json | null;
218
+ target_type: string;
219
+ updated_at?: string;
220
+ };
221
+ Update: {
222
+ account_id?: number;
223
+ account_login?: string;
224
+ account_type?: string;
225
+ created_at?: string;
226
+ events?: string[] | null;
227
+ id?: string;
228
+ installation_id?: number;
229
+ installed_by_user_id?: string | null;
230
+ permissions?: Json | null;
231
+ suspended_at?: string | null;
232
+ suspended_by?: Json | null;
233
+ target_type?: string;
234
+ updated_at?: string;
235
+ };
236
+ Relationships: [];
237
+ };
238
+ github_project_connections: {
239
+ Row: {
240
+ connected_by_user_id: string;
241
+ created_at: string;
242
+ id: string;
243
+ installation_id: string;
244
+ project_id: string;
245
+ repository_id: string;
246
+ updated_at: string;
247
+ };
248
+ Insert: {
249
+ connected_by_user_id: string;
250
+ created_at?: string;
251
+ id?: string;
252
+ installation_id: string;
253
+ project_id: string;
254
+ repository_id: string;
255
+ updated_at?: string;
256
+ };
257
+ Update: {
258
+ connected_by_user_id?: string;
259
+ created_at?: string;
260
+ id?: string;
261
+ installation_id?: string;
262
+ project_id?: string;
263
+ repository_id?: string;
264
+ updated_at?: string;
265
+ };
266
+ Relationships: [
267
+ {
268
+ foreignKeyName: "github_project_connections_installation_id_fkey";
269
+ columns: ["installation_id"];
270
+ isOneToOne: false;
271
+ referencedRelation: "github_installations";
272
+ referencedColumns: ["id"];
273
+ },
274
+ {
275
+ foreignKeyName: "github_project_connections_project_id_fkey";
276
+ columns: ["project_id"];
277
+ isOneToOne: true;
278
+ referencedRelation: "projects";
279
+ referencedColumns: ["id"];
280
+ },
281
+ {
282
+ foreignKeyName: "github_project_connections_repository_id_fkey";
283
+ columns: ["repository_id"];
284
+ isOneToOne: false;
285
+ referencedRelation: "github_repositories";
286
+ referencedColumns: ["id"];
287
+ }
288
+ ];
289
+ };
290
+ github_repositories: {
291
+ Row: {
292
+ archived: boolean;
293
+ created_at: string;
294
+ default_branch: string;
295
+ disabled: boolean;
296
+ fork: boolean;
297
+ full_name: string;
298
+ id: string;
299
+ installation_id: string;
300
+ name: string;
301
+ owner: string;
302
+ permissions: Json | null;
303
+ private: boolean;
304
+ repository_id: number;
305
+ updated_at: string;
306
+ };
307
+ Insert: {
308
+ archived?: boolean;
309
+ created_at?: string;
310
+ default_branch?: string;
311
+ disabled?: boolean;
312
+ fork?: boolean;
313
+ full_name: string;
314
+ id?: string;
315
+ installation_id: string;
316
+ name: string;
317
+ owner: string;
318
+ permissions?: Json | null;
319
+ private?: boolean;
320
+ repository_id: number;
321
+ updated_at?: string;
322
+ };
323
+ Update: {
324
+ archived?: boolean;
325
+ created_at?: string;
326
+ default_branch?: string;
327
+ disabled?: boolean;
328
+ fork?: boolean;
329
+ full_name?: string;
330
+ id?: string;
331
+ installation_id?: string;
332
+ name?: string;
333
+ owner?: string;
334
+ permissions?: Json | null;
335
+ private?: boolean;
336
+ repository_id?: number;
337
+ updated_at?: string;
338
+ };
339
+ Relationships: [
340
+ {
341
+ foreignKeyName: "github_repositories_installation_id_fkey";
342
+ columns: ["installation_id"];
343
+ isOneToOne: false;
344
+ referencedRelation: "github_installations";
345
+ referencedColumns: ["id"];
346
+ }
347
+ ];
348
+ };
349
+ github_webhook_events: {
350
+ Row: {
351
+ action: string | null;
352
+ created_at: string;
353
+ delivery_id: string | null;
354
+ error: string | null;
355
+ event_type: string;
356
+ id: string;
357
+ installation_id: string | null;
358
+ payload: Json;
359
+ processed: boolean;
360
+ processed_at: string | null;
361
+ };
362
+ Insert: {
363
+ action?: string | null;
364
+ created_at?: string;
365
+ delivery_id?: string | null;
366
+ error?: string | null;
367
+ event_type: string;
368
+ id?: string;
369
+ installation_id?: string | null;
370
+ payload: Json;
371
+ processed?: boolean;
372
+ processed_at?: string | null;
373
+ };
374
+ Update: {
375
+ action?: string | null;
376
+ created_at?: string;
377
+ delivery_id?: string | null;
378
+ error?: string | null;
379
+ event_type?: string;
380
+ id?: string;
381
+ installation_id?: string | null;
382
+ payload?: Json;
383
+ processed?: boolean;
384
+ processed_at?: string | null;
385
+ };
386
+ Relationships: [
387
+ {
388
+ foreignKeyName: "github_webhook_events_installation_id_fkey";
389
+ columns: ["installation_id"];
390
+ isOneToOne: false;
391
+ referencedRelation: "github_installations";
392
+ referencedColumns: ["id"];
393
+ }
394
+ ];
395
+ };
396
+ org_api_keys: {
397
+ Row: {
398
+ created_at: string;
399
+ id: string;
400
+ key: string;
401
+ name: string;
402
+ org_id: string;
403
+ updated_at: string;
404
+ };
405
+ Insert: {
406
+ created_at?: string;
407
+ id?: string;
408
+ key?: string;
409
+ name?: string;
410
+ org_id: string;
411
+ updated_at?: string;
412
+ };
413
+ Update: {
414
+ created_at?: string;
415
+ id?: string;
416
+ key?: string;
417
+ name?: string;
418
+ org_id?: string;
419
+ updated_at?: string;
420
+ };
421
+ Relationships: [
422
+ {
423
+ foreignKeyName: "org_api_keys_org_id_fkey";
424
+ columns: ["org_id"];
425
+ isOneToOne: false;
426
+ referencedRelation: "orgs";
427
+ referencedColumns: ["id"];
428
+ }
429
+ ];
430
+ };
431
+ org_roles: {
432
+ Row: {
433
+ created_at: string;
434
+ id: string;
435
+ org_id: string;
436
+ role: Database["public"]["Enums"]["org_role_type"];
437
+ updated_at: string;
438
+ user_id: string;
439
+ };
440
+ Insert: {
441
+ created_at?: string;
442
+ id?: string;
443
+ org_id: string;
444
+ role?: Database["public"]["Enums"]["org_role_type"];
445
+ updated_at?: string;
446
+ user_id: string;
447
+ };
448
+ Update: {
449
+ created_at?: string;
450
+ id?: string;
451
+ org_id?: string;
452
+ role?: Database["public"]["Enums"]["org_role_type"];
453
+ updated_at?: string;
454
+ user_id?: string;
455
+ };
456
+ Relationships: [
457
+ {
458
+ foreignKeyName: "org_roles_org_id_fkey";
459
+ columns: ["org_id"];
460
+ isOneToOne: false;
461
+ referencedRelation: "orgs";
462
+ referencedColumns: ["id"];
463
+ }
464
+ ];
465
+ };
466
+ orgs: {
467
+ Row: {
468
+ created_at: string;
469
+ id: string;
470
+ name: string;
471
+ slug: string;
472
+ type: Database["public"]["Enums"]["org_type"];
473
+ updated_at: string;
474
+ };
475
+ Insert: {
476
+ created_at?: string;
477
+ id?: string;
478
+ name: string;
479
+ slug: string;
480
+ type?: Database["public"]["Enums"]["org_type"];
481
+ updated_at?: string;
482
+ };
483
+ Update: {
484
+ created_at?: string;
485
+ id?: string;
486
+ name?: string;
487
+ slug?: string;
488
+ type?: Database["public"]["Enums"]["org_type"];
489
+ updated_at?: string;
490
+ };
491
+ Relationships: [];
492
+ };
493
+ ota_updates: {
494
+ Row: {
495
+ channel: string | null;
496
+ created_at: string;
497
+ fingerprint: string | null;
498
+ id: string;
499
+ metadata: Json | null;
500
+ update_id: string;
501
+ updated_at: string;
502
+ version_build_id: string | null;
503
+ };
504
+ Insert: {
505
+ channel?: string | null;
506
+ created_at?: string;
507
+ fingerprint?: string | null;
508
+ id?: string;
509
+ metadata?: Json | null;
510
+ update_id: string;
511
+ updated_at?: string;
512
+ version_build_id?: string | null;
513
+ };
514
+ Update: {
515
+ channel?: string | null;
516
+ created_at?: string;
517
+ fingerprint?: string | null;
518
+ id?: string;
519
+ metadata?: Json | null;
520
+ update_id?: string;
521
+ updated_at?: string;
522
+ version_build_id?: string | null;
523
+ };
524
+ Relationships: [
525
+ {
526
+ foreignKeyName: "ota_updates_version_build_id_fkey";
527
+ columns: ["version_build_id"];
528
+ isOneToOne: false;
529
+ referencedRelation: "version_builds";
530
+ referencedColumns: ["id"];
531
+ }
532
+ ];
533
+ };
534
+ personas: {
535
+ Row: {
536
+ created_at: string;
537
+ email: string | null;
538
+ environment_id: string;
539
+ id: string;
540
+ name: string | null;
541
+ updated_at: string;
542
+ user_id: string | null;
543
+ };
544
+ Insert: {
545
+ created_at?: string;
546
+ email?: string | null;
547
+ environment_id: string;
548
+ id?: string;
549
+ name?: string | null;
550
+ updated_at?: string;
551
+ user_id?: string | null;
552
+ };
553
+ Update: {
554
+ created_at?: string;
555
+ email?: string | null;
556
+ environment_id?: string;
557
+ id?: string;
558
+ name?: string | null;
559
+ updated_at?: string;
560
+ user_id?: string | null;
561
+ };
562
+ Relationships: [
563
+ {
564
+ foreignKeyName: "personas_environment_id_fkey";
565
+ columns: ["environment_id"];
566
+ isOneToOne: false;
567
+ referencedRelation: "environments";
568
+ referencedColumns: ["id"];
569
+ }
570
+ ];
571
+ };
572
+ project_api_keys: {
573
+ Row: {
574
+ created_at: string;
575
+ id: string;
576
+ key: string;
577
+ kind: Database["public"]["Enums"]["project_api_key_kind"];
578
+ name: string;
579
+ project_id: string;
580
+ updated_at: string;
581
+ };
582
+ Insert: {
583
+ created_at?: string;
584
+ id?: string;
585
+ key?: string;
586
+ kind?: Database["public"]["Enums"]["project_api_key_kind"];
587
+ name?: string;
588
+ project_id: string;
589
+ updated_at?: string;
590
+ };
591
+ Update: {
592
+ created_at?: string;
593
+ id?: string;
594
+ key?: string;
595
+ kind?: Database["public"]["Enums"]["project_api_key_kind"];
596
+ name?: string;
597
+ project_id?: string;
598
+ updated_at?: string;
599
+ };
600
+ Relationships: [
601
+ {
602
+ foreignKeyName: "project_api_keys_project_id_fkey";
603
+ columns: ["project_id"];
604
+ isOneToOne: false;
605
+ referencedRelation: "projects";
606
+ referencedColumns: ["id"];
607
+ }
608
+ ];
609
+ };
610
+ project_versions: {
611
+ Row: {
612
+ created_at: string;
613
+ id: string;
614
+ major: number;
615
+ minor: number;
616
+ name: string;
617
+ patch: number;
618
+ project_id: string;
619
+ status: Database["public"]["Enums"]["version_status"];
620
+ updated_at: string;
621
+ };
622
+ Insert: {
623
+ created_at?: string;
624
+ id?: string;
625
+ major?: number;
626
+ minor?: number;
627
+ name: string;
628
+ patch?: number;
629
+ project_id: string;
630
+ status?: Database["public"]["Enums"]["version_status"];
631
+ updated_at?: string;
632
+ };
633
+ Update: {
634
+ created_at?: string;
635
+ id?: string;
636
+ major?: number;
637
+ minor?: number;
638
+ name?: string;
639
+ patch?: number;
640
+ project_id?: string;
641
+ status?: Database["public"]["Enums"]["version_status"];
642
+ updated_at?: string;
643
+ };
644
+ Relationships: [
645
+ {
646
+ foreignKeyName: "project_versions_project_id_fkey";
647
+ columns: ["project_id"];
648
+ isOneToOne: false;
649
+ referencedRelation: "projects";
650
+ referencedColumns: ["id"];
651
+ }
652
+ ];
653
+ };
654
+ projects: {
655
+ Row: {
656
+ created_at: string;
657
+ id: string;
658
+ name: string;
659
+ org_id: string;
660
+ slug: string;
661
+ type: Database["public"]["Enums"]["project_type"];
662
+ updated_at: string;
663
+ };
664
+ Insert: {
665
+ created_at?: string;
666
+ id?: string;
667
+ name: string;
668
+ org_id: string;
669
+ slug: string;
670
+ type: Database["public"]["Enums"]["project_type"];
671
+ updated_at?: string;
672
+ };
673
+ Update: {
674
+ created_at?: string;
675
+ id?: string;
676
+ name?: string;
677
+ org_id?: string;
678
+ slug?: string;
679
+ type?: Database["public"]["Enums"]["project_type"];
680
+ updated_at?: string;
681
+ };
682
+ Relationships: [
683
+ {
684
+ foreignKeyName: "projects_org_fk";
685
+ columns: ["org_id"];
686
+ isOneToOne: false;
687
+ referencedRelation: "orgs";
688
+ referencedColumns: ["id"];
689
+ }
690
+ ];
691
+ };
692
+ user_api_keys: {
693
+ Row: {
694
+ created_at: string;
695
+ id: string;
696
+ key: string;
697
+ name: string;
698
+ updated_at: string;
699
+ user_id: string;
700
+ };
701
+ Insert: {
702
+ created_at?: string;
703
+ id?: string;
704
+ key?: string;
705
+ name?: string;
706
+ updated_at?: string;
707
+ user_id: string;
708
+ };
709
+ Update: {
710
+ created_at?: string;
711
+ id?: string;
712
+ key?: string;
713
+ name?: string;
714
+ updated_at?: string;
715
+ user_id?: string;
716
+ };
717
+ Relationships: [];
718
+ };
719
+ version_builds: {
720
+ Row: {
721
+ build_number: number;
722
+ commit_sha: string | null;
723
+ created_at: string;
724
+ fingerprint: string | null;
725
+ id: string;
726
+ name: string | null;
727
+ platform: Database["public"]["Enums"]["device_platform"];
728
+ summary: string | null;
729
+ updated_at: string;
730
+ version_id: string;
731
+ };
732
+ Insert: {
733
+ build_number: number;
734
+ commit_sha?: string | null;
735
+ created_at?: string;
736
+ fingerprint?: string | null;
737
+ id?: string;
738
+ name?: string | null;
739
+ platform: Database["public"]["Enums"]["device_platform"];
740
+ summary?: string | null;
741
+ updated_at?: string;
742
+ version_id: string;
743
+ };
744
+ Update: {
745
+ build_number?: number;
746
+ commit_sha?: string | null;
747
+ created_at?: string;
748
+ fingerprint?: string | null;
749
+ id?: string;
750
+ name?: string | null;
751
+ platform?: Database["public"]["Enums"]["device_platform"];
752
+ summary?: string | null;
753
+ updated_at?: string;
754
+ version_id?: string;
755
+ };
756
+ Relationships: [
757
+ {
758
+ foreignKeyName: "version_builds_version_id_fkey";
759
+ columns: ["version_id"];
760
+ isOneToOne: false;
761
+ referencedRelation: "project_versions";
762
+ referencedColumns: ["id"];
763
+ }
764
+ ];
765
+ };
766
+ };
767
+ Views: {
768
+ [_ in never]: never;
769
+ };
770
+ Functions: {
771
+ fn_create_org_api_key: {
772
+ Args: {
773
+ p_name?: string;
774
+ p_org_id: string;
775
+ };
776
+ Returns: {
777
+ created_at: string;
778
+ id: string;
779
+ key: string;
780
+ name: string;
781
+ org_id: string;
782
+ updated_at: string;
783
+ };
784
+ SetofOptions: {
785
+ from: "*";
786
+ to: "org_api_keys";
787
+ isOneToOne: true;
788
+ isSetofReturn: false;
789
+ };
790
+ };
791
+ fn_create_user_api_key: {
792
+ Args: {
793
+ key_name?: string;
794
+ user_id: string;
795
+ };
796
+ Returns: {
797
+ created_at: string;
798
+ id: string;
799
+ key: string;
800
+ name: string;
801
+ updated_at: string;
802
+ user_id: string;
803
+ };
804
+ SetofOptions: {
805
+ from: "*";
806
+ to: "user_api_keys";
807
+ isOneToOne: true;
808
+ isSetofReturn: false;
809
+ };
810
+ };
811
+ };
812
+ Enums: {
813
+ device_platform: "IOS" | "ANDROID" | "WEB" | "WINDOWS" | "MACOS" | "LINUX" | "PHONE" | "TABLET" | "DESKTOP" | "CONSOLE" | "TV" | "WEARABLE" | "GAME_CONSOLE" | "VR" | "UNKNOWN" | "OTHER";
814
+ environment_type: "DEVELOPMENT" | "STAGING" | "PRODUCTION";
815
+ org_role_type: "OWNER" | "ADMIN" | "ENGINEER";
816
+ org_type: "PERSONAL" | "START_UP" | "SCALE_UP" | "AGENCY" | "ENTERPRISE";
817
+ project_api_key_kind: "publishable" | "secret";
818
+ project_type: "REACT_NATIVE" | "EXPO";
819
+ version_status: "LIVE" | "DISABLED";
820
+ };
821
+ CompositeTypes: {
822
+ [_ in never]: never;
823
+ };
824
+ };
825
+ };
826
+ type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">;
827
+ type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">];
828
+ export type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) | {
829
+ schema: keyof DatabaseWithoutInternals;
830
+ }, TableName extends DefaultSchemaTableNameOrOptions extends {
831
+ schema: keyof DatabaseWithoutInternals;
832
+ } ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"]) : never = never> = DefaultSchemaTableNameOrOptions extends {
833
+ schema: keyof DatabaseWithoutInternals;
834
+ } ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
835
+ Row: infer R;
836
+ } ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) ? (DefaultSchema["Tables"] & DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
837
+ Row: infer R;
838
+ } ? R : never : never;
839
+ export type TablesInsert<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
840
+ schema: keyof DatabaseWithoutInternals;
841
+ }, TableName extends DefaultSchemaTableNameOrOptions extends {
842
+ schema: keyof DatabaseWithoutInternals;
843
+ } ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
844
+ schema: keyof DatabaseWithoutInternals;
845
+ } ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
846
+ Insert: infer I;
847
+ } ? I : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
848
+ Insert: infer I;
849
+ } ? I : never : never;
850
+ export type TablesUpdate<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
851
+ schema: keyof DatabaseWithoutInternals;
852
+ }, TableName extends DefaultSchemaTableNameOrOptions extends {
853
+ schema: keyof DatabaseWithoutInternals;
854
+ } ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
855
+ schema: keyof DatabaseWithoutInternals;
856
+ } ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
857
+ Update: infer U;
858
+ } ? U : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
859
+ Update: infer U;
860
+ } ? U : never : never;
861
+ export type Enums<DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] | {
862
+ schema: keyof DatabaseWithoutInternals;
863
+ }, EnumName extends DefaultSchemaEnumNameOrOptions extends {
864
+ schema: keyof DatabaseWithoutInternals;
865
+ } ? keyof DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"] : never = never> = DefaultSchemaEnumNameOrOptions extends {
866
+ schema: keyof DatabaseWithoutInternals;
867
+ } ? DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"][EnumName] : DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] ? DefaultSchema["Enums"][DefaultSchemaEnumNameOrOptions] : never;
868
+ export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] | {
869
+ schema: keyof DatabaseWithoutInternals;
870
+ }, CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
871
+ schema: keyof DatabaseWithoutInternals;
872
+ } ? keyof DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"] : never = never> = PublicCompositeTypeNameOrOptions extends {
873
+ schema: keyof DatabaseWithoutInternals;
874
+ } ? DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName] : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] ? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions] : never;
875
+ export declare const Constants: {
876
+ readonly public: {
877
+ readonly Enums: {
878
+ readonly device_platform: readonly ["IOS", "ANDROID", "WEB", "WINDOWS", "MACOS", "LINUX", "PHONE", "TABLET", "DESKTOP", "CONSOLE", "TV", "WEARABLE", "GAME_CONSOLE", "VR", "UNKNOWN", "OTHER"];
879
+ readonly environment_type: readonly ["DEVELOPMENT", "STAGING", "PRODUCTION"];
880
+ readonly org_role_type: readonly ["OWNER", "ADMIN", "ENGINEER"];
881
+ readonly org_type: readonly ["PERSONAL", "START_UP", "SCALE_UP", "AGENCY", "ENTERPRISE"];
882
+ readonly project_api_key_kind: readonly ["publishable", "secret"];
883
+ readonly project_type: readonly ["REACT_NATIVE", "EXPO"];
884
+ readonly version_status: readonly ["LIVE", "DISABLED"];
885
+ };
886
+ };
887
+ };
888
+ export {};