@periskope/types 0.6.88 → 0.6.90

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  export type Json = {
2
2
  [key: string]: any;
3
3
  } | any;
4
- export type Database = {
4
+ export interface Database {
5
5
  graphql_public: {
6
6
  Tables: {
7
7
  [_ in never]: never;
@@ -76,24 +76,28 @@ export type Database = {
76
76
  {
77
77
  foreignKeyName: 'tbl_broadcast_logs_broadcast_id_fkey';
78
78
  columns: ['broadcast_id'];
79
+ isOneToOne: false;
79
80
  referencedRelation: 'tbl_broadcast_messages';
80
81
  referencedColumns: ['broadcast_id'];
81
82
  },
82
83
  {
83
84
  foreignKeyName: 'tbl_broadcast_logs_broadcast_id_fkey';
84
85
  columns: ['broadcast_id'];
86
+ isOneToOne: false;
85
87
  referencedRelation: 'view_broadcast_logs';
86
88
  referencedColumns: ['broadcast_id'];
87
89
  },
88
90
  {
89
91
  foreignKeyName: 'tbl_broadcast_logs_org_id_fkey';
90
92
  columns: ['org_id'];
93
+ isOneToOne: false;
91
94
  referencedRelation: 'tbl_org';
92
95
  referencedColumns: ['org_id'];
93
96
  },
94
97
  {
95
98
  foreignKeyName: 'tbl_broadcast_logs_org_id_fkey';
96
99
  columns: ['org_id'];
100
+ isOneToOne: false;
97
101
  referencedRelation: 'view_org';
98
102
  referencedColumns: ['org_id'];
99
103
  }
@@ -102,7 +106,7 @@ export type Database = {
102
106
  tbl_broadcast_messages: {
103
107
  Row: {
104
108
  broadcast_id: string;
105
- broadcast_status: string | null;
109
+ broadcast_status: Database['public']['Enums']['enum_broadcast_status'] | null;
106
110
  chat_ids: string[] | null;
107
111
  created_at: string;
108
112
  message_payload: Json | null;
@@ -111,10 +115,11 @@ export type Database = {
111
115
  performed_at: string | null;
112
116
  performed_by: string | null;
113
117
  scheduled_at: string | null;
118
+ variables: Json | null;
114
119
  };
115
120
  Insert: {
116
121
  broadcast_id?: string;
117
- broadcast_status?: string | null;
122
+ broadcast_status?: Database['public']['Enums']['enum_broadcast_status'] | null;
118
123
  chat_ids?: string[] | null;
119
124
  created_at?: string;
120
125
  message_payload?: Json | null;
@@ -123,10 +128,11 @@ export type Database = {
123
128
  performed_at?: string | null;
124
129
  performed_by?: string | null;
125
130
  scheduled_at?: string | null;
131
+ variables?: Json | null;
126
132
  };
127
133
  Update: {
128
134
  broadcast_id?: string;
129
- broadcast_status?: string | null;
135
+ broadcast_status?: Database['public']['Enums']['enum_broadcast_status'] | null;
130
136
  chat_ids?: string[] | null;
131
137
  created_at?: string;
132
138
  message_payload?: Json | null;
@@ -135,17 +141,20 @@ export type Database = {
135
141
  performed_at?: string | null;
136
142
  performed_by?: string | null;
137
143
  scheduled_at?: string | null;
144
+ variables?: Json | null;
138
145
  };
139
146
  Relationships: [
140
147
  {
141
148
  foreignKeyName: 'tbl_broadcast_messages_org_id_fkey';
142
149
  columns: ['org_id'];
150
+ isOneToOne: false;
143
151
  referencedRelation: 'tbl_org';
144
152
  referencedColumns: ['org_id'];
145
153
  },
146
154
  {
147
155
  foreignKeyName: 'tbl_broadcast_messages_org_id_fkey';
148
156
  columns: ['org_id'];
157
+ isOneToOne: false;
149
158
  referencedRelation: 'view_org';
150
159
  referencedColumns: ['org_id'];
151
160
  }
@@ -159,6 +168,7 @@ export type Database = {
159
168
  template_id: string;
160
169
  template_name: string | null;
161
170
  updated_at: string | null;
171
+ variable_names: Json | null;
162
172
  };
163
173
  Insert: {
164
174
  created_at?: string;
@@ -167,6 +177,7 @@ export type Database = {
167
177
  template_id?: string;
168
178
  template_name?: string | null;
169
179
  updated_at?: string | null;
180
+ variable_names?: Json | null;
170
181
  };
171
182
  Update: {
172
183
  created_at?: string;
@@ -175,17 +186,20 @@ export type Database = {
175
186
  template_id?: string;
176
187
  template_name?: string | null;
177
188
  updated_at?: string | null;
189
+ variable_names?: Json | null;
178
190
  };
179
191
  Relationships: [
180
192
  {
181
193
  foreignKeyName: 'tbl_broadcast_templates_org_id_fkey';
182
194
  columns: ['org_id'];
195
+ isOneToOne: false;
183
196
  referencedRelation: 'tbl_org';
184
197
  referencedColumns: ['org_id'];
185
198
  },
186
199
  {
187
200
  foreignKeyName: 'tbl_broadcast_templates_org_id_fkey';
188
201
  columns: ['org_id'];
202
+ isOneToOne: false;
189
203
  referencedRelation: 'view_org';
190
204
  referencedColumns: ['org_id'];
191
205
  }
@@ -223,6 +237,7 @@ export type Database = {
223
237
  {
224
238
  foreignKeyName: 'tbl_chat_access_org_id_email_fkey';
225
239
  columns: ['org_id', 'email'];
240
+ isOneToOne: false;
226
241
  referencedRelation: 'tbl_org_members';
227
242
  referencedColumns: ['org_id', 'email'];
228
243
  }
@@ -383,6 +398,7 @@ export type Database = {
383
398
  {
384
399
  foreignKeyName: 'tbl_chat_messages_fkey_tbl_org_phones';
385
400
  columns: ['org_phone', 'org_id'];
401
+ isOneToOne: false;
386
402
  referencedRelation: 'tbl_org_phones';
387
403
  referencedColumns: ['org_phone', 'org_id'];
388
404
  }
@@ -432,6 +448,7 @@ export type Database = {
432
448
  {
433
449
  foreignKeyName: 'tbl_chat_notifications_fkey_tbl_org_phones';
434
450
  columns: ['org_id', 'org_phone'];
451
+ isOneToOne: false;
435
452
  referencedRelation: 'tbl_org_phones';
436
453
  referencedColumns: ['org_id', 'org_phone'];
437
454
  }
@@ -469,6 +486,7 @@ export type Database = {
469
486
  {
470
487
  foreignKeyName: 'tbl_chat_participants_fkey_tbl_chats';
471
488
  columns: ['org_id', 'org_phone', 'chat_id'];
489
+ isOneToOne: false;
472
490
  referencedRelation: 'tbl_chats';
473
491
  referencedColumns: ['org_id', 'org_phone', 'chat_id'];
474
492
  }
@@ -557,6 +575,7 @@ export type Database = {
557
575
  {
558
576
  foreignKeyName: 'tbl_chat_reactions_fkey_tbl_org_phones';
559
577
  columns: ['org_id', 'org_phone'];
578
+ isOneToOne: false;
560
579
  referencedRelation: 'tbl_org_phones';
561
580
  referencedColumns: ['org_id', 'org_phone'];
562
581
  }
@@ -621,12 +640,14 @@ export type Database = {
621
640
  {
622
641
  foreignKeyName: 'tbl_chat_tickets_org_id_fkey';
623
642
  columns: ['org_id'];
643
+ isOneToOne: false;
624
644
  referencedRelation: 'tbl_org';
625
645
  referencedColumns: ['org_id'];
626
646
  },
627
647
  {
628
648
  foreignKeyName: 'tbl_chat_tickets_org_id_fkey';
629
649
  columns: ['org_id'];
650
+ isOneToOne: false;
630
651
  referencedRelation: 'view_org';
631
652
  referencedColumns: ['org_id'];
632
653
  }
@@ -709,6 +730,7 @@ export type Database = {
709
730
  {
710
731
  foreignKeyName: 'tbl_chats_fkey_tbl_org_phones';
711
732
  columns: ['org_phone', 'org_id'];
733
+ isOneToOne: false;
712
734
  referencedRelation: 'tbl_org_phones';
713
735
  referencedColumns: ['org_phone', 'org_id'];
714
736
  }
@@ -800,12 +822,14 @@ export type Database = {
800
822
  {
801
823
  foreignKeyName: 'tbl_contacts_org_id_fkey';
802
824
  columns: ['org_id'];
825
+ isOneToOne: false;
803
826
  referencedRelation: 'tbl_org';
804
827
  referencedColumns: ['org_id'];
805
828
  },
806
829
  {
807
830
  foreignKeyName: 'tbl_contacts_org_id_fkey';
808
831
  columns: ['org_id'];
832
+ isOneToOne: false;
809
833
  referencedRelation: 'view_org';
810
834
  referencedColumns: ['org_id'];
811
835
  }
@@ -846,12 +870,14 @@ export type Database = {
846
870
  {
847
871
  foreignKeyName: 'tbl_custom_properties_org_id_fkey';
848
872
  columns: ['org_id'];
873
+ isOneToOne: false;
849
874
  referencedRelation: 'tbl_org';
850
875
  referencedColumns: ['org_id'];
851
876
  },
852
877
  {
853
878
  foreignKeyName: 'tbl_custom_properties_org_id_fkey';
854
879
  columns: ['org_id'];
880
+ isOneToOne: false;
855
881
  referencedRelation: 'view_org';
856
882
  referencedColumns: ['org_id'];
857
883
  }
@@ -898,12 +924,14 @@ export type Database = {
898
924
  {
899
925
  foreignKeyName: 'tbl_integration_hooks_org_id_fkey';
900
926
  columns: ['org_id'];
927
+ isOneToOne: false;
901
928
  referencedRelation: 'tbl_org';
902
929
  referencedColumns: ['org_id'];
903
930
  },
904
931
  {
905
932
  foreignKeyName: 'tbl_integration_hooks_org_id_fkey';
906
933
  columns: ['org_id'];
934
+ isOneToOne: false;
907
935
  referencedRelation: 'view_org';
908
936
  referencedColumns: ['org_id'];
909
937
  }
@@ -947,12 +975,14 @@ export type Database = {
947
975
  {
948
976
  foreignKeyName: 'tbl_integration_logs_org_id_fkey';
949
977
  columns: ['org_id'];
978
+ isOneToOne: false;
950
979
  referencedRelation: 'tbl_org';
951
980
  referencedColumns: ['org_id'];
952
981
  },
953
982
  {
954
983
  foreignKeyName: 'tbl_integration_logs_org_id_fkey';
955
984
  columns: ['org_id'];
985
+ isOneToOne: false;
956
986
  referencedRelation: 'view_org';
957
987
  referencedColumns: ['org_id'];
958
988
  }
@@ -999,12 +1029,14 @@ export type Database = {
999
1029
  {
1000
1030
  foreignKeyName: 'public_tbl_integration_tokens_org_id_fkey';
1001
1031
  columns: ['org_id'];
1032
+ isOneToOne: false;
1002
1033
  referencedRelation: 'tbl_org';
1003
1034
  referencedColumns: ['org_id'];
1004
1035
  },
1005
1036
  {
1006
1037
  foreignKeyName: 'public_tbl_integration_tokens_org_id_fkey';
1007
1038
  columns: ['org_id'];
1039
+ isOneToOne: false;
1008
1040
  referencedRelation: 'view_org';
1009
1041
  referencedColumns: ['org_id'];
1010
1042
  }
@@ -1078,12 +1110,14 @@ export type Database = {
1078
1110
  {
1079
1111
  foreignKeyName: 'tbl_org_labels_org_id_fkey';
1080
1112
  columns: ['org_id'];
1113
+ isOneToOne: false;
1081
1114
  referencedRelation: 'tbl_org';
1082
1115
  referencedColumns: ['org_id'];
1083
1116
  },
1084
1117
  {
1085
1118
  foreignKeyName: 'tbl_org_labels_org_id_fkey';
1086
1119
  columns: ['org_id'];
1120
+ isOneToOne: false;
1087
1121
  referencedRelation: 'view_org';
1088
1122
  referencedColumns: ['org_id'];
1089
1123
  }
@@ -1145,18 +1179,21 @@ export type Database = {
1145
1179
  {
1146
1180
  foreignKeyName: 'tbl_org_members_fkey_auth_users';
1147
1181
  columns: ['user_id'];
1182
+ isOneToOne: false;
1148
1183
  referencedRelation: 'users';
1149
1184
  referencedColumns: ['id'];
1150
1185
  },
1151
1186
  {
1152
1187
  foreignKeyName: 'tbl_org_members_fkey_tbl_org';
1153
1188
  columns: ['org_id'];
1189
+ isOneToOne: false;
1154
1190
  referencedRelation: 'tbl_org';
1155
1191
  referencedColumns: ['org_id'];
1156
1192
  },
1157
1193
  {
1158
1194
  foreignKeyName: 'tbl_org_members_fkey_tbl_org';
1159
1195
  columns: ['org_id'];
1196
+ isOneToOne: false;
1160
1197
  referencedRelation: 'view_org';
1161
1198
  referencedColumns: ['org_id'];
1162
1199
  }
@@ -1221,24 +1258,28 @@ export type Database = {
1221
1258
  {
1222
1259
  foreignKeyName: 'tbl_org_phones_fkey_tbl_org';
1223
1260
  columns: ['org_id'];
1261
+ isOneToOne: false;
1224
1262
  referencedRelation: 'tbl_org';
1225
1263
  referencedColumns: ['org_id'];
1226
1264
  },
1227
1265
  {
1228
1266
  foreignKeyName: 'tbl_org_phones_fkey_tbl_org';
1229
1267
  columns: ['org_id'];
1268
+ isOneToOne: false;
1230
1269
  referencedRelation: 'view_org';
1231
1270
  referencedColumns: ['org_id'];
1232
1271
  },
1233
1272
  {
1234
1273
  foreignKeyName: 'tbl_org_phones_org_id_fkey';
1235
1274
  columns: ['org_id'];
1275
+ isOneToOne: false;
1236
1276
  referencedRelation: 'tbl_org';
1237
1277
  referencedColumns: ['org_id'];
1238
1278
  },
1239
1279
  {
1240
1280
  foreignKeyName: 'tbl_org_phones_org_id_fkey';
1241
1281
  columns: ['org_id'];
1282
+ isOneToOne: false;
1242
1283
  referencedRelation: 'view_org';
1243
1284
  referencedColumns: ['org_id'];
1244
1285
  }
@@ -1270,12 +1311,14 @@ export type Database = {
1270
1311
  {
1271
1312
  foreignKeyName: 'tbl_quick_replies_org_id_fkey';
1272
1313
  columns: ['org_id'];
1314
+ isOneToOne: false;
1273
1315
  referencedRelation: 'tbl_org';
1274
1316
  referencedColumns: ['org_id'];
1275
1317
  },
1276
1318
  {
1277
1319
  foreignKeyName: 'tbl_quick_replies_org_id_fkey';
1278
1320
  columns: ['org_id'];
1321
+ isOneToOne: false;
1279
1322
  referencedRelation: 'view_org';
1280
1323
  referencedColumns: ['org_id'];
1281
1324
  }
@@ -1310,6 +1353,7 @@ export type Database = {
1310
1353
  view_broadcast_logs: {
1311
1354
  Row: {
1312
1355
  broadcast_id: string | null;
1356
+ broadcast_status: Database['public']['Enums']['enum_broadcast_status'] | null;
1313
1357
  created_at: string | null;
1314
1358
  delivery_percentage: number | null;
1315
1359
  failed_chats: number | null;
@@ -1330,12 +1374,14 @@ export type Database = {
1330
1374
  {
1331
1375
  foreignKeyName: 'tbl_broadcast_messages_org_id_fkey';
1332
1376
  columns: ['org_id'];
1377
+ isOneToOne: false;
1333
1378
  referencedRelation: 'tbl_org';
1334
1379
  referencedColumns: ['org_id'];
1335
1380
  },
1336
1381
  {
1337
1382
  foreignKeyName: 'tbl_broadcast_messages_org_id_fkey';
1338
1383
  columns: ['org_id'];
1384
+ isOneToOne: false;
1339
1385
  referencedRelation: 'view_org';
1340
1386
  referencedColumns: ['org_id'];
1341
1387
  }
@@ -1497,7 +1543,8 @@ export type Database = {
1497
1543
  Args: {
1498
1544
  org_id_input: string;
1499
1545
  contact_ids_input?: string[];
1500
- last_updated_at_input?: string;
1546
+ with_chats?: boolean;
1547
+ with_name?: boolean;
1501
1548
  };
1502
1549
  Returns: Json;
1503
1550
  };
@@ -1590,6 +1637,7 @@ export type Database = {
1590
1637
  };
1591
1638
  };
1592
1639
  Enums: {
1640
+ enum_broadcast_status: 'inprogress' | 'completed' | 'stopped';
1593
1641
  enum_chat_colors: '#B4876E' | '#A5B337' | '#06CF9C' | '#25D366' | '#02A698' | '#7D9EF1' | '#007BFC' | '#5E47DE' | '#7F66FF' | '#9333EA' | '#FA6533' | '#C4532D' | '#DC2626' | '#FF2E74' | '#DB2777';
1594
1642
  enum_chat_tickets_status: 'open' | 'inprogress' | 'closed' | 'archived';
1595
1643
  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';
@@ -1611,6 +1659,7 @@ export type Database = {
1611
1659
  id: string;
1612
1660
  name: string;
1613
1661
  owner: string | null;
1662
+ owner_id: string | null;
1614
1663
  public: boolean | null;
1615
1664
  updated_at: string | null;
1616
1665
  };
@@ -1622,6 +1671,7 @@ export type Database = {
1622
1671
  id: string;
1623
1672
  name: string;
1624
1673
  owner?: string | null;
1674
+ owner_id?: string | null;
1625
1675
  public?: boolean | null;
1626
1676
  updated_at?: string | null;
1627
1677
  };
@@ -1633,17 +1683,11 @@ export type Database = {
1633
1683
  id?: string;
1634
1684
  name?: string;
1635
1685
  owner?: string | null;
1686
+ owner_id?: string | null;
1636
1687
  public?: boolean | null;
1637
1688
  updated_at?: string | null;
1638
1689
  };
1639
- Relationships: [
1640
- {
1641
- foreignKeyName: 'buckets_owner_fkey';
1642
- columns: ['owner'];
1643
- referencedRelation: 'users';
1644
- referencedColumns: ['id'];
1645
- }
1646
- ];
1690
+ Relationships: [];
1647
1691
  };
1648
1692
  migrations: {
1649
1693
  Row: {
@@ -1675,6 +1719,7 @@ export type Database = {
1675
1719
  metadata: Json | null;
1676
1720
  name: string | null;
1677
1721
  owner: string | null;
1722
+ owner_id: string | null;
1678
1723
  path_tokens: string[] | null;
1679
1724
  updated_at: string | null;
1680
1725
  version: string | null;
@@ -1687,6 +1732,7 @@ export type Database = {
1687
1732
  metadata?: Json | null;
1688
1733
  name?: string | null;
1689
1734
  owner?: string | null;
1735
+ owner_id?: string | null;
1690
1736
  path_tokens?: string[] | null;
1691
1737
  updated_at?: string | null;
1692
1738
  version?: string | null;
@@ -1699,6 +1745,7 @@ export type Database = {
1699
1745
  metadata?: Json | null;
1700
1746
  name?: string | null;
1701
1747
  owner?: string | null;
1748
+ owner_id?: string | null;
1702
1749
  path_tokens?: string[] | null;
1703
1750
  updated_at?: string | null;
1704
1751
  version?: string | null;
@@ -1707,8 +1754,104 @@ export type Database = {
1707
1754
  {
1708
1755
  foreignKeyName: 'objects_bucketId_fkey';
1709
1756
  columns: ['bucket_id'];
1757
+ isOneToOne: false;
1758
+ referencedRelation: 'buckets';
1759
+ referencedColumns: ['id'];
1760
+ }
1761
+ ];
1762
+ };
1763
+ s3_multipart_uploads: {
1764
+ Row: {
1765
+ bucket_id: string;
1766
+ created_at: string;
1767
+ id: string;
1768
+ in_progress_size: number;
1769
+ key: string;
1770
+ owner_id: string | null;
1771
+ upload_signature: string;
1772
+ version: string;
1773
+ };
1774
+ Insert: {
1775
+ bucket_id: string;
1776
+ created_at?: string;
1777
+ id: string;
1778
+ in_progress_size?: number;
1779
+ key: string;
1780
+ owner_id?: string | null;
1781
+ upload_signature: string;
1782
+ version: string;
1783
+ };
1784
+ Update: {
1785
+ bucket_id?: string;
1786
+ created_at?: string;
1787
+ id?: string;
1788
+ in_progress_size?: number;
1789
+ key?: string;
1790
+ owner_id?: string | null;
1791
+ upload_signature?: string;
1792
+ version?: string;
1793
+ };
1794
+ Relationships: [
1795
+ {
1796
+ foreignKeyName: 's3_multipart_uploads_bucket_id_fkey';
1797
+ columns: ['bucket_id'];
1798
+ isOneToOne: false;
1799
+ referencedRelation: 'buckets';
1800
+ referencedColumns: ['id'];
1801
+ }
1802
+ ];
1803
+ };
1804
+ s3_multipart_uploads_parts: {
1805
+ Row: {
1806
+ bucket_id: string;
1807
+ created_at: string;
1808
+ etag: string;
1809
+ id: string;
1810
+ key: string;
1811
+ owner_id: string | null;
1812
+ part_number: number;
1813
+ size: number;
1814
+ upload_id: string;
1815
+ version: string;
1816
+ };
1817
+ Insert: {
1818
+ bucket_id: string;
1819
+ created_at?: string;
1820
+ etag: string;
1821
+ id?: string;
1822
+ key: string;
1823
+ owner_id?: string | null;
1824
+ part_number: number;
1825
+ size?: number;
1826
+ upload_id: string;
1827
+ version: string;
1828
+ };
1829
+ Update: {
1830
+ bucket_id?: string;
1831
+ created_at?: string;
1832
+ etag?: string;
1833
+ id?: string;
1834
+ key?: string;
1835
+ owner_id?: string | null;
1836
+ part_number?: number;
1837
+ size?: number;
1838
+ upload_id?: string;
1839
+ version?: string;
1840
+ };
1841
+ Relationships: [
1842
+ {
1843
+ foreignKeyName: 's3_multipart_uploads_parts_bucket_id_fkey';
1844
+ columns: ['bucket_id'];
1845
+ isOneToOne: false;
1710
1846
  referencedRelation: 'buckets';
1711
1847
  referencedColumns: ['id'];
1848
+ },
1849
+ {
1850
+ foreignKeyName: 's3_multipart_uploads_parts_upload_id_fkey';
1851
+ columns: ['upload_id'];
1852
+ isOneToOne: false;
1853
+ referencedRelation: 's3_multipart_uploads';
1854
+ referencedColumns: ['id'];
1712
1855
  }
1713
1856
  ];
1714
1857
  };
@@ -1751,6 +1894,37 @@ export type Database = {
1751
1894
  bucket_id: string;
1752
1895
  }[];
1753
1896
  };
1897
+ list_multipart_uploads_with_delimiter: {
1898
+ Args: {
1899
+ bucket_id: string;
1900
+ prefix_param: string;
1901
+ delimiter_param: string;
1902
+ max_keys?: number;
1903
+ next_key_token?: string;
1904
+ next_upload_token?: string;
1905
+ };
1906
+ Returns: {
1907
+ key: string;
1908
+ id: string;
1909
+ created_at: string;
1910
+ }[];
1911
+ };
1912
+ list_objects_with_delimiter: {
1913
+ Args: {
1914
+ bucket_id: string;
1915
+ prefix_param: string;
1916
+ delimiter_param: string;
1917
+ max_keys?: number;
1918
+ start_after?: string;
1919
+ next_token?: string;
1920
+ };
1921
+ Returns: {
1922
+ name: string;
1923
+ id: string;
1924
+ metadata: Json;
1925
+ updated_at: string;
1926
+ }[];
1927
+ };
1754
1928
  search: {
1755
1929
  Args: {
1756
1930
  prefix: string;
@@ -1779,9 +1953,8 @@ export type Database = {
1779
1953
  [_ in never]: never;
1780
1954
  };
1781
1955
  };
1782
- };
1783
- type PublicSchema = Database[Extract<keyof Database, 'public'>];
1784
- export type Tables<PublicTableNameOrOptions extends keyof (PublicSchema['Tables'] & PublicSchema['Views']) | {
1956
+ }
1957
+ export type Tables<PublicTableNameOrOptions extends keyof (Database['public']['Tables'] & Database['public']['Views']) | {
1785
1958
  schema: keyof Database;
1786
1959
  }, TableName extends PublicTableNameOrOptions extends {
1787
1960
  schema: keyof Database;
@@ -1789,10 +1962,10 @@ export type Tables<PublicTableNameOrOptions extends keyof (PublicSchema['Tables'
1789
1962
  schema: keyof Database;
1790
1963
  } ? (Database[PublicTableNameOrOptions['schema']]['Tables'] & Database[PublicTableNameOrOptions['schema']]['Views'])[TableName] extends {
1791
1964
  Row: infer R;
1792
- } ? R : never : PublicTableNameOrOptions extends keyof (PublicSchema['Tables'] & PublicSchema['Views']) ? (PublicSchema['Tables'] & PublicSchema['Views'])[PublicTableNameOrOptions] extends {
1965
+ } ? R : never : PublicTableNameOrOptions extends keyof (Database['public']['Tables'] & Database['public']['Views']) ? (Database['public']['Tables'] & Database['public']['Views'])[PublicTableNameOrOptions] extends {
1793
1966
  Row: infer R;
1794
1967
  } ? R : never : never;
1795
- export type TablesInsert<PublicTableNameOrOptions extends keyof PublicSchema['Tables'] | {
1968
+ export type TablesInsert<PublicTableNameOrOptions extends keyof Database['public']['Tables'] | {
1796
1969
  schema: keyof Database;
1797
1970
  }, TableName extends PublicTableNameOrOptions extends {
1798
1971
  schema: keyof Database;
@@ -1800,10 +1973,10 @@ export type TablesInsert<PublicTableNameOrOptions extends keyof PublicSchema['Ta
1800
1973
  schema: keyof Database;
1801
1974
  } ? Database[PublicTableNameOrOptions['schema']]['Tables'][TableName] extends {
1802
1975
  Insert: infer I;
1803
- } ? I : never : PublicTableNameOrOptions extends keyof PublicSchema['Tables'] ? PublicSchema['Tables'][PublicTableNameOrOptions] extends {
1976
+ } ? I : never : PublicTableNameOrOptions extends keyof Database['public']['Tables'] ? Database['public']['Tables'][PublicTableNameOrOptions] extends {
1804
1977
  Insert: infer I;
1805
1978
  } ? I : never : never;
1806
- export type TablesUpdate<PublicTableNameOrOptions extends keyof PublicSchema['Tables'] | {
1979
+ export type TablesUpdate<PublicTableNameOrOptions extends keyof Database['public']['Tables'] | {
1807
1980
  schema: keyof Database;
1808
1981
  }, TableName extends PublicTableNameOrOptions extends {
1809
1982
  schema: keyof Database;
@@ -1811,14 +1984,13 @@ export type TablesUpdate<PublicTableNameOrOptions extends keyof PublicSchema['Ta
1811
1984
  schema: keyof Database;
1812
1985
  } ? Database[PublicTableNameOrOptions['schema']]['Tables'][TableName] extends {
1813
1986
  Update: infer U;
1814
- } ? U : never : PublicTableNameOrOptions extends keyof PublicSchema['Tables'] ? PublicSchema['Tables'][PublicTableNameOrOptions] extends {
1987
+ } ? U : never : PublicTableNameOrOptions extends keyof Database['public']['Tables'] ? Database['public']['Tables'][PublicTableNameOrOptions] extends {
1815
1988
  Update: infer U;
1816
1989
  } ? U : never : never;
1817
- export type Enums<PublicEnumNameOrOptions extends keyof PublicSchema['Enums'] | {
1990
+ export type Enums<PublicEnumNameOrOptions extends keyof Database['public']['Enums'] | {
1818
1991
  schema: keyof Database;
1819
1992
  }, EnumName extends PublicEnumNameOrOptions extends {
1820
1993
  schema: keyof Database;
1821
1994
  } ? keyof Database[PublicEnumNameOrOptions['schema']]['Enums'] : never = never> = PublicEnumNameOrOptions extends {
1822
1995
  schema: keyof Database;
1823
- } ? Database[PublicEnumNameOrOptions['schema']]['Enums'][EnumName] : PublicEnumNameOrOptions extends keyof PublicSchema['Enums'] ? PublicSchema['Enums'][PublicEnumNameOrOptions] : never;
1824
- export {};
1996
+ } ? Database[PublicEnumNameOrOptions['schema']]['Enums'][EnumName] : PublicEnumNameOrOptions extends keyof Database['public']['Enums'] ? Database['public']['Enums'][PublicEnumNameOrOptions] : never;