@periskope/types 0.6.2 → 0.6.4

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,1012 @@
1
+ export type Json = { [key: string]: any } | any
2
+
3
+ export interface Database {
4
+ graphql_public: {
5
+ Tables: {
6
+ [_ in never]: never
7
+ }
8
+ Views: {
9
+ [_ in never]: never
10
+ }
11
+ Functions: {
12
+ graphql: {
13
+ Args: {
14
+ operationName?: string
15
+ query?: string
16
+ variables?: Json
17
+ extensions?: Json
18
+ }
19
+ Returns: Json
20
+ }
21
+ }
22
+ Enums: {
23
+ [_ in never]: never
24
+ }
25
+ CompositeTypes: {
26
+ [_ in never]: never
27
+ }
28
+ }
29
+ public: {
30
+ Tables: {
31
+ tbl_chat_access: {
32
+ Row: {
33
+ chat_id: string
34
+ email: string
35
+ has_access: boolean | null
36
+ last_read_timestamp: string | null
37
+ org_id: string
38
+ }
39
+ Insert: {
40
+ chat_id: string
41
+ email: string
42
+ has_access?: boolean | null
43
+ last_read_timestamp?: string | null
44
+ org_id?: string
45
+ }
46
+ Update: {
47
+ chat_id?: string
48
+ email?: string
49
+ has_access?: boolean | null
50
+ last_read_timestamp?: string | null
51
+ org_id?: string
52
+ }
53
+ Relationships: []
54
+ }
55
+ tbl_chat_messages: {
56
+ Row: {
57
+ ack: string | null
58
+ author: string | null
59
+ body: string | null
60
+ broadcast: boolean | null
61
+ chat_id: string | null
62
+ device_type: string | null
63
+ duration: string | null
64
+ forwarding_score: number | null
65
+ from: string | null
66
+ from_me: boolean | null
67
+ has_media: boolean | null
68
+ has_quoted_msg: boolean | null
69
+ has_reaction: boolean | null
70
+ id: Json | null
71
+ invite_v4: Json | null
72
+ is_ephemeral: boolean | null
73
+ is_forwarded: boolean | null
74
+ is_gif: boolean | null
75
+ is_starred: boolean | null
76
+ is_status: boolean | null
77
+ links: Json | null
78
+ location: Json | null
79
+ media_key: string | null
80
+ mentioned_ids: string[] | null
81
+ message_id: string
82
+ order_id: string | null
83
+ org_id: string
84
+ org_phone: string
85
+ performed_by: string | null
86
+ raw_data: Json | null
87
+ timestamp: string | null
88
+ to: string | null
89
+ token: string | null
90
+ type: string | null
91
+ url: string | null
92
+ vcards: string[] | null
93
+ }
94
+ Insert: {
95
+ ack?: string | null
96
+ author?: string | null
97
+ body?: string | null
98
+ broadcast?: boolean | null
99
+ chat_id?: string | null
100
+ device_type?: string | null
101
+ duration?: string | null
102
+ forwarding_score?: number | null
103
+ from?: string | null
104
+ from_me?: boolean | null
105
+ has_media?: boolean | null
106
+ has_quoted_msg?: boolean | null
107
+ has_reaction?: boolean | null
108
+ id?: Json | null
109
+ invite_v4?: Json | null
110
+ is_ephemeral?: boolean | null
111
+ is_forwarded?: boolean | null
112
+ is_gif?: boolean | null
113
+ is_starred?: boolean | null
114
+ is_status?: boolean | null
115
+ links?: Json | null
116
+ location?: Json | null
117
+ media_key?: string | null
118
+ mentioned_ids?: string[] | null
119
+ message_id: string
120
+ order_id?: string | null
121
+ org_id: string
122
+ org_phone: string
123
+ performed_by?: string | null
124
+ raw_data?: Json | null
125
+ timestamp?: string | null
126
+ to?: string | null
127
+ token?: string | null
128
+ type?: string | null
129
+ url?: string | null
130
+ vcards?: string[] | null
131
+ }
132
+ Update: {
133
+ ack?: string | null
134
+ author?: string | null
135
+ body?: string | null
136
+ broadcast?: boolean | null
137
+ chat_id?: string | null
138
+ device_type?: string | null
139
+ duration?: string | null
140
+ forwarding_score?: number | null
141
+ from?: string | null
142
+ from_me?: boolean | null
143
+ has_media?: boolean | null
144
+ has_quoted_msg?: boolean | null
145
+ has_reaction?: boolean | null
146
+ id?: Json | null
147
+ invite_v4?: Json | null
148
+ is_ephemeral?: boolean | null
149
+ is_forwarded?: boolean | null
150
+ is_gif?: boolean | null
151
+ is_starred?: boolean | null
152
+ is_status?: boolean | null
153
+ links?: Json | null
154
+ location?: Json | null
155
+ media_key?: string | null
156
+ mentioned_ids?: string[] | null
157
+ message_id?: string
158
+ order_id?: string | null
159
+ org_id?: string
160
+ org_phone?: string
161
+ performed_by?: string | null
162
+ raw_data?: Json | null
163
+ timestamp?: string | null
164
+ to?: string | null
165
+ token?: string | null
166
+ type?: string | null
167
+ url?: string | null
168
+ vcards?: string[] | null
169
+ }
170
+ Relationships: [
171
+ {
172
+ foreignKeyName: "tbl_chat_messages_fkey_tbl_org_phones"
173
+ columns: ["org_id", "org_phone"]
174
+ isOneToOne: false
175
+ referencedRelation: "tbl_org_phones"
176
+ referencedColumns: ["org_id", "org_phone"]
177
+ }
178
+ ]
179
+ }
180
+ tbl_chat_notifications: {
181
+ Row: {
182
+ author: string | null
183
+ body: string | null
184
+ chat_id: string | null
185
+ group_notification_id: string
186
+ id: Json | null
187
+ org_id: string
188
+ org_phone: string
189
+ recipientids: string[] | null
190
+ timestamp: string | null
191
+ type: string | null
192
+ }
193
+ Insert: {
194
+ author?: string | null
195
+ body?: string | null
196
+ chat_id?: string | null
197
+ group_notification_id: string
198
+ id?: Json | null
199
+ org_id: string
200
+ org_phone: string
201
+ recipientids?: string[] | null
202
+ timestamp?: string | null
203
+ type?: string | null
204
+ }
205
+ Update: {
206
+ author?: string | null
207
+ body?: string | null
208
+ chat_id?: string | null
209
+ group_notification_id?: string
210
+ id?: Json | null
211
+ org_id?: string
212
+ org_phone?: string
213
+ recipientids?: string[] | null
214
+ timestamp?: string | null
215
+ type?: string | null
216
+ }
217
+ Relationships: [
218
+ {
219
+ foreignKeyName: "tbl_chat_notifications_fkey_tbl_org_phones"
220
+ columns: ["org_id", "org_phone"]
221
+ isOneToOne: false
222
+ referencedRelation: "tbl_org_phones"
223
+ referencedColumns: ["org_id", "org_phone"]
224
+ }
225
+ ]
226
+ }
227
+ tbl_chat_participants: {
228
+ Row: {
229
+ chat_id: string
230
+ contact_id: string
231
+ id: Json | null
232
+ is_admin: boolean | null
233
+ is_super_admin: boolean | null
234
+ org_id: string
235
+ }
236
+ Insert: {
237
+ chat_id: string
238
+ contact_id: string
239
+ id?: Json | null
240
+ is_admin?: boolean | null
241
+ is_super_admin?: boolean | null
242
+ org_id: string
243
+ }
244
+ Update: {
245
+ chat_id?: string
246
+ contact_id?: string
247
+ id?: Json | null
248
+ is_admin?: boolean | null
249
+ is_super_admin?: boolean | null
250
+ org_id?: string
251
+ }
252
+ Relationships: []
253
+ }
254
+ tbl_chat_reactions: {
255
+ Row: {
256
+ ack: number | null
257
+ id: Json | null
258
+ message_id: string | null
259
+ msg_id: Json | null
260
+ org_id: string
261
+ org_phone: string
262
+ orphan: number | null
263
+ orphan_reason: string | null
264
+ reaction: string | null
265
+ reaction_id: string
266
+ read: boolean | null
267
+ sender_id: string | null
268
+ timestamp: string | null
269
+ }
270
+ Insert: {
271
+ ack?: number | null
272
+ id?: Json | null
273
+ message_id?: string | null
274
+ msg_id?: Json | null
275
+ org_id: string
276
+ org_phone: string
277
+ orphan?: number | null
278
+ orphan_reason?: string | null
279
+ reaction?: string | null
280
+ reaction_id: string
281
+ read?: boolean | null
282
+ sender_id?: string | null
283
+ timestamp?: string | null
284
+ }
285
+ Update: {
286
+ ack?: number | null
287
+ id?: Json | null
288
+ message_id?: string | null
289
+ msg_id?: Json | null
290
+ org_id?: string
291
+ org_phone?: string
292
+ orphan?: number | null
293
+ orphan_reason?: string | null
294
+ reaction?: string | null
295
+ reaction_id?: string
296
+ read?: boolean | null
297
+ sender_id?: string | null
298
+ timestamp?: string | null
299
+ }
300
+ Relationships: [
301
+ {
302
+ foreignKeyName: "tbl_chat_reactions_fkey_tbl_org_phones"
303
+ columns: ["org_id", "org_phone"]
304
+ isOneToOne: false
305
+ referencedRelation: "tbl_org_phones"
306
+ referencedColumns: ["org_id", "org_phone"]
307
+ }
308
+ ]
309
+ }
310
+ tbl_chats: {
311
+ Row: {
312
+ archived: boolean | null
313
+ chat_id: string
314
+ chat_image: string | null
315
+ group_metadata: Json | null
316
+ id: Json | null
317
+ invite_link: string | null
318
+ is_group: boolean | null
319
+ is_muted: boolean | null
320
+ is_read_only: boolean | null
321
+ label_ids: string[] | null
322
+ mute_expiration: number | null
323
+ name: string | null
324
+ org_id: string
325
+ org_phone: string
326
+ pinned: boolean | null
327
+ timestamp: string | null
328
+ unread_count: number | null
329
+ }
330
+ Insert: {
331
+ archived?: boolean | null
332
+ chat_id: string
333
+ chat_image?: string | null
334
+ group_metadata?: Json | null
335
+ id?: Json | null
336
+ invite_link?: string | null
337
+ is_group?: boolean | null
338
+ is_muted?: boolean | null
339
+ is_read_only?: boolean | null
340
+ label_ids?: string[] | null
341
+ mute_expiration?: number | null
342
+ name?: string | null
343
+ org_id: string
344
+ org_phone: string
345
+ pinned?: boolean | null
346
+ timestamp?: string | null
347
+ unread_count?: number | null
348
+ }
349
+ Update: {
350
+ archived?: boolean | null
351
+ chat_id?: string
352
+ chat_image?: string | null
353
+ group_metadata?: Json | null
354
+ id?: Json | null
355
+ invite_link?: string | null
356
+ is_group?: boolean | null
357
+ is_muted?: boolean | null
358
+ is_read_only?: boolean | null
359
+ label_ids?: string[] | null
360
+ mute_expiration?: number | null
361
+ name?: string | null
362
+ org_id?: string
363
+ org_phone?: string
364
+ pinned?: boolean | null
365
+ timestamp?: string | null
366
+ unread_count?: number | null
367
+ }
368
+ Relationships: []
369
+ }
370
+ tbl_contacts: {
371
+ Row: {
372
+ contact_color: Database["public"]["Enums"]["enum_chat_colors"] | null
373
+ contact_id: string
374
+ contact_image: string | null
375
+ id: Json | null
376
+ is_blocked: boolean | null
377
+ is_business: boolean | null
378
+ is_enterprise: boolean | null
379
+ is_group: boolean | null
380
+ is_me: boolean | null
381
+ is_my_contact: boolean | null
382
+ is_user: boolean | null
383
+ is_wa_contact: boolean | null
384
+ label_ids: string[] | null
385
+ name: string | null
386
+ number: string | null
387
+ org_id: string
388
+ pushname: string | null
389
+ short_name: string | null
390
+ type: string | null
391
+ }
392
+ Insert: {
393
+ contact_color?: Database["public"]["Enums"]["enum_chat_colors"] | null
394
+ contact_id: string
395
+ contact_image?: string | null
396
+ id?: Json | null
397
+ is_blocked?: boolean | null
398
+ is_business?: boolean | null
399
+ is_enterprise?: boolean | null
400
+ is_group?: boolean | null
401
+ is_me?: boolean | null
402
+ is_my_contact?: boolean | null
403
+ is_user?: boolean | null
404
+ is_wa_contact?: boolean | null
405
+ label_ids?: string[] | null
406
+ name?: string | null
407
+ number?: string | null
408
+ org_id: string
409
+ pushname?: string | null
410
+ short_name?: string | null
411
+ type?: string | null
412
+ }
413
+ Update: {
414
+ contact_color?: Database["public"]["Enums"]["enum_chat_colors"] | null
415
+ contact_id?: string
416
+ contact_image?: string | null
417
+ id?: Json | null
418
+ is_blocked?: boolean | null
419
+ is_business?: boolean | null
420
+ is_enterprise?: boolean | null
421
+ is_group?: boolean | null
422
+ is_me?: boolean | null
423
+ is_my_contact?: boolean | null
424
+ is_user?: boolean | null
425
+ is_wa_contact?: boolean | null
426
+ label_ids?: string[] | null
427
+ name?: string | null
428
+ number?: string | null
429
+ org_id?: string
430
+ pushname?: string | null
431
+ short_name?: string | null
432
+ type?: string | null
433
+ }
434
+ Relationships: [
435
+ {
436
+ foreignKeyName: "tbl_contacts_org_id_fkey"
437
+ columns: ["org_id"]
438
+ isOneToOne: false
439
+ referencedRelation: "tbl_org"
440
+ referencedColumns: ["org_id"]
441
+ }
442
+ ]
443
+ }
444
+ tbl_org: {
445
+ Row: {
446
+ created_at: string
447
+ org_id: string
448
+ org_image: string | null
449
+ org_name: string | null
450
+ support_link: string | null
451
+ }
452
+ Insert: {
453
+ created_at?: string
454
+ org_id?: string
455
+ org_image?: string | null
456
+ org_name?: string | null
457
+ support_link?: string | null
458
+ }
459
+ Update: {
460
+ created_at?: string
461
+ org_id?: string
462
+ org_image?: string | null
463
+ org_name?: string | null
464
+ support_link?: string | null
465
+ }
466
+ Relationships: []
467
+ }
468
+ tbl_org_labels: {
469
+ Row: {
470
+ color: string
471
+ created_at: string
472
+ label_id: string
473
+ name: string
474
+ org_id: string
475
+ type: string
476
+ }
477
+ Insert: {
478
+ color?: string
479
+ created_at?: string
480
+ label_id?: string
481
+ name: string
482
+ org_id?: string
483
+ type?: string
484
+ }
485
+ Update: {
486
+ color?: string
487
+ created_at?: string
488
+ label_id?: string
489
+ name?: string
490
+ org_id?: string
491
+ type?: string
492
+ }
493
+ Relationships: [
494
+ {
495
+ foreignKeyName: "tbl_org_labels_org_id_fkey"
496
+ columns: ["org_id"]
497
+ isOneToOne: false
498
+ referencedRelation: "tbl_org"
499
+ referencedColumns: ["org_id"]
500
+ }
501
+ ]
502
+ }
503
+ tbl_org_members: {
504
+ Row: {
505
+ created_at: string | null
506
+ email: string
507
+ invited_at: string | null
508
+ invited_by: string | null
509
+ is_active: boolean
510
+ member_image: string | null
511
+ member_name: string | null
512
+ org_id: string
513
+ role: Database["public"]["Enums"]["enum_member_role"]
514
+ user_id: string | null
515
+ }
516
+ Insert: {
517
+ created_at?: string | null
518
+ email: string
519
+ invited_at?: string | null
520
+ invited_by?: string | null
521
+ is_active?: boolean
522
+ member_image?: string | null
523
+ member_name?: string | null
524
+ org_id: string
525
+ role?: Database["public"]["Enums"]["enum_member_role"]
526
+ user_id?: string | null
527
+ }
528
+ Update: {
529
+ created_at?: string | null
530
+ email?: string
531
+ invited_at?: string | null
532
+ invited_by?: string | null
533
+ is_active?: boolean
534
+ member_image?: string | null
535
+ member_name?: string | null
536
+ org_id?: string
537
+ role?: Database["public"]["Enums"]["enum_member_role"]
538
+ user_id?: string | null
539
+ }
540
+ Relationships: [
541
+ {
542
+ foreignKeyName: "tbl_org_members_fkey_auth_users"
543
+ columns: ["user_id"]
544
+ isOneToOne: false
545
+ referencedRelation: "users"
546
+ referencedColumns: ["id"]
547
+ },
548
+ {
549
+ foreignKeyName: "tbl_org_members_fkey_tbl_org"
550
+ columns: ["org_id"]
551
+ isOneToOne: false
552
+ referencedRelation: "tbl_org"
553
+ referencedColumns: ["org_id"]
554
+ }
555
+ ]
556
+ }
557
+ tbl_org_phones: {
558
+ Row: {
559
+ created_at: string
560
+ is_ready: boolean
561
+ org_id: string
562
+ org_phone: string | null
563
+ phone_id: string
564
+ qr_code: string | null
565
+ updated_at: string
566
+ wa_state: string | null
567
+ }
568
+ Insert: {
569
+ created_at?: string
570
+ is_ready?: boolean
571
+ org_id: string
572
+ org_phone?: string | null
573
+ phone_id?: string
574
+ qr_code?: string | null
575
+ updated_at?: string
576
+ wa_state?: string | null
577
+ }
578
+ Update: {
579
+ created_at?: string
580
+ is_ready?: boolean
581
+ org_id?: string
582
+ org_phone?: string | null
583
+ phone_id?: string
584
+ qr_code?: string | null
585
+ updated_at?: string
586
+ wa_state?: string | null
587
+ }
588
+ Relationships: [
589
+ {
590
+ foreignKeyName: "tbl_org_phones_fkey_tbl_org"
591
+ columns: ["org_id"]
592
+ isOneToOne: false
593
+ referencedRelation: "tbl_org"
594
+ referencedColumns: ["org_id"]
595
+ }
596
+ ]
597
+ }
598
+ }
599
+ Views: {
600
+ view_chat_messages: {
601
+ Row: {
602
+ ack: string | null
603
+ author: string | null
604
+ body: string | null
605
+ broadcast: boolean | null
606
+ chat_id: string | null
607
+ contact_color: Database["public"]["Enums"]["enum_chat_colors"] | null
608
+ device_type: string | null
609
+ duration: string | null
610
+ forwarding_score: number | null
611
+ from: string | null
612
+ from_me: boolean | null
613
+ has_media: boolean | null
614
+ has_quoted_msg: boolean | null
615
+ has_reaction: boolean | null
616
+ id: Json | null
617
+ invite_v4: Json | null
618
+ is_ephemeral: boolean | null
619
+ is_forwarded: boolean | null
620
+ is_gif: boolean | null
621
+ is_starred: boolean | null
622
+ is_status: boolean | null
623
+ links: Json | null
624
+ location: Json | null
625
+ media_key: string | null
626
+ mentioned_ids: string[] | null
627
+ message_id: string | null
628
+ name: string | null
629
+ order_id: string | null
630
+ org_id: string | null
631
+ org_phone: string | null
632
+ performed_by: string | null
633
+ pushname: string | null
634
+ raw_data: Json | null
635
+ sender_phone: string | null
636
+ timestamp: string | null
637
+ to: string | null
638
+ token: string | null
639
+ type: string | null
640
+ url: string | null
641
+ vcards: string[] | null
642
+ }
643
+ Relationships: [
644
+ {
645
+ foreignKeyName: "tbl_chat_messages_fkey_tbl_org_phones"
646
+ columns: ["org_id", "org_phone"]
647
+ isOneToOne: false
648
+ referencedRelation: "tbl_org_phones"
649
+ referencedColumns: ["org_id", "org_phone"]
650
+ }
651
+ ]
652
+ }
653
+ view_chats: {
654
+ Row: {
655
+ archived: boolean | null
656
+ chat_access: Json | null
657
+ chat_id: string | null
658
+ chat_image: string | null
659
+ chat_type: string | null
660
+ group_metadata: Json | null
661
+ has_access: boolean | null
662
+ id: Json | null
663
+ invite_link: string | null
664
+ is_group: boolean | null
665
+ is_muted: boolean | null
666
+ is_read_only: boolean | null
667
+ label_ids: string[] | null
668
+ last_read_timestamp: string | null
669
+ latest_message: Json | null
670
+ latest_message_timestamp: string | null
671
+ member_count: number | null
672
+ mute_expiration: number | null
673
+ name: string | null
674
+ org_id: string | null
675
+ org_participants: Json | null
676
+ org_phone: string | null
677
+ pinned: boolean | null
678
+ timestamp: string | null
679
+ unread_count: number | null
680
+ }
681
+ Relationships: []
682
+ }
683
+ }
684
+ Functions: {
685
+ gen_id: {
686
+ Args: {
687
+ prefix: string
688
+ size?: number
689
+ alphabet?: string
690
+ }
691
+ Returns: string
692
+ }
693
+ get_chats: {
694
+ Args: {
695
+ chat_id_input?: string[]
696
+ with_metadata?: boolean
697
+ }
698
+ Returns: Json
699
+ }
700
+ get_contacts: {
701
+ Args: {
702
+ contact_id_input?: string
703
+ }
704
+ Returns: Json
705
+ }
706
+ get_media: {
707
+ Args: {
708
+ filters?: Json
709
+ page_num?: number
710
+ }
711
+ Returns: Json
712
+ }
713
+ get_org: {
714
+ Args: {
715
+ org_id_input?: string
716
+ }
717
+ Returns: Json
718
+ }
719
+ list_org_from_user: {
720
+ Args: Record<PropertyKey, never>
721
+ Returns: string
722
+ }
723
+ list_role_from_user: {
724
+ Args: Record<PropertyKey, never>
725
+ Returns: Database["public"]["Enums"]["enum_member_role"]
726
+ }
727
+ }
728
+ Enums: {
729
+ enum_chat_colors:
730
+ | "#B4876E"
731
+ | "#A5B337"
732
+ | "#06CF9C"
733
+ | "#25D366"
734
+ | "#02A698"
735
+ | "#7D9EF1"
736
+ | "#007BFC"
737
+ | "#5E47DE"
738
+ | "#7F66FF"
739
+ | "#9333EA"
740
+ | "#FA6533"
741
+ | "#C4532D"
742
+ | "#DC2626"
743
+ | "#FF2E74"
744
+ | "#DB2777"
745
+ enum_member_role: "admin" | "member"
746
+ }
747
+ CompositeTypes: {
748
+ [_ in never]: never
749
+ }
750
+ }
751
+ storage: {
752
+ Tables: {
753
+ buckets: {
754
+ Row: {
755
+ allowed_mime_types: string[] | null
756
+ avif_autodetection: boolean | null
757
+ created_at: string | null
758
+ file_size_limit: number | null
759
+ id: string
760
+ name: string
761
+ owner: string | null
762
+ owner_id: string | null
763
+ public: boolean | null
764
+ updated_at: string | null
765
+ }
766
+ Insert: {
767
+ allowed_mime_types?: string[] | null
768
+ avif_autodetection?: boolean | null
769
+ created_at?: string | null
770
+ file_size_limit?: number | null
771
+ id: string
772
+ name: string
773
+ owner?: string | null
774
+ owner_id?: string | null
775
+ public?: boolean | null
776
+ updated_at?: string | null
777
+ }
778
+ Update: {
779
+ allowed_mime_types?: string[] | null
780
+ avif_autodetection?: boolean | null
781
+ created_at?: string | null
782
+ file_size_limit?: number | null
783
+ id?: string
784
+ name?: string
785
+ owner?: string | null
786
+ owner_id?: string | null
787
+ public?: boolean | null
788
+ updated_at?: string | null
789
+ }
790
+ Relationships: []
791
+ }
792
+ migrations: {
793
+ Row: {
794
+ executed_at: string | null
795
+ hash: string
796
+ id: number
797
+ name: string
798
+ }
799
+ Insert: {
800
+ executed_at?: string | null
801
+ hash: string
802
+ id: number
803
+ name: string
804
+ }
805
+ Update: {
806
+ executed_at?: string | null
807
+ hash?: string
808
+ id?: number
809
+ name?: string
810
+ }
811
+ Relationships: []
812
+ }
813
+ objects: {
814
+ Row: {
815
+ bucket_id: string | null
816
+ created_at: string | null
817
+ id: string
818
+ last_accessed_at: string | null
819
+ metadata: Json | null
820
+ name: string | null
821
+ owner: string | null
822
+ owner_id: string | null
823
+ path_tokens: string[] | null
824
+ updated_at: string | null
825
+ version: string | null
826
+ }
827
+ Insert: {
828
+ bucket_id?: string | null
829
+ created_at?: string | null
830
+ id?: string
831
+ last_accessed_at?: string | null
832
+ metadata?: Json | null
833
+ name?: string | null
834
+ owner?: string | null
835
+ owner_id?: string | null
836
+ path_tokens?: string[] | null
837
+ updated_at?: string | null
838
+ version?: string | null
839
+ }
840
+ Update: {
841
+ bucket_id?: string | null
842
+ created_at?: string | null
843
+ id?: string
844
+ last_accessed_at?: string | null
845
+ metadata?: Json | null
846
+ name?: string | null
847
+ owner?: string | null
848
+ owner_id?: string | null
849
+ path_tokens?: string[] | null
850
+ updated_at?: string | null
851
+ version?: string | null
852
+ }
853
+ Relationships: [
854
+ {
855
+ foreignKeyName: "objects_bucketId_fkey"
856
+ columns: ["bucket_id"]
857
+ isOneToOne: false
858
+ referencedRelation: "buckets"
859
+ referencedColumns: ["id"]
860
+ }
861
+ ]
862
+ }
863
+ }
864
+ Views: {
865
+ [_ in never]: never
866
+ }
867
+ Functions: {
868
+ can_insert_object: {
869
+ Args: {
870
+ bucketid: string
871
+ name: string
872
+ owner: string
873
+ metadata: Json
874
+ }
875
+ Returns: undefined
876
+ }
877
+ extension: {
878
+ Args: {
879
+ name: string
880
+ }
881
+ Returns: string
882
+ }
883
+ filename: {
884
+ Args: {
885
+ name: string
886
+ }
887
+ Returns: string
888
+ }
889
+ foldername: {
890
+ Args: {
891
+ name: string
892
+ }
893
+ Returns: unknown
894
+ }
895
+ get_size_by_bucket: {
896
+ Args: Record<PropertyKey, never>
897
+ Returns: {
898
+ size: number
899
+ bucket_id: string
900
+ }[]
901
+ }
902
+ search: {
903
+ Args: {
904
+ prefix: string
905
+ bucketname: string
906
+ limits?: number
907
+ levels?: number
908
+ offsets?: number
909
+ search?: string
910
+ sortcolumn?: string
911
+ sortorder?: string
912
+ }
913
+ Returns: {
914
+ name: string
915
+ id: string
916
+ updated_at: string
917
+ created_at: string
918
+ last_accessed_at: string
919
+ metadata: Json
920
+ }[]
921
+ }
922
+ }
923
+ Enums: {
924
+ [_ in never]: never
925
+ }
926
+ CompositeTypes: {
927
+ [_ in never]: never
928
+ }
929
+ }
930
+ }
931
+
932
+ export type Tables<
933
+ PublicTableNameOrOptions extends
934
+ | keyof (Database["public"]["Tables"] & Database["public"]["Views"])
935
+ | { schema: keyof Database },
936
+ TableName extends PublicTableNameOrOptions extends { schema: keyof Database }
937
+ ? keyof (Database[PublicTableNameOrOptions["schema"]]["Tables"] &
938
+ Database[PublicTableNameOrOptions["schema"]]["Views"])
939
+ : never = never
940
+ > = PublicTableNameOrOptions extends { schema: keyof Database }
941
+ ? (Database[PublicTableNameOrOptions["schema"]]["Tables"] &
942
+ Database[PublicTableNameOrOptions["schema"]]["Views"])[TableName] extends {
943
+ Row: infer R
944
+ }
945
+ ? R
946
+ : never
947
+ : PublicTableNameOrOptions extends keyof (Database["public"]["Tables"] &
948
+ Database["public"]["Views"])
949
+ ? (Database["public"]["Tables"] &
950
+ Database["public"]["Views"])[PublicTableNameOrOptions] extends {
951
+ Row: infer R
952
+ }
953
+ ? R
954
+ : never
955
+ : never
956
+
957
+ export type TablesInsert<
958
+ PublicTableNameOrOptions extends
959
+ | keyof Database["public"]["Tables"]
960
+ | { schema: keyof Database },
961
+ TableName extends PublicTableNameOrOptions extends { schema: keyof Database }
962
+ ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"]
963
+ : never = never
964
+ > = PublicTableNameOrOptions extends { schema: keyof Database }
965
+ ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
966
+ Insert: infer I
967
+ }
968
+ ? I
969
+ : never
970
+ : PublicTableNameOrOptions extends keyof Database["public"]["Tables"]
971
+ ? Database["public"]["Tables"][PublicTableNameOrOptions] extends {
972
+ Insert: infer I
973
+ }
974
+ ? I
975
+ : never
976
+ : never
977
+
978
+ export type TablesUpdate<
979
+ PublicTableNameOrOptions extends
980
+ | keyof Database["public"]["Tables"]
981
+ | { schema: keyof Database },
982
+ TableName extends PublicTableNameOrOptions extends { schema: keyof Database }
983
+ ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"]
984
+ : never = never
985
+ > = PublicTableNameOrOptions extends { schema: keyof Database }
986
+ ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
987
+ Update: infer U
988
+ }
989
+ ? U
990
+ : never
991
+ : PublicTableNameOrOptions extends keyof Database["public"]["Tables"]
992
+ ? Database["public"]["Tables"][PublicTableNameOrOptions] extends {
993
+ Update: infer U
994
+ }
995
+ ? U
996
+ : never
997
+ : never
998
+
999
+ export type Enums<
1000
+ PublicEnumNameOrOptions extends
1001
+ | keyof Database["public"]["Enums"]
1002
+ | { schema: keyof Database },
1003
+ EnumName extends PublicEnumNameOrOptions extends { schema: keyof Database }
1004
+ ? keyof Database[PublicEnumNameOrOptions["schema"]]["Enums"]
1005
+ : never = never
1006
+ > = PublicEnumNameOrOptions extends { schema: keyof Database }
1007
+ ? Database[PublicEnumNameOrOptions["schema"]]["Enums"][EnumName]
1008
+ : PublicEnumNameOrOptions extends keyof Database["public"]["Enums"]
1009
+ ? Database["public"]["Enums"][PublicEnumNameOrOptions]
1010
+ : never
1011
+
1012
+