@periskope/types 0.6.413 → 0.6.415

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.
@@ -58,6 +58,7 @@ export type Database = {
58
58
  old_plan: Json | null
59
59
  org_id: string
60
60
  trace_id: string
61
+ type: string | null
61
62
  }
62
63
  Insert: {
63
64
  created_at?: string
@@ -65,6 +66,7 @@ export type Database = {
65
66
  old_plan?: Json | null
66
67
  org_id: string
67
68
  trace_id?: string
69
+ type?: string | null
68
70
  }
69
71
  Update: {
70
72
  created_at?: string
@@ -72,6 +74,7 @@ export type Database = {
72
74
  old_plan?: Json | null
73
75
  org_id?: string
74
76
  trace_id?: string
77
+ type?: string | null
75
78
  }
76
79
  Relationships: []
77
80
  }
@@ -144,6 +147,33 @@ export type Database = {
144
147
  }
145
148
  Relationships: []
146
149
  }
150
+ tbl_notification_events: {
151
+ Row: {
152
+ created_at: string
153
+ event: string
154
+ id: number
155
+ org_id: string
156
+ payload: Json
157
+ performed_at: string | null
158
+ }
159
+ Insert: {
160
+ created_at?: string
161
+ event: string
162
+ id?: number
163
+ org_id: string
164
+ payload: Json
165
+ performed_at?: string | null
166
+ }
167
+ Update: {
168
+ created_at?: string
169
+ event?: string
170
+ id?: number
171
+ org_id?: string
172
+ payload?: Json
173
+ performed_at?: string | null
174
+ }
175
+ Relationships: []
176
+ }
147
177
  tbl_org_warmup: {
148
178
  Row: {
149
179
  created_at: string
@@ -207,10 +237,38 @@ export type Database = {
207
237
  }
208
238
  Relationships: []
209
239
  }
240
+ tbl_trigger_events: {
241
+ Row: {
242
+ created_at: string
243
+ event: string
244
+ id: number
245
+ org_id: string
246
+ payload: Json
247
+ performed_at: string | null
248
+ }
249
+ Insert: {
250
+ created_at?: string
251
+ event: string
252
+ id?: number
253
+ org_id: string
254
+ payload: Json
255
+ performed_at?: string | null
256
+ }
257
+ Update: {
258
+ created_at?: string
259
+ event?: string
260
+ id?: number
261
+ org_id?: string
262
+ payload?: Json
263
+ performed_at?: string | null
264
+ }
265
+ Relationships: []
266
+ }
210
267
  tbl_trigger_logs: {
211
268
  Row: {
212
269
  created_at: string
213
270
  id: number
271
+ performed_by: string | null
214
272
  request_body: Json
215
273
  request_id: string
216
274
  trace_id: string
@@ -219,6 +277,7 @@ export type Database = {
219
277
  Insert: {
220
278
  created_at?: string
221
279
  id?: number
280
+ performed_by?: string | null
222
281
  request_body: Json
223
282
  request_id: string
224
283
  trace_id?: string
@@ -227,6 +286,7 @@ export type Database = {
227
286
  Update: {
228
287
  created_at?: string
229
288
  id?: number
289
+ performed_by?: string | null
230
290
  request_body?: Json
231
291
  request_id?: string
232
292
  trace_id?: string
@@ -289,30 +349,65 @@ export type Database = {
289
349
  Views: {
290
350
  view_billing_updates: {
291
351
  Row: {
292
- change_arr: number | null
293
352
  created_at: string | null
294
353
  new_arr: number | null
295
354
  new_discount: number | null
296
- new_phones: number | null
355
+ new_phone_limit: number | null
297
356
  new_plan: Json | null
298
357
  new_plan_id: string | null
299
358
  new_plan_type: string | null
300
- new_price: number | null
301
- new_users: number | null
359
+ new_user_limit: number | null
302
360
  old_arr: number | null
303
361
  old_discount: number | null
304
- old_phones: number | null
362
+ old_phone_limit: number | null
305
363
  old_plan: Json | null
306
364
  old_plan_id: string | null
307
365
  old_plan_type: string | null
308
- old_price: number | null
309
- old_users: number | null
310
- org_alias: string | null
366
+ old_user_limit: number | null
311
367
  org_id: string | null
312
- org_name: string | null
313
368
  trace_id: string | null
314
369
  type: string | null
315
370
  }
371
+ Insert: {
372
+ created_at?: string | null
373
+ new_arr?: never
374
+ new_discount?: never
375
+ new_phone_limit?: never
376
+ new_plan?: Json | null
377
+ new_plan_id?: never
378
+ new_plan_type?: never
379
+ new_user_limit?: never
380
+ old_arr?: never
381
+ old_discount?: never
382
+ old_phone_limit?: never
383
+ old_plan?: Json | null
384
+ old_plan_id?: never
385
+ old_plan_type?: never
386
+ old_user_limit?: never
387
+ org_id?: string | null
388
+ trace_id?: string | null
389
+ type?: never
390
+ }
391
+ Update: {
392
+ created_at?: string | null
393
+ new_arr?: never
394
+ new_discount?: never
395
+ new_phone_limit?: never
396
+ new_plan?: Json | null
397
+ new_plan_id?: never
398
+ new_plan_type?: never
399
+ new_user_limit?: never
400
+ old_arr?: never
401
+ old_discount?: never
402
+ old_phone_limit?: never
403
+ old_plan?: Json | null
404
+ old_plan_id?: never
405
+ old_plan_type?: never
406
+ old_user_limit?: never
407
+ org_id?: string | null
408
+ trace_id?: string | null
409
+ type?: never
410
+ }
316
411
  Relationships: []
317
412
  }
318
413
  }
@@ -776,7 +871,7 @@ export type Database = {
776
871
  forwarding_score: number | null
777
872
  from: string | null
778
873
  from_me: boolean | null
779
- fts: unknown | null
874
+ fts: unknown
780
875
  has_media: boolean | null
781
876
  has_quoted_msg: boolean | null
782
877
  has_reaction: boolean | null
@@ -830,7 +925,7 @@ export type Database = {
830
925
  forwarding_score?: number | null
831
926
  from?: string | null
832
927
  from_me?: boolean | null
833
- fts?: unknown | null
928
+ fts?: unknown
834
929
  has_media?: boolean | null
835
930
  has_quoted_msg?: boolean | null
836
931
  has_reaction?: boolean | null
@@ -884,7 +979,7 @@ export type Database = {
884
979
  forwarding_score?: number | null
885
980
  from?: string | null
886
981
  from_me?: boolean | null
887
- fts?: unknown | null
982
+ fts?: unknown
888
983
  has_media?: boolean | null
889
984
  has_quoted_msg?: boolean | null
890
985
  has_reaction?: boolean | null
@@ -1218,6 +1313,7 @@ export type Database = {
1218
1313
  last_updated_at: string
1219
1314
  last_updated_by: string | null
1220
1315
  org_id: string
1316
+ org_phone: string | null
1221
1317
  priority: number | null
1222
1318
  quoted_message_id: string | null
1223
1319
  raised_by: string | null
@@ -1244,6 +1340,7 @@ export type Database = {
1244
1340
  last_updated_at?: string
1245
1341
  last_updated_by?: string | null
1246
1342
  org_id: string
1343
+ org_phone?: string | null
1247
1344
  priority?: number | null
1248
1345
  quoted_message_id?: string | null
1249
1346
  raised_by?: string | null
@@ -1272,6 +1369,7 @@ export type Database = {
1272
1369
  last_updated_at?: string
1273
1370
  last_updated_by?: string | null
1274
1371
  org_id?: string
1372
+ org_phone?: string | null
1275
1373
  priority?: number | null
1276
1374
  quoted_message_id?: string | null
1277
1375
  raised_by?: string | null
@@ -1886,7 +1984,7 @@ export type Database = {
1886
1984
  is_online: boolean | null
1887
1985
  is_owner: boolean | null
1888
1986
  label_ids: string[] | null
1889
- member_color: Database["public"]["Enums"]["enum_chat_colors"]
1987
+ member_color: string
1890
1988
  member_image: string | null
1891
1989
  member_metadata: Json | null
1892
1990
  member_name: string | null
@@ -1905,7 +2003,7 @@ export type Database = {
1905
2003
  is_online?: boolean | null
1906
2004
  is_owner?: boolean | null
1907
2005
  label_ids?: string[] | null
1908
- member_color?: Database["public"]["Enums"]["enum_chat_colors"]
2006
+ member_color?: string
1909
2007
  member_image?: string | null
1910
2008
  member_metadata?: Json | null
1911
2009
  member_name?: string | null
@@ -1924,7 +2022,7 @@ export type Database = {
1924
2022
  is_online?: boolean | null
1925
2023
  is_owner?: boolean | null
1926
2024
  label_ids?: string[] | null
1927
- member_color?: Database["public"]["Enums"]["enum_chat_colors"]
2025
+ member_color?: string
1928
2026
  member_image?: string | null
1929
2027
  member_metadata?: Json | null
1930
2028
  member_name?: string | null
@@ -3381,6 +3479,7 @@ export type Database = {
3381
3479
  owner: string | null
3382
3480
  owner_id: string | null
3383
3481
  public: boolean | null
3482
+ type: Database["storage"]["Enums"]["buckettype"]
3384
3483
  updated_at: string | null
3385
3484
  }
3386
3485
  Insert: {
@@ -3393,6 +3492,7 @@ export type Database = {
3393
3492
  owner?: string | null
3394
3493
  owner_id?: string | null
3395
3494
  public?: boolean | null
3495
+ type?: Database["storage"]["Enums"]["buckettype"]
3396
3496
  updated_at?: string | null
3397
3497
  }
3398
3498
  Update: {
@@ -3405,10 +3505,112 @@ export type Database = {
3405
3505
  owner?: string | null
3406
3506
  owner_id?: string | null
3407
3507
  public?: boolean | null
3508
+ type?: Database["storage"]["Enums"]["buckettype"]
3408
3509
  updated_at?: string | null
3409
3510
  }
3410
3511
  Relationships: []
3411
3512
  }
3513
+ buckets_analytics: {
3514
+ Row: {
3515
+ created_at: string
3516
+ format: string
3517
+ id: string
3518
+ type: Database["storage"]["Enums"]["buckettype"]
3519
+ updated_at: string
3520
+ }
3521
+ Insert: {
3522
+ created_at?: string
3523
+ format?: string
3524
+ id: string
3525
+ type?: Database["storage"]["Enums"]["buckettype"]
3526
+ updated_at?: string
3527
+ }
3528
+ Update: {
3529
+ created_at?: string
3530
+ format?: string
3531
+ id?: string
3532
+ type?: Database["storage"]["Enums"]["buckettype"]
3533
+ updated_at?: string
3534
+ }
3535
+ Relationships: []
3536
+ }
3537
+ iceberg_namespaces: {
3538
+ Row: {
3539
+ bucket_id: string
3540
+ created_at: string
3541
+ id: string
3542
+ name: string
3543
+ updated_at: string
3544
+ }
3545
+ Insert: {
3546
+ bucket_id: string
3547
+ created_at?: string
3548
+ id?: string
3549
+ name: string
3550
+ updated_at?: string
3551
+ }
3552
+ Update: {
3553
+ bucket_id?: string
3554
+ created_at?: string
3555
+ id?: string
3556
+ name?: string
3557
+ updated_at?: string
3558
+ }
3559
+ Relationships: [
3560
+ {
3561
+ foreignKeyName: "iceberg_namespaces_bucket_id_fkey"
3562
+ columns: ["bucket_id"]
3563
+ isOneToOne: false
3564
+ referencedRelation: "buckets_analytics"
3565
+ referencedColumns: ["id"]
3566
+ },
3567
+ ]
3568
+ }
3569
+ iceberg_tables: {
3570
+ Row: {
3571
+ bucket_id: string
3572
+ created_at: string
3573
+ id: string
3574
+ location: string
3575
+ name: string
3576
+ namespace_id: string
3577
+ updated_at: string
3578
+ }
3579
+ Insert: {
3580
+ bucket_id: string
3581
+ created_at?: string
3582
+ id?: string
3583
+ location: string
3584
+ name: string
3585
+ namespace_id: string
3586
+ updated_at?: string
3587
+ }
3588
+ Update: {
3589
+ bucket_id?: string
3590
+ created_at?: string
3591
+ id?: string
3592
+ location?: string
3593
+ name?: string
3594
+ namespace_id?: string
3595
+ updated_at?: string
3596
+ }
3597
+ Relationships: [
3598
+ {
3599
+ foreignKeyName: "iceberg_tables_bucket_id_fkey"
3600
+ columns: ["bucket_id"]
3601
+ isOneToOne: false
3602
+ referencedRelation: "buckets_analytics"
3603
+ referencedColumns: ["id"]
3604
+ },
3605
+ {
3606
+ foreignKeyName: "iceberg_tables_namespace_id_fkey"
3607
+ columns: ["namespace_id"]
3608
+ isOneToOne: false
3609
+ referencedRelation: "iceberg_namespaces"
3610
+ referencedColumns: ["id"]
3611
+ },
3612
+ ]
3613
+ }
3412
3614
  migrations: {
3413
3615
  Row: {
3414
3616
  executed_at: string | null
@@ -3436,6 +3638,7 @@ export type Database = {
3436
3638
  created_at: string | null
3437
3639
  id: string
3438
3640
  last_accessed_at: string | null
3641
+ level: number | null
3439
3642
  metadata: Json | null
3440
3643
  name: string | null
3441
3644
  owner: string | null
@@ -3450,6 +3653,7 @@ export type Database = {
3450
3653
  created_at?: string | null
3451
3654
  id?: string
3452
3655
  last_accessed_at?: string | null
3656
+ level?: number | null
3453
3657
  metadata?: Json | null
3454
3658
  name?: string | null
3455
3659
  owner?: string | null
@@ -3464,6 +3668,7 @@ export type Database = {
3464
3668
  created_at?: string | null
3465
3669
  id?: string
3466
3670
  last_accessed_at?: string | null
3671
+ level?: number | null
3467
3672
  metadata?: Json | null
3468
3673
  name?: string | null
3469
3674
  owner?: string | null
@@ -3483,6 +3688,38 @@ export type Database = {
3483
3688
  },
3484
3689
  ]
3485
3690
  }
3691
+ prefixes: {
3692
+ Row: {
3693
+ bucket_id: string
3694
+ created_at: string | null
3695
+ level: number
3696
+ name: string
3697
+ updated_at: string | null
3698
+ }
3699
+ Insert: {
3700
+ bucket_id: string
3701
+ created_at?: string | null
3702
+ level?: number
3703
+ name: string
3704
+ updated_at?: string | null
3705
+ }
3706
+ Update: {
3707
+ bucket_id?: string
3708
+ created_at?: string | null
3709
+ level?: number
3710
+ name?: string
3711
+ updated_at?: string | null
3712
+ }
3713
+ Relationships: [
3714
+ {
3715
+ foreignKeyName: "prefixes_bucketId_fkey"
3716
+ columns: ["bucket_id"]
3717
+ isOneToOne: false
3718
+ referencedRelation: "buckets"
3719
+ referencedColumns: ["id"]
3720
+ },
3721
+ ]
3722
+ }
3486
3723
  s3_multipart_uploads: {
3487
3724
  Row: {
3488
3725
  bucket_id: string
@@ -3586,87 +3823,155 @@ export type Database = {
3586
3823
  [_ in never]: never
3587
3824
  }
3588
3825
  Functions: {
3589
- can_insert_object: {
3590
- Args: { bucketid: string; name: string; owner: string; metadata: Json }
3826
+ add_prefixes: {
3827
+ Args: { _bucket_id: string; _name: string }
3591
3828
  Returns: undefined
3592
3829
  }
3593
- extension: {
3594
- Args: { name: string }
3595
- Returns: string
3830
+ can_insert_object: {
3831
+ Args: { bucketid: string; metadata: Json; name: string; owner: string }
3832
+ Returns: undefined
3596
3833
  }
3597
- filename: {
3598
- Args: { name: string }
3599
- Returns: string
3834
+ delete_leaf_prefixes: {
3835
+ Args: { bucket_ids: string[]; names: string[] }
3836
+ Returns: undefined
3600
3837
  }
3601
- foldername: {
3602
- Args: { name: string }
3603
- Returns: string[]
3838
+ delete_prefix: {
3839
+ Args: { _bucket_id: string; _name: string }
3840
+ Returns: boolean
3604
3841
  }
3842
+ extension: { Args: { name: string }; Returns: string }
3843
+ filename: { Args: { name: string }; Returns: string }
3844
+ foldername: { Args: { name: string }; Returns: string[] }
3845
+ get_level: { Args: { name: string }; Returns: number }
3846
+ get_prefix: { Args: { name: string }; Returns: string }
3847
+ get_prefixes: { Args: { name: string }; Returns: string[] }
3605
3848
  get_size_by_bucket: {
3606
- Args: Record<PropertyKey, never>
3849
+ Args: never
3607
3850
  Returns: {
3608
- size: number
3609
3851
  bucket_id: string
3852
+ size: number
3610
3853
  }[]
3611
3854
  }
3612
3855
  list_multipart_uploads_with_delimiter: {
3613
3856
  Args: {
3614
3857
  bucket_id: string
3615
- prefix_param: string
3616
3858
  delimiter_param: string
3617
3859
  max_keys?: number
3618
3860
  next_key_token?: string
3619
3861
  next_upload_token?: string
3862
+ prefix_param: string
3620
3863
  }
3621
3864
  Returns: {
3622
- key: string
3623
- id: string
3624
3865
  created_at: string
3866
+ id: string
3867
+ key: string
3625
3868
  }[]
3626
3869
  }
3627
3870
  list_objects_with_delimiter: {
3628
3871
  Args: {
3629
3872
  bucket_id: string
3630
- prefix_param: string
3631
3873
  delimiter_param: string
3632
3874
  max_keys?: number
3633
- start_after?: string
3634
3875
  next_token?: string
3876
+ prefix_param: string
3877
+ start_after?: string
3635
3878
  }
3636
3879
  Returns: {
3637
- name: string
3638
3880
  id: string
3639
3881
  metadata: Json
3882
+ name: string
3640
3883
  updated_at: string
3641
3884
  }[]
3642
3885
  }
3643
- operation: {
3644
- Args: Record<PropertyKey, never>
3645
- Returns: string
3886
+ lock_top_prefixes: {
3887
+ Args: { bucket_ids: string[]; names: string[] }
3888
+ Returns: undefined
3646
3889
  }
3890
+ operation: { Args: never; Returns: string }
3647
3891
  search: {
3648
3892
  Args: {
3649
- prefix: string
3650
3893
  bucketname: string
3894
+ levels?: number
3651
3895
  limits?: number
3896
+ offsets?: number
3897
+ prefix: string
3898
+ search?: string
3899
+ sortcolumn?: string
3900
+ sortorder?: string
3901
+ }
3902
+ Returns: {
3903
+ created_at: string
3904
+ id: string
3905
+ last_accessed_at: string
3906
+ metadata: Json
3907
+ name: string
3908
+ updated_at: string
3909
+ }[]
3910
+ }
3911
+ search_legacy_v1: {
3912
+ Args: {
3913
+ bucketname: string
3652
3914
  levels?: number
3915
+ limits?: number
3653
3916
  offsets?: number
3917
+ prefix: string
3654
3918
  search?: string
3655
3919
  sortcolumn?: string
3656
3920
  sortorder?: string
3657
3921
  }
3658
3922
  Returns: {
3923
+ created_at: string
3924
+ id: string
3925
+ last_accessed_at: string
3926
+ metadata: Json
3659
3927
  name: string
3928
+ updated_at: string
3929
+ }[]
3930
+ }
3931
+ search_v1_optimised: {
3932
+ Args: {
3933
+ bucketname: string
3934
+ levels?: number
3935
+ limits?: number
3936
+ offsets?: number
3937
+ prefix: string
3938
+ search?: string
3939
+ sortcolumn?: string
3940
+ sortorder?: string
3941
+ }
3942
+ Returns: {
3943
+ created_at: string
3660
3944
  id: string
3945
+ last_accessed_at: string
3946
+ metadata: Json
3947
+ name: string
3661
3948
  updated_at: string
3949
+ }[]
3950
+ }
3951
+ search_v2: {
3952
+ Args: {
3953
+ bucket_name: string
3954
+ levels?: number
3955
+ limits?: number
3956
+ prefix: string
3957
+ sort_column?: string
3958
+ sort_column_after?: string
3959
+ sort_order?: string
3960
+ start_after?: string
3961
+ }
3962
+ Returns: {
3662
3963
  created_at: string
3964
+ id: string
3965
+ key: string
3663
3966
  last_accessed_at: string
3664
3967
  metadata: Json
3968
+ name: string
3969
+ updated_at: string
3665
3970
  }[]
3666
3971
  }
3667
3972
  }
3668
3973
  Enums: {
3669
- [_ in never]: never
3974
+ buckettype: "STANDARD" | "ANALYTICS"
3670
3975
  }
3671
3976
  CompositeTypes: {
3672
3977
  [_ in never]: never
@@ -3674,21 +3979,25 @@ export type Database = {
3674
3979
  }
3675
3980
  }
3676
3981
 
3677
- type DefaultSchema = Database[Extract<keyof Database, "public">]
3982
+ type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">
3983
+
3984
+ type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">]
3678
3985
 
3679
3986
  export type Tables<
3680
3987
  DefaultSchemaTableNameOrOptions extends
3681
3988
  | keyof (DefaultSchema["Tables"] & DefaultSchema["Views"])
3682
- | { schema: keyof Database },
3989
+ | { schema: keyof DatabaseWithoutInternals },
3683
3990
  TableName extends DefaultSchemaTableNameOrOptions extends {
3684
- schema: keyof Database
3991
+ schema: keyof DatabaseWithoutInternals
3685
3992
  }
3686
- ? keyof (Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] &
3687
- Database[DefaultSchemaTableNameOrOptions["schema"]]["Views"])
3993
+ ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] &
3994
+ DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])
3688
3995
  : never = never,
3689
- > = DefaultSchemaTableNameOrOptions extends { schema: keyof Database }
3690
- ? (Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] &
3691
- Database[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
3996
+ > = DefaultSchemaTableNameOrOptions extends {
3997
+ schema: keyof DatabaseWithoutInternals
3998
+ }
3999
+ ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] &
4000
+ DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
3692
4001
  Row: infer R
3693
4002
  }
3694
4003
  ? R
@@ -3706,14 +4015,16 @@ export type Tables<
3706
4015
  export type TablesInsert<
3707
4016
  DefaultSchemaTableNameOrOptions extends
3708
4017
  | keyof DefaultSchema["Tables"]
3709
- | { schema: keyof Database },
4018
+ | { schema: keyof DatabaseWithoutInternals },
3710
4019
  TableName extends DefaultSchemaTableNameOrOptions extends {
3711
- schema: keyof Database
4020
+ schema: keyof DatabaseWithoutInternals
3712
4021
  }
3713
- ? keyof Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"]
4022
+ ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"]
3714
4023
  : never = never,
3715
- > = DefaultSchemaTableNameOrOptions extends { schema: keyof Database }
3716
- ? Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
4024
+ > = DefaultSchemaTableNameOrOptions extends {
4025
+ schema: keyof DatabaseWithoutInternals
4026
+ }
4027
+ ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
3717
4028
  Insert: infer I
3718
4029
  }
3719
4030
  ? I
@@ -3729,14 +4040,16 @@ export type TablesInsert<
3729
4040
  export type TablesUpdate<
3730
4041
  DefaultSchemaTableNameOrOptions extends
3731
4042
  | keyof DefaultSchema["Tables"]
3732
- | { schema: keyof Database },
4043
+ | { schema: keyof DatabaseWithoutInternals },
3733
4044
  TableName extends DefaultSchemaTableNameOrOptions extends {
3734
- schema: keyof Database
4045
+ schema: keyof DatabaseWithoutInternals
3735
4046
  }
3736
- ? keyof Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"]
4047
+ ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"]
3737
4048
  : never = never,
3738
- > = DefaultSchemaTableNameOrOptions extends { schema: keyof Database }
3739
- ? Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
4049
+ > = DefaultSchemaTableNameOrOptions extends {
4050
+ schema: keyof DatabaseWithoutInternals
4051
+ }
4052
+ ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
3740
4053
  Update: infer U
3741
4054
  }
3742
4055
  ? U
@@ -3752,28 +4065,33 @@ export type TablesUpdate<
3752
4065
  export type Enums<
3753
4066
  DefaultSchemaEnumNameOrOptions extends
3754
4067
  | keyof DefaultSchema["Enums"]
3755
- | { schema: keyof Database },
4068
+ | { schema: keyof DatabaseWithoutInternals },
3756
4069
  EnumName extends DefaultSchemaEnumNameOrOptions extends {
3757
- schema: keyof Database
4070
+ schema: keyof DatabaseWithoutInternals
3758
4071
  }
3759
- ? keyof Database[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"]
4072
+ ? keyof DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"]
3760
4073
  : never = never,
3761
- > = DefaultSchemaEnumNameOrOptions extends { schema: keyof Database }
3762
- ? Database[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"][EnumName]
4074
+ > = DefaultSchemaEnumNameOrOptions extends {
4075
+ schema: keyof DatabaseWithoutInternals
4076
+ }
4077
+ ? DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"][EnumName]
3763
4078
  : DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"]
3764
4079
  ? DefaultSchema["Enums"][DefaultSchemaEnumNameOrOptions]
3765
4080
  : never
4081
+
3766
4082
  export type CompositeTypes<
3767
4083
  PublicCompositeTypeNameOrOptions extends
3768
4084
  | keyof DefaultSchema["CompositeTypes"]
3769
- | { schema: keyof Database },
4085
+ | { schema: keyof DatabaseWithoutInternals },
3770
4086
  CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
3771
- schema: keyof Database
4087
+ schema: keyof DatabaseWithoutInternals
3772
4088
  }
3773
- ? keyof Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"]
4089
+ ? keyof DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"]
3774
4090
  : never = never,
3775
- > = PublicCompositeTypeNameOrOptions extends { schema: keyof Database }
3776
- ? Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName]
4091
+ > = PublicCompositeTypeNameOrOptions extends {
4092
+ schema: keyof DatabaseWithoutInternals
4093
+ }
4094
+ ? DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName]
3777
4095
  : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"]
3778
4096
  ? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions]
3779
4097
  : never
@@ -3848,13 +4166,17 @@ export const Constants = {
3848
4166
  "jira",
3849
4167
  "salesforce",
3850
4168
  "zohodesk",
3851
- "zohocrm",
3852
4169
  "gsheets",
4170
+ "zohocrm",
3853
4171
  ],
3854
4172
  enum_member_role: ["admin", "member"],
3855
4173
  },
3856
4174
  },
3857
4175
  storage: {
3858
- Enums: {},
4176
+ Enums: {
4177
+ buckettype: ["STANDARD", "ANALYTICS"],
4178
+ },
3859
4179
  },
3860
- } as const;
4180
+ } as const
4181
+
4182
+