@periskope/types 0.6.98 → 0.6.99

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.
@@ -35,7 +35,7 @@ export type Database = {
35
35
  path: string;
36
36
  req: Json;
37
37
  request_id: string;
38
- res: Json;
38
+ res: Json | null;
39
39
  status: number;
40
40
  timestamp: string;
41
41
  token_id: string;
@@ -45,7 +45,7 @@ export type Database = {
45
45
  path: string;
46
46
  req: Json;
47
47
  request_id: string;
48
- res: Json;
48
+ res?: Json | null;
49
49
  status: number;
50
50
  timestamp: string;
51
51
  token_id: string;
@@ -55,7 +55,7 @@ export type Database = {
55
55
  path?: string;
56
56
  req?: Json;
57
57
  request_id?: string;
58
- res?: Json;
58
+ res?: Json | null;
59
59
  status?: number;
60
60
  timestamp?: string;
61
61
  token_id?: string;
@@ -107,39 +107,39 @@ export type Database = {
107
107
  };
108
108
  Relationships: [
109
109
  {
110
- foreignKeyName: 'tbl_broadcast_logs_broadcast_id_fkey';
111
- columns: ['broadcast_id'];
110
+ foreignKeyName: "tbl_broadcast_logs_broadcast_id_fkey";
111
+ columns: ["broadcast_id"];
112
112
  isOneToOne: false;
113
- referencedRelation: 'tbl_broadcast_messages';
114
- referencedColumns: ['broadcast_id'];
113
+ referencedRelation: "tbl_broadcast_messages";
114
+ referencedColumns: ["broadcast_id"];
115
115
  },
116
116
  {
117
- foreignKeyName: 'tbl_broadcast_logs_broadcast_id_fkey';
118
- columns: ['broadcast_id'];
117
+ foreignKeyName: "tbl_broadcast_logs_broadcast_id_fkey";
118
+ columns: ["broadcast_id"];
119
119
  isOneToOne: false;
120
- referencedRelation: 'view_broadcast_logs';
121
- referencedColumns: ['broadcast_id'];
120
+ referencedRelation: "view_broadcast_logs";
121
+ referencedColumns: ["broadcast_id"];
122
122
  },
123
123
  {
124
- foreignKeyName: 'tbl_broadcast_logs_org_id_fkey';
125
- columns: ['org_id'];
124
+ foreignKeyName: "tbl_broadcast_logs_org_id_fkey";
125
+ columns: ["org_id"];
126
126
  isOneToOne: false;
127
- referencedRelation: 'tbl_org';
128
- referencedColumns: ['org_id'];
127
+ referencedRelation: "tbl_org";
128
+ referencedColumns: ["org_id"];
129
129
  },
130
130
  {
131
- foreignKeyName: 'tbl_broadcast_logs_org_id_fkey';
132
- columns: ['org_id'];
131
+ foreignKeyName: "tbl_broadcast_logs_org_id_fkey";
132
+ columns: ["org_id"];
133
133
  isOneToOne: false;
134
- referencedRelation: 'view_org';
135
- referencedColumns: ['org_id'];
134
+ referencedRelation: "view_org";
135
+ referencedColumns: ["org_id"];
136
136
  }
137
137
  ];
138
138
  };
139
139
  tbl_broadcast_messages: {
140
140
  Row: {
141
141
  broadcast_id: string;
142
- broadcast_status: Database['public']['Enums']['enum_broadcast_status'] | null;
142
+ broadcast_status: Database["public"]["Enums"]["enum_broadcast_status"] | null;
143
143
  chat_ids: string[] | null;
144
144
  created_at: string;
145
145
  message_payload: Json | null;
@@ -152,7 +152,7 @@ export type Database = {
152
152
  };
153
153
  Insert: {
154
154
  broadcast_id?: string;
155
- broadcast_status?: Database['public']['Enums']['enum_broadcast_status'] | null;
155
+ broadcast_status?: Database["public"]["Enums"]["enum_broadcast_status"] | null;
156
156
  chat_ids?: string[] | null;
157
157
  created_at?: string;
158
158
  message_payload?: Json | null;
@@ -165,7 +165,7 @@ export type Database = {
165
165
  };
166
166
  Update: {
167
167
  broadcast_id?: string;
168
- broadcast_status?: Database['public']['Enums']['enum_broadcast_status'] | null;
168
+ broadcast_status?: Database["public"]["Enums"]["enum_broadcast_status"] | null;
169
169
  chat_ids?: string[] | null;
170
170
  created_at?: string;
171
171
  message_payload?: Json | null;
@@ -178,18 +178,18 @@ export type Database = {
178
178
  };
179
179
  Relationships: [
180
180
  {
181
- foreignKeyName: 'tbl_broadcast_messages_org_id_fkey';
182
- columns: ['org_id'];
181
+ foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
182
+ columns: ["org_id"];
183
183
  isOneToOne: false;
184
- referencedRelation: 'tbl_org';
185
- referencedColumns: ['org_id'];
184
+ referencedRelation: "tbl_org";
185
+ referencedColumns: ["org_id"];
186
186
  },
187
187
  {
188
- foreignKeyName: 'tbl_broadcast_messages_org_id_fkey';
189
- columns: ['org_id'];
188
+ foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
189
+ columns: ["org_id"];
190
190
  isOneToOne: false;
191
- referencedRelation: 'view_org';
192
- referencedColumns: ['org_id'];
191
+ referencedRelation: "view_org";
192
+ referencedColumns: ["org_id"];
193
193
  }
194
194
  ];
195
195
  };
@@ -223,18 +223,18 @@ export type Database = {
223
223
  };
224
224
  Relationships: [
225
225
  {
226
- foreignKeyName: 'tbl_broadcast_templates_org_id_fkey';
227
- columns: ['org_id'];
226
+ foreignKeyName: "tbl_broadcast_templates_org_id_fkey";
227
+ columns: ["org_id"];
228
228
  isOneToOne: false;
229
- referencedRelation: 'tbl_org';
230
- referencedColumns: ['org_id'];
229
+ referencedRelation: "tbl_org";
230
+ referencedColumns: ["org_id"];
231
231
  },
232
232
  {
233
- foreignKeyName: 'tbl_broadcast_templates_org_id_fkey';
234
- columns: ['org_id'];
233
+ foreignKeyName: "tbl_broadcast_templates_org_id_fkey";
234
+ columns: ["org_id"];
235
235
  isOneToOne: false;
236
- referencedRelation: 'view_org';
237
- referencedColumns: ['org_id'];
236
+ referencedRelation: "view_org";
237
+ referencedColumns: ["org_id"];
238
238
  }
239
239
  ];
240
240
  };
@@ -268,11 +268,11 @@ export type Database = {
268
268
  };
269
269
  Relationships: [
270
270
  {
271
- foreignKeyName: 'tbl_chat_access_org_id_email_fkey';
272
- columns: ['org_id', 'email'];
271
+ foreignKeyName: "tbl_chat_access_org_id_email_fkey";
272
+ columns: ["org_id", "email"];
273
273
  isOneToOne: false;
274
- referencedRelation: 'tbl_org_members';
275
- referencedColumns: ['org_id', 'email'];
274
+ referencedRelation: "tbl_org_members";
275
+ referencedColumns: ["org_id", "email"];
276
276
  }
277
277
  ];
278
278
  };
@@ -486,14 +486,167 @@ export type Database = {
486
486
  };
487
487
  Relationships: [
488
488
  {
489
- foreignKeyName: 'tbl_chat_messages_parent_fkey_tbl_org_phones';
490
- columns: ['org_phone', 'org_id'];
489
+ foreignKeyName: "tbl_chat_messages_parent_fkey_tbl_org_phones";
490
+ columns: ["org_phone", "org_id"];
491
491
  isOneToOne: false;
492
- referencedRelation: 'tbl_org_phones';
493
- referencedColumns: ['org_phone', 'org_id'];
492
+ referencedRelation: "tbl_org_phones";
493
+ referencedColumns: ["org_phone", "org_id"];
494
494
  }
495
495
  ];
496
496
  };
497
+ tbl_chat_messages_2997dd64_89bf_48d3_9a22_b314fca017e5: {
498
+ Row: {
499
+ ack: string | null;
500
+ author: string | null;
501
+ body: string | null;
502
+ broadcast: boolean | null;
503
+ broadcast_id: string | null;
504
+ chat_id: string | null;
505
+ delivery_info: Json | null;
506
+ device_type: string | null;
507
+ duration: string | null;
508
+ flag_metadata: Json | null;
509
+ flag_response_time: number | null;
510
+ forwarding_score: number | null;
511
+ from: string | null;
512
+ from_me: boolean | null;
513
+ has_media: boolean | null;
514
+ has_quoted_msg: boolean | null;
515
+ has_reaction: boolean | null;
516
+ id: Json | null;
517
+ invite_v4: Json | null;
518
+ is_deleted: boolean | null;
519
+ is_ephemeral: boolean | null;
520
+ is_forwarded: boolean | null;
521
+ is_gif: boolean | null;
522
+ is_starred: boolean | null;
523
+ is_status: boolean | null;
524
+ links: Json | null;
525
+ location: Json | null;
526
+ media: Json | null;
527
+ media_key: string | null;
528
+ mentioned_ids: string[] | null;
529
+ message_id: string;
530
+ message_ticket_id: string | null;
531
+ message_type: string | null;
532
+ order_id: string | null;
533
+ org_id: string;
534
+ org_phone: string;
535
+ performed_by: string | null;
536
+ prev_body: string | null;
537
+ quoted_message_id: string | null;
538
+ raw_data: Json | null;
539
+ sender_phone: string | null;
540
+ sent_message_id: string | null;
541
+ timestamp: string | null;
542
+ to: string | null;
543
+ token: string | null;
544
+ unique_id: string | null;
545
+ updated_at: string | null;
546
+ vcards: string[] | null;
547
+ };
548
+ Insert: {
549
+ ack?: string | null;
550
+ author?: string | null;
551
+ body?: string | null;
552
+ broadcast?: boolean | null;
553
+ broadcast_id?: string | null;
554
+ chat_id?: string | null;
555
+ delivery_info?: Json | null;
556
+ device_type?: string | null;
557
+ duration?: string | null;
558
+ flag_metadata?: Json | null;
559
+ flag_response_time?: number | null;
560
+ forwarding_score?: number | null;
561
+ from?: string | null;
562
+ from_me?: boolean | null;
563
+ has_media?: boolean | null;
564
+ has_quoted_msg?: boolean | null;
565
+ has_reaction?: boolean | null;
566
+ id?: Json | null;
567
+ invite_v4?: Json | null;
568
+ is_deleted?: boolean | null;
569
+ is_ephemeral?: boolean | null;
570
+ is_forwarded?: boolean | null;
571
+ is_gif?: boolean | null;
572
+ is_starred?: boolean | null;
573
+ is_status?: boolean | null;
574
+ links?: Json | null;
575
+ location?: Json | null;
576
+ media?: Json | null;
577
+ media_key?: string | null;
578
+ mentioned_ids?: string[] | null;
579
+ message_id: string;
580
+ message_ticket_id?: string | null;
581
+ message_type?: string | null;
582
+ order_id?: string | null;
583
+ org_id: string;
584
+ org_phone: string;
585
+ performed_by?: string | null;
586
+ prev_body?: string | null;
587
+ quoted_message_id?: string | null;
588
+ raw_data?: Json | null;
589
+ sender_phone?: string | null;
590
+ sent_message_id?: string | null;
591
+ timestamp?: string | null;
592
+ to?: string | null;
593
+ token?: string | null;
594
+ unique_id?: string | null;
595
+ updated_at?: string | null;
596
+ vcards?: string[] | null;
597
+ };
598
+ Update: {
599
+ ack?: string | null;
600
+ author?: string | null;
601
+ body?: string | null;
602
+ broadcast?: boolean | null;
603
+ broadcast_id?: string | null;
604
+ chat_id?: string | null;
605
+ delivery_info?: Json | null;
606
+ device_type?: string | null;
607
+ duration?: string | null;
608
+ flag_metadata?: Json | null;
609
+ flag_response_time?: number | 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_deleted?: boolean | null;
619
+ is_ephemeral?: boolean | null;
620
+ is_forwarded?: boolean | null;
621
+ is_gif?: boolean | null;
622
+ is_starred?: boolean | null;
623
+ is_status?: boolean | null;
624
+ links?: Json | null;
625
+ location?: Json | null;
626
+ media?: Json | null;
627
+ media_key?: string | null;
628
+ mentioned_ids?: string[] | null;
629
+ message_id?: string;
630
+ message_ticket_id?: string | null;
631
+ message_type?: string | null;
632
+ order_id?: string | null;
633
+ org_id?: string;
634
+ org_phone?: string;
635
+ performed_by?: string | null;
636
+ prev_body?: string | null;
637
+ quoted_message_id?: string | null;
638
+ raw_data?: Json | null;
639
+ sender_phone?: string | null;
640
+ sent_message_id?: string | null;
641
+ timestamp?: string | null;
642
+ to?: string | null;
643
+ token?: string | null;
644
+ unique_id?: string | null;
645
+ updated_at?: string | null;
646
+ vcards?: string[] | null;
647
+ };
648
+ Relationships: [];
649
+ };
497
650
  tbl_chat_messages_default: {
498
651
  Row: {
499
652
  ack: string | null;
@@ -689,11 +842,11 @@ export type Database = {
689
842
  };
690
843
  Relationships: [
691
844
  {
692
- foreignKeyName: 'tbl_chat_notifications_fkey_tbl_org_phones';
693
- columns: ['org_id', 'org_phone'];
845
+ foreignKeyName: "tbl_chat_notifications_fkey_tbl_org_phones";
846
+ columns: ["org_id", "org_phone"];
694
847
  isOneToOne: false;
695
- referencedRelation: 'tbl_org_phones';
696
- referencedColumns: ['org_id', 'org_phone'];
848
+ referencedRelation: "tbl_org_phones";
849
+ referencedColumns: ["org_id", "org_phone"];
697
850
  }
698
851
  ];
699
852
  };
@@ -727,11 +880,11 @@ export type Database = {
727
880
  };
728
881
  Relationships: [
729
882
  {
730
- foreignKeyName: 'tbl_chat_participants_fkey_tbl_chats';
731
- columns: ['org_id', 'org_phone', 'chat_id'];
883
+ foreignKeyName: "tbl_chat_participants_fkey_tbl_chats";
884
+ columns: ["org_id", "org_phone", "chat_id"];
732
885
  isOneToOne: false;
733
- referencedRelation: 'tbl_chats';
734
- referencedColumns: ['org_id', 'org_phone', 'chat_id'];
886
+ referencedRelation: "tbl_chats";
887
+ referencedColumns: ["org_id", "org_phone", "chat_id"];
735
888
  }
736
889
  ];
737
890
  };
@@ -816,11 +969,11 @@ export type Database = {
816
969
  };
817
970
  Relationships: [
818
971
  {
819
- foreignKeyName: 'tbl_chat_reactions_fkey_tbl_org_phones';
820
- columns: ['org_id', 'org_phone'];
972
+ foreignKeyName: "tbl_chat_reactions_fkey_tbl_org_phones";
973
+ columns: ["org_id", "org_phone"];
821
974
  isOneToOne: false;
822
- referencedRelation: 'tbl_org_phones';
823
- referencedColumns: ['org_id', 'org_phone'];
975
+ referencedRelation: "tbl_org_phones";
976
+ referencedColumns: ["org_id", "org_phone"];
824
977
  }
825
978
  ];
826
979
  };
@@ -833,6 +986,7 @@ export type Database = {
833
986
  closed_at: string | null;
834
987
  created_at: string;
835
988
  due_date: string | null;
989
+ freshdesk_metadata: Json | null;
836
990
  hubspot_metadata: Json | null;
837
991
  is_deleted: boolean;
838
992
  label_ids: Json | null;
@@ -842,10 +996,9 @@ export type Database = {
842
996
  quoted_message_id: string | null;
843
997
  raised_by: string | null;
844
998
  response_time: number | null;
845
- status: Database['public']['Enums']['enum_chat_tickets_status'] | null;
999
+ status: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
846
1000
  subject: string;
847
1001
  ticket_id: string;
848
- ticket_metadata: Json | null;
849
1002
  };
850
1003
  Insert: {
851
1004
  assigned_by?: string | null;
@@ -855,6 +1008,7 @@ export type Database = {
855
1008
  closed_at?: string | null;
856
1009
  created_at?: string;
857
1010
  due_date?: string | null;
1011
+ freshdesk_metadata?: Json | null;
858
1012
  hubspot_metadata?: Json | null;
859
1013
  is_deleted?: boolean;
860
1014
  label_ids?: Json | null;
@@ -864,10 +1018,9 @@ export type Database = {
864
1018
  quoted_message_id?: string | null;
865
1019
  raised_by?: string | null;
866
1020
  response_time?: number | null;
867
- status?: Database['public']['Enums']['enum_chat_tickets_status'] | null;
1021
+ status?: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
868
1022
  subject: string;
869
1023
  ticket_id?: string;
870
- ticket_metadata?: Json | null;
871
1024
  };
872
1025
  Update: {
873
1026
  assigned_by?: string | null;
@@ -877,6 +1030,7 @@ export type Database = {
877
1030
  closed_at?: string | null;
878
1031
  created_at?: string;
879
1032
  due_date?: string | null;
1033
+ freshdesk_metadata?: Json | null;
880
1034
  hubspot_metadata?: Json | null;
881
1035
  is_deleted?: boolean;
882
1036
  label_ids?: Json | null;
@@ -886,25 +1040,24 @@ export type Database = {
886
1040
  quoted_message_id?: string | null;
887
1041
  raised_by?: string | null;
888
1042
  response_time?: number | null;
889
- status?: Database['public']['Enums']['enum_chat_tickets_status'] | null;
1043
+ status?: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
890
1044
  subject?: string;
891
1045
  ticket_id?: string;
892
- ticket_metadata?: Json | null;
893
1046
  };
894
1047
  Relationships: [
895
1048
  {
896
- foreignKeyName: 'tbl_chat_tickets_org_id_fkey';
897
- columns: ['org_id'];
1049
+ foreignKeyName: "tbl_chat_tickets_org_id_fkey";
1050
+ columns: ["org_id"];
898
1051
  isOneToOne: false;
899
- referencedRelation: 'tbl_org';
900
- referencedColumns: ['org_id'];
1052
+ referencedRelation: "tbl_org";
1053
+ referencedColumns: ["org_id"];
901
1054
  },
902
1055
  {
903
- foreignKeyName: 'tbl_chat_tickets_org_id_fkey';
904
- columns: ['org_id'];
1056
+ foreignKeyName: "tbl_chat_tickets_org_id_fkey";
1057
+ columns: ["org_id"];
905
1058
  isOneToOne: false;
906
- referencedRelation: 'view_org';
907
- referencedColumns: ['org_id'];
1059
+ referencedRelation: "view_org";
1060
+ referencedColumns: ["org_id"];
908
1061
  }
909
1062
  ];
910
1063
  };
@@ -983,18 +1136,18 @@ export type Database = {
983
1136
  };
984
1137
  Relationships: [
985
1138
  {
986
- foreignKeyName: 'tbl_chats_fkey_tbl_org_phones';
987
- columns: ['org_phone', 'org_id'];
1139
+ foreignKeyName: "tbl_chats_fkey_tbl_org_phones";
1140
+ columns: ["org_phone", "org_id"];
988
1141
  isOneToOne: false;
989
- referencedRelation: 'tbl_org_phones';
990
- referencedColumns: ['org_phone', 'org_id'];
1142
+ referencedRelation: "tbl_org_phones";
1143
+ referencedColumns: ["org_phone", "org_id"];
991
1144
  }
992
1145
  ];
993
1146
  };
994
1147
  tbl_contacts: {
995
1148
  Row: {
996
1149
  business_profile: Json | null;
997
- contact_color: Database['public']['Enums']['enum_chat_colors'] | null;
1150
+ contact_color: Database["public"]["Enums"]["enum_chat_colors"] | null;
998
1151
  contact_id: string;
999
1152
  contact_image: string | null;
1000
1153
  contact_name: string | null;
@@ -1021,7 +1174,7 @@ export type Database = {
1021
1174
  };
1022
1175
  Insert: {
1023
1176
  business_profile?: Json | null;
1024
- contact_color?: Database['public']['Enums']['enum_chat_colors'] | null;
1177
+ contact_color?: Database["public"]["Enums"]["enum_chat_colors"] | null;
1025
1178
  contact_id: string;
1026
1179
  contact_image?: string | null;
1027
1180
  contact_name?: string | null;
@@ -1048,7 +1201,7 @@ export type Database = {
1048
1201
  };
1049
1202
  Update: {
1050
1203
  business_profile?: Json | null;
1051
- contact_color?: Database['public']['Enums']['enum_chat_colors'] | null;
1204
+ contact_color?: Database["public"]["Enums"]["enum_chat_colors"] | null;
1052
1205
  contact_id?: string;
1053
1206
  contact_image?: string | null;
1054
1207
  contact_name?: string | null;
@@ -1075,18 +1228,18 @@ export type Database = {
1075
1228
  };
1076
1229
  Relationships: [
1077
1230
  {
1078
- foreignKeyName: 'tbl_contacts_org_id_fkey';
1079
- columns: ['org_id'];
1231
+ foreignKeyName: "tbl_contacts_org_id_fkey";
1232
+ columns: ["org_id"];
1080
1233
  isOneToOne: false;
1081
- referencedRelation: 'tbl_org';
1082
- referencedColumns: ['org_id'];
1234
+ referencedRelation: "tbl_org";
1235
+ referencedColumns: ["org_id"];
1083
1236
  },
1084
1237
  {
1085
- foreignKeyName: 'tbl_contacts_org_id_fkey';
1086
- columns: ['org_id'];
1238
+ foreignKeyName: "tbl_contacts_org_id_fkey";
1239
+ columns: ["org_id"];
1087
1240
  isOneToOne: false;
1088
- referencedRelation: 'view_org';
1089
- referencedColumns: ['org_id'];
1241
+ referencedRelation: "view_org";
1242
+ referencedColumns: ["org_id"];
1090
1243
  }
1091
1244
  ];
1092
1245
  };
@@ -1123,18 +1276,18 @@ export type Database = {
1123
1276
  };
1124
1277
  Relationships: [
1125
1278
  {
1126
- foreignKeyName: 'tbl_custom_properties_org_id_fkey';
1127
- columns: ['org_id'];
1279
+ foreignKeyName: "tbl_custom_properties_org_id_fkey";
1280
+ columns: ["org_id"];
1128
1281
  isOneToOne: false;
1129
- referencedRelation: 'tbl_org';
1130
- referencedColumns: ['org_id'];
1282
+ referencedRelation: "tbl_org";
1283
+ referencedColumns: ["org_id"];
1131
1284
  },
1132
1285
  {
1133
- foreignKeyName: 'tbl_custom_properties_org_id_fkey';
1134
- columns: ['org_id'];
1286
+ foreignKeyName: "tbl_custom_properties_org_id_fkey";
1287
+ columns: ["org_id"];
1135
1288
  isOneToOne: false;
1136
- referencedRelation: 'view_org';
1137
- referencedColumns: ['org_id'];
1289
+ referencedRelation: "view_org";
1290
+ referencedColumns: ["org_id"];
1138
1291
  }
1139
1292
  ];
1140
1293
  };
@@ -1144,51 +1297,51 @@ export type Database = {
1144
1297
  id: string;
1145
1298
  integration_id: string | null;
1146
1299
  integration_metadata: Json;
1147
- integration_name: Database['public']['Enums']['enum_integration_name'];
1300
+ integration_name: Database["public"]["Enums"]["enum_integration_name"];
1148
1301
  integration_type: string;
1149
1302
  is_subscribed: boolean;
1150
1303
  org_id: string;
1151
1304
  subscribed_at: string;
1152
- type: Database['public']['Enums']['enum_integration_type'];
1305
+ type: Database["public"]["Enums"]["enum_integration_type"];
1153
1306
  };
1154
1307
  Insert: {
1155
1308
  hook_url: string;
1156
1309
  id?: string;
1157
1310
  integration_id?: string | null;
1158
1311
  integration_metadata: Json;
1159
- integration_name: Database['public']['Enums']['enum_integration_name'];
1312
+ integration_name: Database["public"]["Enums"]["enum_integration_name"];
1160
1313
  integration_type: string;
1161
1314
  is_subscribed: boolean;
1162
1315
  org_id: string;
1163
1316
  subscribed_at?: string;
1164
- type: Database['public']['Enums']['enum_integration_type'];
1317
+ type: Database["public"]["Enums"]["enum_integration_type"];
1165
1318
  };
1166
1319
  Update: {
1167
1320
  hook_url?: string;
1168
1321
  id?: string;
1169
1322
  integration_id?: string | null;
1170
1323
  integration_metadata?: Json;
1171
- integration_name?: Database['public']['Enums']['enum_integration_name'];
1324
+ integration_name?: Database["public"]["Enums"]["enum_integration_name"];
1172
1325
  integration_type?: string;
1173
1326
  is_subscribed?: boolean;
1174
1327
  org_id?: string;
1175
1328
  subscribed_at?: string;
1176
- type?: Database['public']['Enums']['enum_integration_type'];
1329
+ type?: Database["public"]["Enums"]["enum_integration_type"];
1177
1330
  };
1178
1331
  Relationships: [
1179
1332
  {
1180
- foreignKeyName: 'tbl_integration_hooks_org_id_fkey';
1181
- columns: ['org_id'];
1333
+ foreignKeyName: "tbl_integration_hooks_org_id_fkey";
1334
+ columns: ["org_id"];
1182
1335
  isOneToOne: false;
1183
- referencedRelation: 'tbl_org';
1184
- referencedColumns: ['org_id'];
1336
+ referencedRelation: "tbl_org";
1337
+ referencedColumns: ["org_id"];
1185
1338
  },
1186
1339
  {
1187
- foreignKeyName: 'tbl_integration_hooks_org_id_fkey';
1188
- columns: ['org_id'];
1340
+ foreignKeyName: "tbl_integration_hooks_org_id_fkey";
1341
+ columns: ["org_id"];
1189
1342
  isOneToOne: false;
1190
- referencedRelation: 'view_org';
1191
- referencedColumns: ['org_id'];
1343
+ referencedRelation: "view_org";
1344
+ referencedColumns: ["org_id"];
1192
1345
  }
1193
1346
  ];
1194
1347
  };
@@ -1196,50 +1349,50 @@ export type Database = {
1196
1349
  Row: {
1197
1350
  created_at: string;
1198
1351
  id: string;
1199
- integration_name: Database['public']['Enums']['enum_integration_name'];
1352
+ integration_name: Database["public"]["Enums"]["enum_integration_name"];
1200
1353
  integration_type: string;
1201
1354
  metadata: Json;
1202
1355
  org_id: string;
1203
1356
  response: Json | null;
1204
1357
  success: boolean;
1205
- type: Database['public']['Enums']['enum_integration_type'];
1358
+ type: Database["public"]["Enums"]["enum_integration_type"];
1206
1359
  };
1207
1360
  Insert: {
1208
1361
  created_at?: string;
1209
1362
  id?: string;
1210
- integration_name: Database['public']['Enums']['enum_integration_name'];
1363
+ integration_name: Database["public"]["Enums"]["enum_integration_name"];
1211
1364
  integration_type: string;
1212
1365
  metadata?: Json;
1213
1366
  org_id: string;
1214
1367
  response?: Json | null;
1215
1368
  success?: boolean;
1216
- type: Database['public']['Enums']['enum_integration_type'];
1369
+ type: Database["public"]["Enums"]["enum_integration_type"];
1217
1370
  };
1218
1371
  Update: {
1219
1372
  created_at?: string;
1220
1373
  id?: string;
1221
- integration_name?: Database['public']['Enums']['enum_integration_name'];
1374
+ integration_name?: Database["public"]["Enums"]["enum_integration_name"];
1222
1375
  integration_type?: string;
1223
1376
  metadata?: Json;
1224
1377
  org_id?: string;
1225
1378
  response?: Json | null;
1226
1379
  success?: boolean;
1227
- type?: Database['public']['Enums']['enum_integration_type'];
1380
+ type?: Database["public"]["Enums"]["enum_integration_type"];
1228
1381
  };
1229
1382
  Relationships: [
1230
1383
  {
1231
- foreignKeyName: 'tbl_integration_logs_org_id_fkey';
1232
- columns: ['org_id'];
1384
+ foreignKeyName: "tbl_integration_logs_org_id_fkey";
1385
+ columns: ["org_id"];
1233
1386
  isOneToOne: false;
1234
- referencedRelation: 'tbl_org';
1235
- referencedColumns: ['org_id'];
1387
+ referencedRelation: "tbl_org";
1388
+ referencedColumns: ["org_id"];
1236
1389
  },
1237
1390
  {
1238
- foreignKeyName: 'tbl_integration_logs_org_id_fkey';
1239
- columns: ['org_id'];
1391
+ foreignKeyName: "tbl_integration_logs_org_id_fkey";
1392
+ columns: ["org_id"];
1240
1393
  isOneToOne: false;
1241
- referencedRelation: 'view_org';
1242
- referencedColumns: ['org_id'];
1394
+ referencedRelation: "view_org";
1395
+ referencedColumns: ["org_id"];
1243
1396
  }
1244
1397
  ];
1245
1398
  };
@@ -1254,7 +1407,7 @@ export type Database = {
1254
1407
  role: string;
1255
1408
  token: string;
1256
1409
  token_metadata: Json | null;
1257
- type: Database['public']['Enums']['enum_integration_type'];
1410
+ type: Database["public"]["Enums"]["enum_integration_type"];
1258
1411
  };
1259
1412
  Insert: {
1260
1413
  exp: string;
@@ -1266,7 +1419,7 @@ export type Database = {
1266
1419
  role: string;
1267
1420
  token: string;
1268
1421
  token_metadata?: Json | null;
1269
- type: Database['public']['Enums']['enum_integration_type'];
1422
+ type: Database["public"]["Enums"]["enum_integration_type"];
1270
1423
  };
1271
1424
  Update: {
1272
1425
  exp?: string;
@@ -1278,22 +1431,22 @@ export type Database = {
1278
1431
  role?: string;
1279
1432
  token?: string;
1280
1433
  token_metadata?: Json | null;
1281
- type?: Database['public']['Enums']['enum_integration_type'];
1434
+ type?: Database["public"]["Enums"]["enum_integration_type"];
1282
1435
  };
1283
1436
  Relationships: [
1284
1437
  {
1285
- foreignKeyName: 'public_tbl_integration_tokens_org_id_fkey';
1286
- columns: ['org_id'];
1438
+ foreignKeyName: "public_tbl_integration_tokens_org_id_fkey";
1439
+ columns: ["org_id"];
1287
1440
  isOneToOne: false;
1288
- referencedRelation: 'tbl_org';
1289
- referencedColumns: ['org_id'];
1441
+ referencedRelation: "tbl_org";
1442
+ referencedColumns: ["org_id"];
1290
1443
  },
1291
1444
  {
1292
- foreignKeyName: 'public_tbl_integration_tokens_org_id_fkey';
1293
- columns: ['org_id'];
1445
+ foreignKeyName: "public_tbl_integration_tokens_org_id_fkey";
1446
+ columns: ["org_id"];
1294
1447
  isOneToOne: false;
1295
- referencedRelation: 'view_org';
1296
- referencedColumns: ['org_id'];
1448
+ referencedRelation: "view_org";
1449
+ referencedColumns: ["org_id"];
1297
1450
  }
1298
1451
  ];
1299
1452
  };
@@ -1363,18 +1516,18 @@ export type Database = {
1363
1516
  };
1364
1517
  Relationships: [
1365
1518
  {
1366
- foreignKeyName: 'tbl_org_labels_org_id_fkey';
1367
- columns: ['org_id'];
1519
+ foreignKeyName: "tbl_org_labels_org_id_fkey";
1520
+ columns: ["org_id"];
1368
1521
  isOneToOne: false;
1369
- referencedRelation: 'tbl_org';
1370
- referencedColumns: ['org_id'];
1522
+ referencedRelation: "tbl_org";
1523
+ referencedColumns: ["org_id"];
1371
1524
  },
1372
1525
  {
1373
- foreignKeyName: 'tbl_org_labels_org_id_fkey';
1374
- columns: ['org_id'];
1526
+ foreignKeyName: "tbl_org_labels_org_id_fkey";
1527
+ columns: ["org_id"];
1375
1528
  isOneToOne: false;
1376
- referencedRelation: 'view_org';
1377
- referencedColumns: ['org_id'];
1529
+ referencedRelation: "view_org";
1530
+ referencedColumns: ["org_id"];
1378
1531
  }
1379
1532
  ];
1380
1533
  };
@@ -1387,13 +1540,13 @@ export type Database = {
1387
1540
  is_active: boolean;
1388
1541
  is_owner: boolean | null;
1389
1542
  label_ids: string[] | null;
1390
- member_color: Database['public']['Enums']['enum_chat_colors'];
1543
+ member_color: Database["public"]["Enums"]["enum_chat_colors"];
1391
1544
  member_image: string | null;
1392
1545
  member_name: string | null;
1393
1546
  org_id: string;
1394
1547
  org_phones: string[] | null;
1395
1548
  preferences: Json;
1396
- role: Database['public']['Enums']['enum_member_role'];
1549
+ role: Database["public"]["Enums"]["enum_member_role"];
1397
1550
  user_id: string | null;
1398
1551
  };
1399
1552
  Insert: {
@@ -1404,13 +1557,13 @@ export type Database = {
1404
1557
  is_active?: boolean;
1405
1558
  is_owner?: boolean | null;
1406
1559
  label_ids?: string[] | null;
1407
- member_color?: Database['public']['Enums']['enum_chat_colors'];
1560
+ member_color?: Database["public"]["Enums"]["enum_chat_colors"];
1408
1561
  member_image?: string | null;
1409
1562
  member_name?: string | null;
1410
1563
  org_id: string;
1411
1564
  org_phones?: string[] | null;
1412
1565
  preferences?: Json;
1413
- role?: Database['public']['Enums']['enum_member_role'];
1566
+ role?: Database["public"]["Enums"]["enum_member_role"];
1414
1567
  user_id?: string | null;
1415
1568
  };
1416
1569
  Update: {
@@ -1421,36 +1574,36 @@ export type Database = {
1421
1574
  is_active?: boolean;
1422
1575
  is_owner?: boolean | null;
1423
1576
  label_ids?: string[] | null;
1424
- member_color?: Database['public']['Enums']['enum_chat_colors'];
1577
+ member_color?: Database["public"]["Enums"]["enum_chat_colors"];
1425
1578
  member_image?: string | null;
1426
1579
  member_name?: string | null;
1427
1580
  org_id?: string;
1428
1581
  org_phones?: string[] | null;
1429
1582
  preferences?: Json;
1430
- role?: Database['public']['Enums']['enum_member_role'];
1583
+ role?: Database["public"]["Enums"]["enum_member_role"];
1431
1584
  user_id?: string | null;
1432
1585
  };
1433
1586
  Relationships: [
1434
1587
  {
1435
- foreignKeyName: 'tbl_org_members_fkey_auth_users';
1436
- columns: ['user_id'];
1588
+ foreignKeyName: "tbl_org_members_fkey_auth_users";
1589
+ columns: ["user_id"];
1437
1590
  isOneToOne: false;
1438
- referencedRelation: 'users';
1439
- referencedColumns: ['id'];
1591
+ referencedRelation: "users";
1592
+ referencedColumns: ["id"];
1440
1593
  },
1441
1594
  {
1442
- foreignKeyName: 'tbl_org_members_fkey_tbl_org';
1443
- columns: ['org_id'];
1595
+ foreignKeyName: "tbl_org_members_fkey_tbl_org";
1596
+ columns: ["org_id"];
1444
1597
  isOneToOne: false;
1445
- referencedRelation: 'tbl_org';
1446
- referencedColumns: ['org_id'];
1598
+ referencedRelation: "tbl_org";
1599
+ referencedColumns: ["org_id"];
1447
1600
  },
1448
1601
  {
1449
- foreignKeyName: 'tbl_org_members_fkey_tbl_org';
1450
- columns: ['org_id'];
1602
+ foreignKeyName: "tbl_org_members_fkey_tbl_org";
1603
+ columns: ["org_id"];
1451
1604
  isOneToOne: false;
1452
- referencedRelation: 'view_org';
1453
- referencedColumns: ['org_id'];
1605
+ referencedRelation: "view_org";
1606
+ referencedColumns: ["org_id"];
1454
1607
  }
1455
1608
  ];
1456
1609
  };
@@ -1514,32 +1667,32 @@ export type Database = {
1514
1667
  };
1515
1668
  Relationships: [
1516
1669
  {
1517
- foreignKeyName: 'tbl_org_phones_fkey_tbl_org';
1518
- columns: ['org_id'];
1670
+ foreignKeyName: "tbl_org_phones_fkey_tbl_org";
1671
+ columns: ["org_id"];
1519
1672
  isOneToOne: false;
1520
- referencedRelation: 'tbl_org';
1521
- referencedColumns: ['org_id'];
1673
+ referencedRelation: "tbl_org";
1674
+ referencedColumns: ["org_id"];
1522
1675
  },
1523
1676
  {
1524
- foreignKeyName: 'tbl_org_phones_fkey_tbl_org';
1525
- columns: ['org_id'];
1677
+ foreignKeyName: "tbl_org_phones_fkey_tbl_org";
1678
+ columns: ["org_id"];
1526
1679
  isOneToOne: false;
1527
- referencedRelation: 'view_org';
1528
- referencedColumns: ['org_id'];
1680
+ referencedRelation: "view_org";
1681
+ referencedColumns: ["org_id"];
1529
1682
  },
1530
1683
  {
1531
- foreignKeyName: 'tbl_org_phones_org_id_fkey';
1532
- columns: ['org_id'];
1684
+ foreignKeyName: "tbl_org_phones_org_id_fkey";
1685
+ columns: ["org_id"];
1533
1686
  isOneToOne: false;
1534
- referencedRelation: 'tbl_org';
1535
- referencedColumns: ['org_id'];
1687
+ referencedRelation: "tbl_org";
1688
+ referencedColumns: ["org_id"];
1536
1689
  },
1537
1690
  {
1538
- foreignKeyName: 'tbl_org_phones_org_id_fkey';
1539
- columns: ['org_id'];
1691
+ foreignKeyName: "tbl_org_phones_org_id_fkey";
1692
+ columns: ["org_id"];
1540
1693
  isOneToOne: false;
1541
- referencedRelation: 'view_org';
1542
- referencedColumns: ['org_id'];
1694
+ referencedRelation: "view_org";
1695
+ referencedColumns: ["org_id"];
1543
1696
  }
1544
1697
  ];
1545
1698
  };
@@ -1567,18 +1720,18 @@ export type Database = {
1567
1720
  };
1568
1721
  Relationships: [
1569
1722
  {
1570
- foreignKeyName: 'tbl_quick_replies_org_id_fkey';
1571
- columns: ['org_id'];
1723
+ foreignKeyName: "tbl_quick_replies_org_id_fkey";
1724
+ columns: ["org_id"];
1572
1725
  isOneToOne: false;
1573
- referencedRelation: 'tbl_org';
1574
- referencedColumns: ['org_id'];
1726
+ referencedRelation: "tbl_org";
1727
+ referencedColumns: ["org_id"];
1575
1728
  },
1576
1729
  {
1577
- foreignKeyName: 'tbl_quick_replies_org_id_fkey';
1578
- columns: ['org_id'];
1730
+ foreignKeyName: "tbl_quick_replies_org_id_fkey";
1731
+ columns: ["org_id"];
1579
1732
  isOneToOne: false;
1580
- referencedRelation: 'view_org';
1581
- referencedColumns: ['org_id'];
1733
+ referencedRelation: "view_org";
1734
+ referencedColumns: ["org_id"];
1582
1735
  }
1583
1736
  ];
1584
1737
  };
@@ -1611,7 +1764,7 @@ export type Database = {
1611
1764
  view_broadcast_logs: {
1612
1765
  Row: {
1613
1766
  broadcast_id: string | null;
1614
- broadcast_status: Database['public']['Enums']['enum_broadcast_status'] | null;
1767
+ broadcast_status: Database["public"]["Enums"]["enum_broadcast_status"] | null;
1615
1768
  created_at: string | null;
1616
1769
  delivery_percentage: number | null;
1617
1770
  failed_chats: number | null;
@@ -1630,18 +1783,18 @@ export type Database = {
1630
1783
  };
1631
1784
  Relationships: [
1632
1785
  {
1633
- foreignKeyName: 'tbl_broadcast_messages_org_id_fkey';
1634
- columns: ['org_id'];
1786
+ foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
1787
+ columns: ["org_id"];
1635
1788
  isOneToOne: false;
1636
- referencedRelation: 'tbl_org';
1637
- referencedColumns: ['org_id'];
1789
+ referencedRelation: "tbl_org";
1790
+ referencedColumns: ["org_id"];
1638
1791
  },
1639
1792
  {
1640
- foreignKeyName: 'tbl_broadcast_messages_org_id_fkey';
1641
- columns: ['org_id'];
1793
+ foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
1794
+ columns: ["org_id"];
1642
1795
  isOneToOne: false;
1643
- referencedRelation: 'view_org';
1644
- referencedColumns: ['org_id'];
1796
+ referencedRelation: "view_org";
1797
+ referencedColumns: ["org_id"];
1645
1798
  }
1646
1799
  ];
1647
1800
  };
@@ -1712,6 +1865,7 @@ export type Database = {
1712
1865
  is_enterprise: boolean | null;
1713
1866
  is_free_trial: boolean | null;
1714
1867
  is_hubspot_connected: boolean | null;
1868
+ is_freshdesk_connected: boolean | null;
1715
1869
  org_id: string | null;
1716
1870
  org_image: string | null;
1717
1871
  org_metadata: Json | null;
@@ -1733,6 +1887,7 @@ export type Database = {
1733
1887
  is_enterprise?: never;
1734
1888
  is_free_trial?: never;
1735
1889
  is_hubspot_connected?: never;
1890
+ is_freshdesk_connected?: never;
1736
1891
  org_id?: string | null;
1737
1892
  org_image?: string | null;
1738
1893
  org_metadata?: Json | null;
@@ -1754,6 +1909,7 @@ export type Database = {
1754
1909
  is_enterprise?: never;
1755
1910
  is_free_trial?: never;
1756
1911
  is_hubspot_connected?: never;
1912
+ is_freshdesk_connected?: never;
1757
1913
  org_id?: string | null;
1758
1914
  org_image?: string | null;
1759
1915
  org_metadata?: Json | null;
@@ -1802,7 +1958,7 @@ export type Database = {
1802
1958
  generate_access_token: {
1803
1959
  Args: {
1804
1960
  name_input?: string;
1805
- type_input?: Database['public']['Enums']['enum_integration_type'];
1961
+ type_input?: Database["public"]["Enums"]["enum_integration_type"];
1806
1962
  org_id_input?: string;
1807
1963
  };
1808
1964
  Returns: Json;
@@ -1812,7 +1968,7 @@ export type Database = {
1812
1968
  org_id_input?: string;
1813
1969
  org_phone_input?: string;
1814
1970
  token_id_input?: string;
1815
- token_type_input?: Database['public']['Enums']['enum_integration_type'];
1971
+ token_type_input?: Database["public"]["Enums"]["enum_integration_type"];
1816
1972
  };
1817
1973
  Returns: Json;
1818
1974
  };
@@ -1931,7 +2087,7 @@ export type Database = {
1931
2087
  };
1932
2088
  list_role_from_user: {
1933
2089
  Args: Record<PropertyKey, never>;
1934
- Returns: Database['public']['Enums']['enum_member_role'];
2090
+ Returns: Database["public"]["Enums"]["enum_member_role"];
1935
2091
  };
1936
2092
  update_labels: {
1937
2093
  Args: {
@@ -1944,12 +2100,12 @@ export type Database = {
1944
2100
  };
1945
2101
  };
1946
2102
  Enums: {
1947
- enum_broadcast_status: 'inprogress' | 'completed' | 'stopped';
1948
- enum_chat_colors: '#B4876E' | '#A5B337' | '#06CF9C' | '#25D366' | '#02A698' | '#7D9EF1' | '#007BFC' | '#5E47DE' | '#7F66FF' | '#9333EA' | '#FA6533' | '#C4532D' | '#DC2626' | '#FF2E74' | '#DB2777';
1949
- enum_chat_tickets_status: 'open' | 'inprogress' | 'closed' | 'archived';
1950
- enum_integration_name: 'org.created' | 'org.updated' | 'org.member.created' | 'org.member.updated' | 'org.phone.created' | 'org.phone.connected' | 'org.phone.disconnected' | 'org.subscription.trial_will_end' | 'chat.created' | 'chat.updated' | 'message.created' | 'message.updated' | 'message.deleted' | 'message.ack.updated' | 'reaction.created' | 'reaction.updated' | 'ticket.created' | 'ticket.updated' | 'ticket.deleted';
1951
- enum_integration_type: 'zapier' | 'pabbly' | 'api' | 'webhook' | 'hubspot' | 'freshdesk' | 'slack' | 'jira' | 'salesforce';
1952
- enum_member_role: 'admin' | 'member';
2103
+ enum_broadcast_status: "inprogress" | "completed" | "stopped";
2104
+ enum_chat_colors: "#B4876E" | "#A5B337" | "#06CF9C" | "#25D366" | "#02A698" | "#7D9EF1" | "#007BFC" | "#5E47DE" | "#7F66FF" | "#9333EA" | "#FA6533" | "#C4532D" | "#DC2626" | "#FF2E74" | "#DB2777";
2105
+ enum_chat_tickets_status: "open" | "inprogress" | "closed" | "archived";
2106
+ enum_integration_name: "org.created" | "org.updated" | "org.member.created" | "org.member.updated" | "org.phone.created" | "org.phone.connected" | "org.phone.disconnected" | "org.subscription.trial_will_end" | "chat.created" | "chat.updated" | "message.created" | "message.updated" | "message.deleted" | "message.ack.updated" | "reaction.created" | "reaction.updated" | "ticket.created" | "ticket.updated" | "ticket.deleted";
2107
+ enum_integration_type: "zapier" | "pabbly" | "api" | "webhook" | "hubspot" | "freshdesk" | "slack" | "jira" | "salesforce";
2108
+ enum_member_role: "admin" | "member";
1953
2109
  };
1954
2110
  CompositeTypes: {
1955
2111
  [_ in never]: never;
@@ -2059,11 +2215,11 @@ export type Database = {
2059
2215
  };
2060
2216
  Relationships: [
2061
2217
  {
2062
- foreignKeyName: 'objects_bucketId_fkey';
2063
- columns: ['bucket_id'];
2218
+ foreignKeyName: "objects_bucketId_fkey";
2219
+ columns: ["bucket_id"];
2064
2220
  isOneToOne: false;
2065
- referencedRelation: 'buckets';
2066
- referencedColumns: ['id'];
2221
+ referencedRelation: "buckets";
2222
+ referencedColumns: ["id"];
2067
2223
  }
2068
2224
  ];
2069
2225
  };
@@ -2100,11 +2256,11 @@ export type Database = {
2100
2256
  };
2101
2257
  Relationships: [
2102
2258
  {
2103
- foreignKeyName: 's3_multipart_uploads_bucket_id_fkey';
2104
- columns: ['bucket_id'];
2259
+ foreignKeyName: "s3_multipart_uploads_bucket_id_fkey";
2260
+ columns: ["bucket_id"];
2105
2261
  isOneToOne: false;
2106
- referencedRelation: 'buckets';
2107
- referencedColumns: ['id'];
2262
+ referencedRelation: "buckets";
2263
+ referencedColumns: ["id"];
2108
2264
  }
2109
2265
  ];
2110
2266
  };
@@ -2147,18 +2303,18 @@ export type Database = {
2147
2303
  };
2148
2304
  Relationships: [
2149
2305
  {
2150
- foreignKeyName: 's3_multipart_uploads_parts_bucket_id_fkey';
2151
- columns: ['bucket_id'];
2306
+ foreignKeyName: "s3_multipart_uploads_parts_bucket_id_fkey";
2307
+ columns: ["bucket_id"];
2152
2308
  isOneToOne: false;
2153
- referencedRelation: 'buckets';
2154
- referencedColumns: ['id'];
2309
+ referencedRelation: "buckets";
2310
+ referencedColumns: ["id"];
2155
2311
  },
2156
2312
  {
2157
- foreignKeyName: 's3_multipart_uploads_parts_upload_id_fkey';
2158
- columns: ['upload_id'];
2313
+ foreignKeyName: "s3_multipart_uploads_parts_upload_id_fkey";
2314
+ columns: ["upload_id"];
2159
2315
  isOneToOne: false;
2160
- referencedRelation: 's3_multipart_uploads';
2161
- referencedColumns: ['id'];
2316
+ referencedRelation: "s3_multipart_uploads";
2317
+ referencedColumns: ["id"];
2162
2318
  }
2163
2319
  ];
2164
2320
  };
@@ -2261,45 +2417,45 @@ export type Database = {
2261
2417
  };
2262
2418
  };
2263
2419
  };
2264
- type PublicSchema = Database[Extract<keyof Database, 'public'>];
2265
- export type Tables<PublicTableNameOrOptions extends keyof (PublicSchema['Tables'] & PublicSchema['Views']) | {
2420
+ type PublicSchema = Database[Extract<keyof Database, "public">];
2421
+ export type Tables<PublicTableNameOrOptions extends keyof (PublicSchema["Tables"] & PublicSchema["Views"]) | {
2266
2422
  schema: keyof Database;
2267
2423
  }, TableName extends PublicTableNameOrOptions extends {
2268
2424
  schema: keyof Database;
2269
- } ? keyof (Database[PublicTableNameOrOptions['schema']]['Tables'] & Database[PublicTableNameOrOptions['schema']]['Views']) : never = never> = PublicTableNameOrOptions extends {
2425
+ } ? keyof (Database[PublicTableNameOrOptions["schema"]]["Tables"] & Database[PublicTableNameOrOptions["schema"]]["Views"]) : never = never> = PublicTableNameOrOptions extends {
2270
2426
  schema: keyof Database;
2271
- } ? (Database[PublicTableNameOrOptions['schema']]['Tables'] & Database[PublicTableNameOrOptions['schema']]['Views'])[TableName] extends {
2427
+ } ? (Database[PublicTableNameOrOptions["schema"]]["Tables"] & Database[PublicTableNameOrOptions["schema"]]["Views"])[TableName] extends {
2272
2428
  Row: infer R;
2273
- } ? R : never : PublicTableNameOrOptions extends keyof (PublicSchema['Tables'] & PublicSchema['Views']) ? (PublicSchema['Tables'] & PublicSchema['Views'])[PublicTableNameOrOptions] extends {
2429
+ } ? R : never : PublicTableNameOrOptions extends keyof (PublicSchema["Tables"] & PublicSchema["Views"]) ? (PublicSchema["Tables"] & PublicSchema["Views"])[PublicTableNameOrOptions] extends {
2274
2430
  Row: infer R;
2275
2431
  } ? R : never : never;
2276
- export type TablesInsert<PublicTableNameOrOptions extends keyof PublicSchema['Tables'] | {
2432
+ export type TablesInsert<PublicTableNameOrOptions extends keyof PublicSchema["Tables"] | {
2277
2433
  schema: keyof Database;
2278
2434
  }, TableName extends PublicTableNameOrOptions extends {
2279
2435
  schema: keyof Database;
2280
- } ? keyof Database[PublicTableNameOrOptions['schema']]['Tables'] : never = never> = PublicTableNameOrOptions extends {
2436
+ } ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"] : never = never> = PublicTableNameOrOptions extends {
2281
2437
  schema: keyof Database;
2282
- } ? Database[PublicTableNameOrOptions['schema']]['Tables'][TableName] extends {
2438
+ } ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
2283
2439
  Insert: infer I;
2284
- } ? I : never : PublicTableNameOrOptions extends keyof PublicSchema['Tables'] ? PublicSchema['Tables'][PublicTableNameOrOptions] extends {
2440
+ } ? I : never : PublicTableNameOrOptions extends keyof PublicSchema["Tables"] ? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
2285
2441
  Insert: infer I;
2286
2442
  } ? I : never : never;
2287
- export type TablesUpdate<PublicTableNameOrOptions extends keyof PublicSchema['Tables'] | {
2443
+ export type TablesUpdate<PublicTableNameOrOptions extends keyof PublicSchema["Tables"] | {
2288
2444
  schema: keyof Database;
2289
2445
  }, TableName extends PublicTableNameOrOptions extends {
2290
2446
  schema: keyof Database;
2291
- } ? keyof Database[PublicTableNameOrOptions['schema']]['Tables'] : never = never> = PublicTableNameOrOptions extends {
2447
+ } ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"] : never = never> = PublicTableNameOrOptions extends {
2292
2448
  schema: keyof Database;
2293
- } ? Database[PublicTableNameOrOptions['schema']]['Tables'][TableName] extends {
2449
+ } ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
2294
2450
  Update: infer U;
2295
- } ? U : never : PublicTableNameOrOptions extends keyof PublicSchema['Tables'] ? PublicSchema['Tables'][PublicTableNameOrOptions] extends {
2451
+ } ? U : never : PublicTableNameOrOptions extends keyof PublicSchema["Tables"] ? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
2296
2452
  Update: infer U;
2297
2453
  } ? U : never : never;
2298
- export type Enums<PublicEnumNameOrOptions extends keyof PublicSchema['Enums'] | {
2454
+ export type Enums<PublicEnumNameOrOptions extends keyof PublicSchema["Enums"] | {
2299
2455
  schema: keyof Database;
2300
2456
  }, EnumName extends PublicEnumNameOrOptions extends {
2301
2457
  schema: keyof Database;
2302
- } ? keyof Database[PublicEnumNameOrOptions['schema']]['Enums'] : never = never> = PublicEnumNameOrOptions extends {
2458
+ } ? keyof Database[PublicEnumNameOrOptions["schema"]]["Enums"] : never = never> = PublicEnumNameOrOptions extends {
2303
2459
  schema: keyof Database;
2304
- } ? Database[PublicEnumNameOrOptions['schema']]['Enums'][EnumName] : PublicEnumNameOrOptions extends keyof PublicSchema['Enums'] ? PublicSchema['Enums'][PublicEnumNameOrOptions] : never;
2460
+ } ? Database[PublicEnumNameOrOptions["schema"]]["Enums"][EnumName] : PublicEnumNameOrOptions extends keyof PublicSchema["Enums"] ? PublicSchema["Enums"][PublicEnumNameOrOptions] : never;
2305
2461
  export {};