@teardown/types 0.1.22 → 0.1.24

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