@periskope/types 0.6.9-2.2 → 0.6.9-6.1

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.
package/supabase.types.ts CHANGED
@@ -1,1911 +1,2151 @@
1
- export type Json = { [key: string]: any } | any
1
+ export type Json = { [key: string]: any } | any;
2
2
 
3
3
  export type Database = {
4
4
  graphql_public: {
5
5
  Tables: {
6
- [_ in never]: never
7
- }
6
+ [_ in never]: never;
7
+ };
8
8
  Views: {
9
- [_ in never]: never
10
- }
9
+ [_ in never]: never;
10
+ };
11
11
  Functions: {
12
12
  graphql: {
13
13
  Args: {
14
- operationName?: string
15
- query?: string
16
- variables?: Json
17
- extensions?: Json
18
- }
19
- Returns: Json
20
- }
21
- }
14
+ operationName?: string;
15
+ query?: string;
16
+ variables?: Json;
17
+ extensions?: Json;
18
+ };
19
+ Returns: Json;
20
+ };
21
+ };
22
22
  Enums: {
23
- [_ in never]: never
24
- }
23
+ [_ in never]: never;
24
+ };
25
25
  CompositeTypes: {
26
- [_ in never]: never
27
- }
28
- }
26
+ [_ in never]: never;
27
+ };
28
+ };
29
29
  public: {
30
30
  Tables: {
31
+ tbl_api_logs: {
32
+ Row: {
33
+ org_id: string;
34
+ path: string;
35
+ req: Json;
36
+ request_id: string;
37
+ res: Json;
38
+ status: number;
39
+ timestamp: string;
40
+ token_id: string;
41
+ };
42
+ Insert: {
43
+ org_id: string;
44
+ path: string;
45
+ req: Json;
46
+ request_id: string;
47
+ res: Json;
48
+ status: number;
49
+ timestamp: string;
50
+ token_id: string;
51
+ };
52
+ Update: {
53
+ org_id?: string;
54
+ path?: string;
55
+ req?: Json;
56
+ request_id?: string;
57
+ res?: Json;
58
+ status?: number;
59
+ timestamp?: string;
60
+ token_id?: string;
61
+ };
62
+ Relationships: [];
63
+ };
31
64
  tbl_broadcast_logs: {
32
65
  Row: {
33
- broadcast_id: string
34
- chat_id: string
35
- completed_at: string | null
36
- created_at: string
37
- delivered_count: number | null
38
- delivery_info: Json | null
39
- is_success: boolean | null
40
- member_count: number | null
41
- message_id: string | null
42
- org_id: string
43
- org_phone: string | null
44
- read_count: number | null
45
- }
66
+ broadcast_id: string;
67
+ chat_id: string;
68
+ completed_at: string | null;
69
+ created_at: string;
70
+ delivered_count: number | null;
71
+ delivery_info: Json | null;
72
+ is_success: boolean | null;
73
+ member_count: number | null;
74
+ message_id: string | null;
75
+ org_id: string;
76
+ org_phone: string | null;
77
+ read_count: number | null;
78
+ };
46
79
  Insert: {
47
- broadcast_id: string
48
- chat_id: string
49
- completed_at?: string | null
50
- created_at?: string
51
- delivered_count?: number | null
52
- delivery_info?: Json | null
53
- is_success?: boolean | null
54
- member_count?: number | null
55
- message_id?: string | null
56
- org_id: string
57
- org_phone?: string | null
58
- read_count?: number | null
59
- }
80
+ broadcast_id: string;
81
+ chat_id: string;
82
+ completed_at?: string | null;
83
+ created_at?: string;
84
+ delivered_count?: number | null;
85
+ delivery_info?: Json | null;
86
+ is_success?: boolean | null;
87
+ member_count?: number | null;
88
+ message_id?: string | null;
89
+ org_id: string;
90
+ org_phone?: string | null;
91
+ read_count?: number | null;
92
+ };
60
93
  Update: {
61
- broadcast_id?: string
62
- chat_id?: string
63
- completed_at?: string | null
64
- created_at?: string
65
- delivered_count?: number | null
66
- delivery_info?: Json | null
67
- is_success?: boolean | null
68
- member_count?: number | null
69
- message_id?: string | null
70
- org_id?: string
71
- org_phone?: string | null
72
- read_count?: number | null
73
- }
94
+ broadcast_id?: string;
95
+ chat_id?: string;
96
+ completed_at?: string | null;
97
+ created_at?: string;
98
+ delivered_count?: number | null;
99
+ delivery_info?: Json | null;
100
+ is_success?: boolean | null;
101
+ member_count?: number | null;
102
+ message_id?: string | null;
103
+ org_id?: string;
104
+ org_phone?: string | null;
105
+ read_count?: number | null;
106
+ };
74
107
  Relationships: [
75
108
  {
76
- foreignKeyName: "tbl_broadcast_logs_broadcast_id_fkey"
77
- columns: ["broadcast_id"]
78
- referencedRelation: "tbl_broadcast_messages"
79
- referencedColumns: ["broadcast_id"]
109
+ foreignKeyName: 'tbl_broadcast_logs_broadcast_id_fkey';
110
+ columns: ['broadcast_id'];
111
+ isOneToOne: false;
112
+ referencedRelation: 'tbl_broadcast_messages';
113
+ referencedColumns: ['broadcast_id'];
80
114
  },
81
115
  {
82
- foreignKeyName: "tbl_broadcast_logs_broadcast_id_fkey"
83
- columns: ["broadcast_id"]
84
- referencedRelation: "view_broadcast_logs"
85
- referencedColumns: ["broadcast_id"]
116
+ foreignKeyName: 'tbl_broadcast_logs_broadcast_id_fkey';
117
+ columns: ['broadcast_id'];
118
+ isOneToOne: false;
119
+ referencedRelation: 'view_broadcast_logs';
120
+ referencedColumns: ['broadcast_id'];
86
121
  },
87
122
  {
88
- foreignKeyName: "tbl_broadcast_logs_org_id_fkey"
89
- columns: ["org_id"]
90
- referencedRelation: "tbl_org"
91
- referencedColumns: ["org_id"]
123
+ foreignKeyName: 'tbl_broadcast_logs_org_id_fkey';
124
+ columns: ['org_id'];
125
+ isOneToOne: false;
126
+ referencedRelation: 'tbl_org';
127
+ referencedColumns: ['org_id'];
92
128
  },
93
129
  {
94
- foreignKeyName: "tbl_broadcast_logs_org_id_fkey"
95
- columns: ["org_id"]
96
- referencedRelation: "view_org"
97
- referencedColumns: ["org_id"]
98
- }
99
- ]
100
- }
130
+ foreignKeyName: 'tbl_broadcast_logs_org_id_fkey';
131
+ columns: ['org_id'];
132
+ isOneToOne: false;
133
+ referencedRelation: 'view_org';
134
+ referencedColumns: ['org_id'];
135
+ },
136
+ ];
137
+ };
101
138
  tbl_broadcast_messages: {
102
139
  Row: {
103
- broadcast_id: string
104
- broadcast_status: string | null
105
- chat_ids: string[] | null
106
- created_at: string
107
- message_payload: Json | null
108
- org_id: string
109
- org_phone: string | null
110
- performed_at: string | null
111
- performed_by: string | null
112
- scheduled_at: string | null
113
- }
140
+ broadcast_id: string;
141
+ broadcast_status:
142
+ | Database['public']['Enums']['enum_broadcast_status']
143
+ | null;
144
+ chat_ids: string[] | null;
145
+ created_at: string;
146
+ message_payload: Json | null;
147
+ org_id: string;
148
+ org_phone: string | null;
149
+ performed_at: string | null;
150
+ performed_by: string | null;
151
+ scheduled_at: string | null;
152
+ variables: Json | null;
153
+ };
114
154
  Insert: {
115
- broadcast_id?: string
116
- broadcast_status?: string | null
117
- chat_ids?: string[] | null
118
- created_at?: string
119
- message_payload?: Json | null
120
- org_id: string
121
- org_phone?: string | null
122
- performed_at?: string | null
123
- performed_by?: string | null
124
- scheduled_at?: string | null
125
- }
155
+ broadcast_id?: string;
156
+ broadcast_status?:
157
+ | Database['public']['Enums']['enum_broadcast_status']
158
+ | null;
159
+ chat_ids?: string[] | null;
160
+ created_at?: string;
161
+ message_payload?: Json | null;
162
+ org_id: string;
163
+ org_phone?: string | null;
164
+ performed_at?: string | null;
165
+ performed_by?: string | null;
166
+ scheduled_at?: string | null;
167
+ variables?: Json | null;
168
+ };
126
169
  Update: {
127
- broadcast_id?: string
128
- broadcast_status?: string | null
129
- chat_ids?: string[] | null
130
- created_at?: string
131
- message_payload?: Json | null
132
- org_id?: string
133
- org_phone?: string | null
134
- performed_at?: string | null
135
- performed_by?: string | null
136
- scheduled_at?: string | null
137
- }
170
+ broadcast_id?: string;
171
+ broadcast_status?:
172
+ | Database['public']['Enums']['enum_broadcast_status']
173
+ | null;
174
+ chat_ids?: string[] | null;
175
+ created_at?: string;
176
+ message_payload?: Json | null;
177
+ org_id?: string;
178
+ org_phone?: string | null;
179
+ performed_at?: string | null;
180
+ performed_by?: string | null;
181
+ scheduled_at?: string | null;
182
+ variables?: Json | null;
183
+ };
138
184
  Relationships: [
139
185
  {
140
- foreignKeyName: "tbl_broadcast_messages_org_id_fkey"
141
- columns: ["org_id"]
142
- referencedRelation: "tbl_org"
143
- referencedColumns: ["org_id"]
186
+ foreignKeyName: 'tbl_broadcast_messages_org_id_fkey';
187
+ columns: ['org_id'];
188
+ isOneToOne: false;
189
+ referencedRelation: 'tbl_org';
190
+ referencedColumns: ['org_id'];
144
191
  },
145
192
  {
146
- foreignKeyName: "tbl_broadcast_messages_org_id_fkey"
147
- columns: ["org_id"]
148
- referencedRelation: "view_org"
149
- referencedColumns: ["org_id"]
150
- }
151
- ]
152
- }
193
+ foreignKeyName: 'tbl_broadcast_messages_org_id_fkey';
194
+ columns: ['org_id'];
195
+ isOneToOne: false;
196
+ referencedRelation: 'view_org';
197
+ referencedColumns: ['org_id'];
198
+ },
199
+ ];
200
+ };
153
201
  tbl_broadcast_templates: {
154
202
  Row: {
155
- created_at: string
156
- message_payload: Json | null
157
- org_id: string
158
- template_id: string
159
- template_name: string | null
160
- updated_at: string | null
161
- }
203
+ created_at: string;
204
+ message_payload: Json | null;
205
+ org_id: string;
206
+ template_id: string;
207
+ template_name: string | null;
208
+ updated_at: string | null;
209
+ variable_names: Json | null;
210
+ };
162
211
  Insert: {
163
- created_at?: string
164
- message_payload?: Json | null
165
- org_id: string
166
- template_id?: string
167
- template_name?: string | null
168
- updated_at?: string | null
169
- }
212
+ created_at?: string;
213
+ message_payload?: Json | null;
214
+ org_id: string;
215
+ template_id?: string;
216
+ template_name?: string | null;
217
+ updated_at?: string | null;
218
+ variable_names?: Json | null;
219
+ };
170
220
  Update: {
171
- created_at?: string
172
- message_payload?: Json | null
173
- org_id?: string
174
- template_id?: string
175
- template_name?: string | null
176
- updated_at?: string | null
177
- }
221
+ created_at?: string;
222
+ message_payload?: Json | null;
223
+ org_id?: string;
224
+ template_id?: string;
225
+ template_name?: string | null;
226
+ updated_at?: string | null;
227
+ variable_names?: Json | null;
228
+ };
178
229
  Relationships: [
179
230
  {
180
- foreignKeyName: "tbl_broadcast_templates_org_id_fkey"
181
- columns: ["org_id"]
182
- referencedRelation: "tbl_org"
183
- referencedColumns: ["org_id"]
231
+ foreignKeyName: 'tbl_broadcast_templates_org_id_fkey';
232
+ columns: ['org_id'];
233
+ isOneToOne: false;
234
+ referencedRelation: 'tbl_org';
235
+ referencedColumns: ['org_id'];
184
236
  },
185
237
  {
186
- foreignKeyName: "tbl_broadcast_templates_org_id_fkey"
187
- columns: ["org_id"]
188
- referencedRelation: "view_org"
189
- referencedColumns: ["org_id"]
190
- }
191
- ]
192
- }
238
+ foreignKeyName: 'tbl_broadcast_templates_org_id_fkey';
239
+ columns: ['org_id'];
240
+ isOneToOne: false;
241
+ referencedRelation: 'view_org';
242
+ referencedColumns: ['org_id'];
243
+ },
244
+ ];
245
+ };
193
246
  tbl_chat_access: {
194
247
  Row: {
195
- active_phone: string | null
196
- chat_id: string
197
- email: string
198
- has_access: boolean | null
199
- last_read_timestamp: string | null
200
- message_unread_count: number | null
201
- org_id: string
202
- }
248
+ active_phone: string | null;
249
+ chat_id: string;
250
+ email: string;
251
+ has_access: boolean | null;
252
+ last_read_timestamp: string | null;
253
+ message_unread_count: number | null;
254
+ org_id: string;
255
+ };
203
256
  Insert: {
204
- active_phone?: string | null
205
- chat_id: string
206
- email: string
207
- has_access?: boolean | null
208
- last_read_timestamp?: string | null
209
- message_unread_count?: number | null
210
- org_id: string
211
- }
257
+ active_phone?: string | null;
258
+ chat_id: string;
259
+ email: string;
260
+ has_access?: boolean | null;
261
+ last_read_timestamp?: string | null;
262
+ message_unread_count?: number | null;
263
+ org_id: string;
264
+ };
212
265
  Update: {
213
- active_phone?: string | null
214
- chat_id?: string
215
- email?: string
216
- has_access?: boolean | null
217
- last_read_timestamp?: string | null
218
- message_unread_count?: number | null
219
- org_id?: string
220
- }
266
+ active_phone?: string | null;
267
+ chat_id?: string;
268
+ email?: string;
269
+ has_access?: boolean | null;
270
+ last_read_timestamp?: string | null;
271
+ message_unread_count?: number | null;
272
+ org_id?: string;
273
+ };
221
274
  Relationships: [
222
275
  {
223
- foreignKeyName: "tbl_chat_access_org_id_email_fkey"
224
- columns: ["org_id", "email"]
225
- referencedRelation: "tbl_org_members"
226
- referencedColumns: ["org_id", "email"]
227
- }
228
- ]
229
- }
276
+ foreignKeyName: 'tbl_chat_access_org_id_email_fkey';
277
+ columns: ['org_id', 'email'];
278
+ isOneToOne: false;
279
+ referencedRelation: 'tbl_org_members';
280
+ referencedColumns: ['org_id', 'email'];
281
+ },
282
+ ];
283
+ };
230
284
  tbl_chat_messages: {
231
285
  Row: {
232
- ack: string | null
233
- author: string | null
234
- body: string | null
235
- broadcast: boolean | null
236
- broadcast_id: string | null
237
- chat_id: string | null
238
- delivery_info: Json | null
239
- device_type: string | null
240
- duration: string | null
241
- flag_metadata: Json | null
242
- flag_response_time: number | null
243
- forwarding_score: number | null
244
- from: string | null
245
- from_me: boolean | null
246
- has_media: boolean | null
247
- has_quoted_msg: boolean | null
248
- has_reaction: boolean | null
249
- id: Json | null
250
- invite_v4: Json | null
251
- is_deleted: boolean | null
252
- is_ephemeral: boolean | null
253
- is_forwarded: boolean | null
254
- is_gif: boolean | null
255
- is_starred: boolean | null
256
- is_status: boolean | null
257
- links: Json | null
258
- location: Json | null
259
- media: Json | null
260
- media_key: string | null
261
- mentioned_ids: string[] | null
262
- message_id: string
263
- message_ticket_id: string | null
264
- message_type: string | null
265
- order_id: string | null
266
- org_id: string
267
- org_phone: string
268
- performed_by: string | null
269
- prev_body: string | null
270
- quoted_message_id: string | null
271
- raw_data: Json | null
272
- sender_phone: string | null
273
- sent_message_id: string | null
274
- timestamp: string | null
275
- to: string | null
276
- token: string | null
277
- unique_id: string | null
278
- updated_at: string | null
279
- vcards: string[] | null
280
- }
286
+ ack: string | null;
287
+ author: string | null;
288
+ body: string | null;
289
+ broadcast: boolean | null;
290
+ broadcast_id: string | null;
291
+ chat_id: string | null;
292
+ delivery_info: Json | null;
293
+ device_type: string | null;
294
+ duration: string | null;
295
+ flag_metadata: Json | null;
296
+ flag_response_time: number | null;
297
+ forwarding_score: number | null;
298
+ from: string | null;
299
+ from_me: boolean | null;
300
+ has_media: boolean | null;
301
+ has_quoted_msg: boolean | null;
302
+ has_reaction: boolean | null;
303
+ id: Json | null;
304
+ invite_v4: Json | null;
305
+ is_deleted: boolean | null;
306
+ is_ephemeral: boolean | null;
307
+ is_forwarded: boolean | null;
308
+ is_gif: boolean | null;
309
+ is_starred: boolean | null;
310
+ is_status: boolean | null;
311
+ links: Json | null;
312
+ location: Json | null;
313
+ media: Json | null;
314
+ media_key: string | null;
315
+ mentioned_ids: string[] | null;
316
+ message_id: string;
317
+ message_ticket_id: string | null;
318
+ message_type: string | null;
319
+ order_id: string | null;
320
+ org_id: string;
321
+ org_phone: string;
322
+ performed_by: string | null;
323
+ prev_body: string | null;
324
+ quoted_message_id: string | null;
325
+ raw_data: Json | null;
326
+ sender_phone: string | null;
327
+ sent_message_id: string | null;
328
+ timestamp: string | null;
329
+ to: string | null;
330
+ token: string | null;
331
+ unique_id: string | null;
332
+ updated_at: string | null;
333
+ vcards: string[] | null;
334
+ };
281
335
  Insert: {
282
- ack?: string | null
283
- author?: string | null
284
- body?: string | null
285
- broadcast?: boolean | null
286
- broadcast_id?: string | null
287
- chat_id?: string | null
288
- delivery_info?: Json | null
289
- device_type?: string | null
290
- duration?: string | null
291
- flag_metadata?: Json | null
292
- flag_response_time?: number | null
293
- forwarding_score?: number | null
294
- from?: string | null
295
- from_me?: boolean | null
296
- has_media?: boolean | null
297
- has_quoted_msg?: boolean | null
298
- has_reaction?: boolean | null
299
- id?: Json | null
300
- invite_v4?: Json | null
301
- is_deleted?: boolean | null
302
- is_ephemeral?: boolean | null
303
- is_forwarded?: boolean | null
304
- is_gif?: boolean | null
305
- is_starred?: boolean | null
306
- is_status?: boolean | null
307
- links?: Json | null
308
- location?: Json | null
309
- media?: Json | null
310
- media_key?: string | null
311
- mentioned_ids?: string[] | null
312
- message_id: string
313
- message_ticket_id?: string | null
314
- message_type?: string | null
315
- order_id?: string | null
316
- org_id: string
317
- org_phone: string
318
- performed_by?: string | null
319
- prev_body?: string | null
320
- quoted_message_id?: string | null
321
- raw_data?: Json | null
322
- sender_phone?: string | null
323
- sent_message_id?: string | null
324
- timestamp?: string | null
325
- to?: string | null
326
- token?: string | null
327
- unique_id?: string | null
328
- updated_at?: string | null
329
- vcards?: string[] | null
330
- }
336
+ ack?: string | null;
337
+ author?: string | null;
338
+ body?: string | null;
339
+ broadcast?: boolean | null;
340
+ broadcast_id?: string | null;
341
+ chat_id?: string | null;
342
+ delivery_info?: Json | null;
343
+ device_type?: string | null;
344
+ duration?: string | null;
345
+ flag_metadata?: Json | null;
346
+ flag_response_time?: number | null;
347
+ forwarding_score?: number | null;
348
+ from?: string | null;
349
+ from_me?: boolean | null;
350
+ has_media?: boolean | null;
351
+ has_quoted_msg?: boolean | null;
352
+ has_reaction?: boolean | null;
353
+ id?: Json | null;
354
+ invite_v4?: Json | null;
355
+ is_deleted?: boolean | null;
356
+ is_ephemeral?: boolean | null;
357
+ is_forwarded?: boolean | null;
358
+ is_gif?: boolean | null;
359
+ is_starred?: boolean | null;
360
+ is_status?: boolean | null;
361
+ links?: Json | null;
362
+ location?: Json | null;
363
+ media?: Json | null;
364
+ media_key?: string | null;
365
+ mentioned_ids?: string[] | null;
366
+ message_id: string;
367
+ message_ticket_id?: string | null;
368
+ message_type?: string | null;
369
+ order_id?: string | null;
370
+ org_id: string;
371
+ org_phone: string;
372
+ performed_by?: string | null;
373
+ prev_body?: string | null;
374
+ quoted_message_id?: string | null;
375
+ raw_data?: Json | null;
376
+ sender_phone?: string | null;
377
+ sent_message_id?: string | null;
378
+ timestamp?: string | null;
379
+ to?: string | null;
380
+ token?: string | null;
381
+ unique_id?: string | null;
382
+ updated_at?: string | null;
383
+ vcards?: string[] | null;
384
+ };
331
385
  Update: {
332
- ack?: string | null
333
- author?: string | null
334
- body?: string | null
335
- broadcast?: boolean | null
336
- broadcast_id?: string | null
337
- chat_id?: string | null
338
- delivery_info?: Json | null
339
- device_type?: string | null
340
- duration?: string | null
341
- flag_metadata?: Json | null
342
- flag_response_time?: number | null
343
- forwarding_score?: number | null
344
- from?: string | null
345
- from_me?: boolean | null
346
- has_media?: boolean | null
347
- has_quoted_msg?: boolean | null
348
- has_reaction?: boolean | null
349
- id?: Json | null
350
- invite_v4?: Json | null
351
- is_deleted?: boolean | null
352
- is_ephemeral?: boolean | null
353
- is_forwarded?: boolean | null
354
- is_gif?: boolean | null
355
- is_starred?: boolean | null
356
- is_status?: boolean | null
357
- links?: Json | null
358
- location?: Json | null
359
- media?: Json | null
360
- media_key?: string | null
361
- mentioned_ids?: string[] | null
362
- message_id?: string
363
- message_ticket_id?: string | null
364
- message_type?: string | null
365
- order_id?: string | null
366
- org_id?: string
367
- org_phone?: string
368
- performed_by?: string | null
369
- prev_body?: string | null
370
- quoted_message_id?: string | null
371
- raw_data?: Json | null
372
- sender_phone?: string | null
373
- sent_message_id?: string | null
374
- timestamp?: string | null
375
- to?: string | null
376
- token?: string | null
377
- unique_id?: string | null
378
- updated_at?: string | null
379
- vcards?: string[] | null
380
- }
386
+ ack?: string | null;
387
+ author?: string | null;
388
+ body?: string | null;
389
+ broadcast?: boolean | null;
390
+ broadcast_id?: string | null;
391
+ chat_id?: string | null;
392
+ delivery_info?: Json | null;
393
+ device_type?: string | null;
394
+ duration?: string | null;
395
+ flag_metadata?: Json | null;
396
+ flag_response_time?: number | null;
397
+ forwarding_score?: number | null;
398
+ from?: string | null;
399
+ from_me?: boolean | null;
400
+ has_media?: boolean | null;
401
+ has_quoted_msg?: boolean | null;
402
+ has_reaction?: boolean | null;
403
+ id?: Json | null;
404
+ invite_v4?: Json | null;
405
+ is_deleted?: boolean | null;
406
+ is_ephemeral?: boolean | null;
407
+ is_forwarded?: boolean | null;
408
+ is_gif?: boolean | null;
409
+ is_starred?: boolean | null;
410
+ is_status?: boolean | null;
411
+ links?: Json | null;
412
+ location?: Json | null;
413
+ media?: Json | null;
414
+ media_key?: string | null;
415
+ mentioned_ids?: string[] | null;
416
+ message_id?: string;
417
+ message_ticket_id?: string | null;
418
+ message_type?: string | null;
419
+ order_id?: string | null;
420
+ org_id?: string;
421
+ org_phone?: string;
422
+ performed_by?: string | null;
423
+ prev_body?: string | null;
424
+ quoted_message_id?: string | null;
425
+ raw_data?: Json | null;
426
+ sender_phone?: string | null;
427
+ sent_message_id?: string | null;
428
+ timestamp?: string | null;
429
+ to?: string | null;
430
+ token?: string | null;
431
+ unique_id?: string | null;
432
+ updated_at?: string | null;
433
+ vcards?: string[] | null;
434
+ };
381
435
  Relationships: [
382
436
  {
383
- foreignKeyName: "tbl_chat_messages_fkey_tbl_org_phones"
384
- columns: ["org_phone", "org_id"]
385
- referencedRelation: "tbl_org_phones"
386
- referencedColumns: ["org_phone", "org_id"]
387
- }
388
- ]
389
- }
437
+ foreignKeyName: 'tbl_chat_messages_parent_fkey_tbl_org_phones';
438
+ columns: ['org_phone', 'org_id'];
439
+ isOneToOne: false;
440
+ referencedRelation: 'tbl_org_phones';
441
+ referencedColumns: ['org_phone', 'org_id'];
442
+ },
443
+ ];
444
+ };
390
445
  tbl_chat_notifications: {
391
446
  Row: {
392
- author: string | null
393
- body: string | null
394
- chat_id: string | null
395
- id: Json | null
396
- notification_id: string
397
- org_id: string
398
- org_phone: string
399
- recipientids: string[] | null
400
- timestamp: string | null
401
- type: string | null
402
- unique_id: string | null
403
- }
447
+ author: string | null;
448
+ body: string | null;
449
+ chat_id: string | null;
450
+ id: Json | null;
451
+ notification_id: string;
452
+ org_id: string;
453
+ org_phone: string;
454
+ recipientids: string[] | null;
455
+ timestamp: string | null;
456
+ type: string | null;
457
+ unique_id: string | null;
458
+ };
404
459
  Insert: {
405
- author?: string | null
406
- body?: string | null
407
- chat_id?: string | null
408
- id?: Json | null
409
- notification_id: string
410
- org_id: string
411
- org_phone: string
412
- recipientids?: string[] | null
413
- timestamp?: string | null
414
- type?: string | null
415
- unique_id?: string | null
416
- }
460
+ author?: string | null;
461
+ body?: string | null;
462
+ chat_id?: string | null;
463
+ id?: Json | null;
464
+ notification_id: string;
465
+ org_id: string;
466
+ org_phone: string;
467
+ recipientids?: string[] | null;
468
+ timestamp?: string | null;
469
+ type?: string | null;
470
+ unique_id?: string | null;
471
+ };
417
472
  Update: {
418
- author?: string | null
419
- body?: string | null
420
- chat_id?: string | null
421
- id?: Json | null
422
- notification_id?: string
423
- org_id?: string
424
- org_phone?: string
425
- recipientids?: string[] | null
426
- timestamp?: string | null
427
- type?: string | null
428
- unique_id?: string | null
429
- }
473
+ author?: string | null;
474
+ body?: string | null;
475
+ chat_id?: string | null;
476
+ id?: Json | null;
477
+ notification_id?: string;
478
+ org_id?: string;
479
+ org_phone?: string;
480
+ recipientids?: string[] | null;
481
+ timestamp?: string | null;
482
+ type?: string | null;
483
+ unique_id?: string | null;
484
+ };
430
485
  Relationships: [
431
486
  {
432
- foreignKeyName: "tbl_chat_notifications_fkey_tbl_org_phones"
433
- columns: ["org_id", "org_phone"]
434
- referencedRelation: "tbl_org_phones"
435
- referencedColumns: ["org_id", "org_phone"]
436
- }
437
- ]
438
- }
487
+ foreignKeyName: 'tbl_chat_notifications_fkey_tbl_org_phones';
488
+ columns: ['org_id', 'org_phone'];
489
+ isOneToOne: false;
490
+ referencedRelation: 'tbl_org_phones';
491
+ referencedColumns: ['org_id', 'org_phone'];
492
+ },
493
+ ];
494
+ };
439
495
  tbl_chat_participants: {
440
496
  Row: {
441
- chat_id: string
442
- contact_id: string
443
- id: Json | null
444
- is_admin: boolean | null
445
- is_super_admin: boolean | null
446
- org_id: string
447
- org_phone: string
448
- }
497
+ chat_id: string;
498
+ contact_id: string;
499
+ id: Json | null;
500
+ is_admin: boolean | null;
501
+ is_super_admin: boolean | null;
502
+ org_id: string;
503
+ org_phone: string;
504
+ };
449
505
  Insert: {
450
- chat_id: string
451
- contact_id: string
452
- id?: Json | null
453
- is_admin?: boolean | null
454
- is_super_admin?: boolean | null
455
- org_id: string
456
- org_phone: string
457
- }
506
+ chat_id: string;
507
+ contact_id: string;
508
+ id?: Json | null;
509
+ is_admin?: boolean | null;
510
+ is_super_admin?: boolean | null;
511
+ org_id: string;
512
+ org_phone: string;
513
+ };
458
514
  Update: {
459
- chat_id?: string
460
- contact_id?: string
461
- id?: Json | null
462
- is_admin?: boolean | null
463
- is_super_admin?: boolean | null
464
- org_id?: string
465
- org_phone?: string
466
- }
515
+ chat_id?: string;
516
+ contact_id?: string;
517
+ id?: Json | null;
518
+ is_admin?: boolean | null;
519
+ is_super_admin?: boolean | null;
520
+ org_id?: string;
521
+ org_phone?: string;
522
+ };
467
523
  Relationships: [
468
524
  {
469
- foreignKeyName: "tbl_chat_participants_fkey_tbl_chats"
470
- columns: ["org_id", "org_phone", "chat_id"]
471
- referencedRelation: "tbl_chats"
472
- referencedColumns: ["org_id", "org_phone", "chat_id"]
473
- }
474
- ]
475
- }
525
+ foreignKeyName: 'tbl_chat_participants_fkey_tbl_chats';
526
+ columns: ['org_id', 'org_phone', 'chat_id'];
527
+ isOneToOne: false;
528
+ referencedRelation: 'tbl_chats';
529
+ referencedColumns: ['org_id', 'org_phone', 'chat_id'];
530
+ },
531
+ ];
532
+ };
476
533
  tbl_chat_properties: {
477
534
  Row: {
478
- chat_id: string
479
- custom_properties: Json | null
480
- flag_count: number
481
- hubspot_metadata: Json | null
482
- label_ids: Json | null
483
- org_id: string
484
- }
535
+ chat_id: string;
536
+ custom_properties: Json | null;
537
+ flag_count: number;
538
+ hubspot_metadata: Json | null;
539
+ label_ids: Json | null;
540
+ org_id: string;
541
+ };
485
542
  Insert: {
486
- chat_id: string
487
- custom_properties?: Json | null
488
- flag_count?: number
489
- hubspot_metadata?: Json | null
490
- label_ids?: Json | null
491
- org_id: string
492
- }
543
+ chat_id: string;
544
+ custom_properties?: Json | null;
545
+ flag_count?: number;
546
+ hubspot_metadata?: Json | null;
547
+ label_ids?: Json | null;
548
+ org_id: string;
549
+ };
493
550
  Update: {
494
- chat_id?: string
495
- custom_properties?: Json | null
496
- flag_count?: number
497
- hubspot_metadata?: Json | null
498
- label_ids?: Json | null
499
- org_id?: string
500
- }
501
- Relationships: []
502
- }
551
+ chat_id?: string;
552
+ custom_properties?: Json | null;
553
+ flag_count?: number;
554
+ hubspot_metadata?: Json | null;
555
+ label_ids?: Json | null;
556
+ org_id?: string;
557
+ };
558
+ Relationships: [];
559
+ };
503
560
  tbl_chat_reactions: {
504
561
  Row: {
505
- ack: number | null
506
- chat_id: string | null
507
- id: Json | null
508
- message_id: string
509
- msg_id: Json | null
510
- org_id: string
511
- org_phone: string
512
- orphan: number | null
513
- orphan_reason: string | null
514
- reaction: string | null
515
- reaction_id: string
516
- read: boolean | null
517
- sender_id: string
518
- timestamp: string | null
519
- unique_id: string | null
520
- }
562
+ ack: number | null;
563
+ chat_id: string | null;
564
+ id: Json | null;
565
+ message_id: string;
566
+ msg_id: Json | null;
567
+ org_id: string;
568
+ org_phone: string;
569
+ orphan: number | null;
570
+ orphan_reason: string | null;
571
+ reaction: string | null;
572
+ reaction_id: string;
573
+ read: boolean | null;
574
+ sender_id: string;
575
+ timestamp: string | null;
576
+ unique_id: string | null;
577
+ };
521
578
  Insert: {
522
- ack?: number | null
523
- chat_id?: string | null
524
- id?: Json | null
525
- message_id: string
526
- msg_id?: Json | null
527
- org_id: string
528
- org_phone: string
529
- orphan?: number | null
530
- orphan_reason?: string | null
531
- reaction?: string | null
532
- reaction_id: string
533
- read?: boolean | null
534
- sender_id: string
535
- timestamp?: string | null
536
- unique_id?: string | null
537
- }
579
+ ack?: number | null;
580
+ chat_id?: string | null;
581
+ id?: Json | null;
582
+ message_id: string;
583
+ msg_id?: Json | null;
584
+ org_id: string;
585
+ org_phone: string;
586
+ orphan?: number | null;
587
+ orphan_reason?: string | null;
588
+ reaction?: string | null;
589
+ reaction_id: string;
590
+ read?: boolean | null;
591
+ sender_id: string;
592
+ timestamp?: string | null;
593
+ unique_id?: string | null;
594
+ };
538
595
  Update: {
539
- ack?: number | null
540
- chat_id?: string | null
541
- id?: Json | null
542
- message_id?: string
543
- msg_id?: Json | null
544
- org_id?: string
545
- org_phone?: string
546
- orphan?: number | null
547
- orphan_reason?: string | null
548
- reaction?: string | null
549
- reaction_id?: string
550
- read?: boolean | null
551
- sender_id?: string
552
- timestamp?: string | null
553
- unique_id?: string | null
554
- }
596
+ ack?: number | null;
597
+ chat_id?: string | null;
598
+ id?: Json | null;
599
+ message_id?: string;
600
+ msg_id?: Json | null;
601
+ org_id?: string;
602
+ org_phone?: string;
603
+ orphan?: number | null;
604
+ orphan_reason?: string | null;
605
+ reaction?: string | null;
606
+ reaction_id?: string;
607
+ read?: boolean | null;
608
+ sender_id?: string;
609
+ timestamp?: string | null;
610
+ unique_id?: string | null;
611
+ };
555
612
  Relationships: [
556
613
  {
557
- foreignKeyName: "tbl_chat_reactions_fkey_tbl_org_phones"
558
- columns: ["org_id", "org_phone"]
559
- referencedRelation: "tbl_org_phones"
560
- referencedColumns: ["org_id", "org_phone"]
561
- }
562
- ]
563
- }
614
+ foreignKeyName: 'tbl_chat_reactions_fkey_tbl_org_phones';
615
+ columns: ['org_id', 'org_phone'];
616
+ isOneToOne: false;
617
+ referencedRelation: 'tbl_org_phones';
618
+ referencedColumns: ['org_id', 'org_phone'];
619
+ },
620
+ ];
621
+ };
564
622
  tbl_chat_tickets: {
565
623
  Row: {
566
- assigned_by: string | null
567
- assignee: string | null
568
- chat_id: string
569
- created_at: string
570
- due_date: string | null
571
- hubspot_metadata: Json | null
572
- is_deleted: boolean
573
- label_ids: Json | null
574
- last_updated_at: string
575
- org_id: string
576
- priority: number | null
577
- quoted_message_id: string | null
578
- raised_by: string | null
579
- status: Database["public"]["Enums"]["enum_chat_tickets_status"] | null
580
- subject: string
581
- ticket_id: string
582
- }
624
+ assigned_by: string | null;
625
+ assignee: string | null;
626
+ chat_id: string;
627
+ closed_at: string | null;
628
+ created_at: string;
629
+ due_date: string | null;
630
+ hubspot_metadata: Json | null;
631
+ is_deleted: boolean;
632
+ label_ids: Json | null;
633
+ last_updated_at: string;
634
+ org_id: string;
635
+ priority: number | null;
636
+ quoted_message_id: string | null;
637
+ raised_by: string | null;
638
+ status:
639
+ | Database['public']['Enums']['enum_chat_tickets_status']
640
+ | null;
641
+ subject: string;
642
+ ticket_id: string;
643
+ ticket_metadata: Json | null;
644
+ };
583
645
  Insert: {
584
- assigned_by?: string | null
585
- assignee?: string | null
586
- chat_id: string
587
- created_at?: string
588
- due_date?: string | null
589
- hubspot_metadata?: Json | null
590
- is_deleted?: boolean
591
- label_ids?: Json | null
592
- last_updated_at?: string
593
- org_id: string
594
- priority?: number | null
595
- quoted_message_id?: string | null
596
- raised_by?: string | null
646
+ assigned_by?: string | null;
647
+ assignee?: string | null;
648
+ chat_id: string;
649
+ closed_at?: string | null;
650
+ created_at?: string;
651
+ due_date?: string | null;
652
+ hubspot_metadata?: Json | null;
653
+ is_deleted?: boolean;
654
+ label_ids?: Json | null;
655
+ last_updated_at?: string;
656
+ org_id: string;
657
+ priority?: number | null;
658
+ quoted_message_id?: string | null;
659
+ raised_by?: string | null;
597
660
  status?:
598
- | Database["public"]["Enums"]["enum_chat_tickets_status"]
599
- | null
600
- subject: string
601
- ticket_id?: string
602
- }
661
+ | Database['public']['Enums']['enum_chat_tickets_status']
662
+ | null;
663
+ subject: string;
664
+ ticket_id?: string;
665
+ ticket_metadata?: Json | null;
666
+ };
603
667
  Update: {
604
- assigned_by?: string | null
605
- assignee?: string | null
606
- chat_id?: string
607
- created_at?: string
608
- due_date?: string | null
609
- hubspot_metadata?: Json | null
610
- is_deleted?: boolean
611
- label_ids?: Json | null
612
- last_updated_at?: string
613
- org_id?: string
614
- priority?: number | null
615
- quoted_message_id?: string | null
616
- raised_by?: string | null
668
+ assigned_by?: string | null;
669
+ assignee?: string | null;
670
+ chat_id?: string;
671
+ closed_at?: string | null;
672
+ created_at?: string;
673
+ due_date?: string | null;
674
+ hubspot_metadata?: Json | null;
675
+ is_deleted?: boolean;
676
+ label_ids?: Json | null;
677
+ last_updated_at?: string;
678
+ org_id?: string;
679
+ priority?: number | null;
680
+ quoted_message_id?: string | null;
681
+ raised_by?: string | null;
617
682
  status?:
618
- | Database["public"]["Enums"]["enum_chat_tickets_status"]
619
- | null
620
- subject?: string
621
- ticket_id?: string
622
- }
683
+ | Database['public']['Enums']['enum_chat_tickets_status']
684
+ | null;
685
+ subject?: string;
686
+ ticket_id?: string;
687
+ ticket_metadata?: Json | null;
688
+ };
623
689
  Relationships: [
624
690
  {
625
- foreignKeyName: "tbl_chat_tickets_org_id_fkey"
626
- columns: ["org_id"]
627
- referencedRelation: "tbl_org"
628
- referencedColumns: ["org_id"]
691
+ foreignKeyName: 'tbl_chat_tickets_org_id_fkey';
692
+ columns: ['org_id'];
693
+ isOneToOne: false;
694
+ referencedRelation: 'tbl_org';
695
+ referencedColumns: ['org_id'];
629
696
  },
630
697
  {
631
- foreignKeyName: "tbl_chat_tickets_org_id_fkey"
632
- columns: ["org_id"]
633
- referencedRelation: "view_org"
634
- referencedColumns: ["org_id"]
635
- }
636
- ]
637
- }
698
+ foreignKeyName: 'tbl_chat_tickets_org_id_fkey';
699
+ columns: ['org_id'];
700
+ isOneToOne: false;
701
+ referencedRelation: 'view_org';
702
+ referencedColumns: ['org_id'];
703
+ },
704
+ ];
705
+ };
638
706
  tbl_chats: {
639
707
  Row: {
640
- archived: boolean | null
641
- chat_id: string
642
- chat_image: string | null
643
- chat_name: string | null
644
- chat_type: string | null
645
- created_at: string
646
- group_metadata: Json | null
647
- id: Json | null
648
- invite_link: string | null
649
- is_group: boolean | null
650
- is_muted: boolean | null
651
- is_read_only: boolean | null
652
- latest_message: Json | null
653
- member_count: number | null
654
- mute_expiration: number | null
655
- name: string | null
656
- org_id: string
657
- org_phone: string
658
- pinned: boolean | null
659
- timestamp: string | null
660
- unread_count: number | null
661
- updated_at: string
662
- }
708
+ archived: boolean | null;
709
+ chat_id: string;
710
+ chat_image: string | null;
711
+ chat_name: string | null;
712
+ chat_type: string | null;
713
+ created_at: string;
714
+ group_metadata: Json | null;
715
+ id: Json | null;
716
+ invite_link: string | null;
717
+ is_group: boolean | null;
718
+ is_muted: boolean | null;
719
+ is_read_only: boolean | null;
720
+ latest_message: Json | null;
721
+ member_count: number | null;
722
+ mute_expiration: number | null;
723
+ name: string | null;
724
+ org_id: string;
725
+ org_phone: string;
726
+ pinned: boolean | null;
727
+ timestamp: string | null;
728
+ unread_count: number | null;
729
+ updated_at: string;
730
+ };
663
731
  Insert: {
664
- archived?: boolean | null
665
- chat_id: string
666
- chat_image?: string | null
667
- chat_name?: string | null
668
- chat_type?: string | null
669
- created_at?: string
670
- group_metadata?: Json | null
671
- id?: Json | null
672
- invite_link?: string | null
673
- is_group?: boolean | null
674
- is_muted?: boolean | null
675
- is_read_only?: boolean | null
676
- latest_message?: Json | null
677
- member_count?: number | null
678
- mute_expiration?: number | null
679
- name?: string | null
680
- org_id: string
681
- org_phone: string
682
- pinned?: boolean | null
683
- timestamp?: string | null
684
- unread_count?: number | null
685
- updated_at?: string
686
- }
732
+ archived?: boolean | null;
733
+ chat_id: string;
734
+ chat_image?: string | null;
735
+ chat_name?: string | null;
736
+ chat_type?: string | null;
737
+ created_at?: string;
738
+ group_metadata?: Json | null;
739
+ id?: Json | null;
740
+ invite_link?: string | null;
741
+ is_group?: boolean | null;
742
+ is_muted?: boolean | null;
743
+ is_read_only?: boolean | null;
744
+ latest_message?: Json | null;
745
+ member_count?: number | null;
746
+ mute_expiration?: number | null;
747
+ name?: string | null;
748
+ org_id: string;
749
+ org_phone: string;
750
+ pinned?: boolean | null;
751
+ timestamp?: string | null;
752
+ unread_count?: number | null;
753
+ updated_at?: string;
754
+ };
687
755
  Update: {
688
- archived?: boolean | null
689
- chat_id?: string
690
- chat_image?: string | null
691
- chat_name?: string | null
692
- chat_type?: string | null
693
- created_at?: string
694
- group_metadata?: Json | null
695
- id?: Json | null
696
- invite_link?: string | null
697
- is_group?: boolean | null
698
- is_muted?: boolean | null
699
- is_read_only?: boolean | null
700
- latest_message?: Json | null
701
- member_count?: number | null
702
- mute_expiration?: number | null
703
- name?: string | null
704
- org_id?: string
705
- org_phone?: string
706
- pinned?: boolean | null
707
- timestamp?: string | null
708
- unread_count?: number | null
709
- updated_at?: string
710
- }
756
+ archived?: boolean | null;
757
+ chat_id?: string;
758
+ chat_image?: string | null;
759
+ chat_name?: string | null;
760
+ chat_type?: string | null;
761
+ created_at?: string;
762
+ group_metadata?: Json | null;
763
+ id?: Json | null;
764
+ invite_link?: string | null;
765
+ is_group?: boolean | null;
766
+ is_muted?: boolean | null;
767
+ is_read_only?: boolean | null;
768
+ latest_message?: Json | null;
769
+ member_count?: number | null;
770
+ mute_expiration?: number | null;
771
+ name?: string | null;
772
+ org_id?: string;
773
+ org_phone?: string;
774
+ pinned?: boolean | null;
775
+ timestamp?: string | null;
776
+ unread_count?: number | null;
777
+ updated_at?: string;
778
+ };
711
779
  Relationships: [
712
780
  {
713
- foreignKeyName: "tbl_chats_fkey_tbl_org_phones"
714
- columns: ["org_phone", "org_id"]
715
- referencedRelation: "tbl_org_phones"
716
- referencedColumns: ["org_phone", "org_id"]
717
- }
718
- ]
719
- }
781
+ foreignKeyName: 'tbl_chats_fkey_tbl_org_phones';
782
+ columns: ['org_phone', 'org_id'];
783
+ isOneToOne: false;
784
+ referencedRelation: 'tbl_org_phones';
785
+ referencedColumns: ['org_phone', 'org_id'];
786
+ },
787
+ ];
788
+ };
720
789
  tbl_contacts: {
721
790
  Row: {
722
- business_profile: Json | null
723
- contact_color: Database["public"]["Enums"]["enum_chat_colors"] | null
724
- contact_id: string
725
- contact_image: string | null
726
- contact_name: string | null
727
- contact_type: string | null
728
- id: Json | null
729
- is_blocked: boolean | null
730
- is_business: boolean | null
731
- is_enterprise: boolean | null
732
- is_group: boolean | null
733
- is_internal: boolean | null
734
- is_me: boolean | null
735
- is_my_contact: boolean | null
736
- is_user: boolean | null
737
- is_wa_contact: boolean | null
738
- label_ids: Json
739
- name: string | null
740
- number: string | null
741
- org_id: string
742
- pushname: string | null
743
- short_name: string | null
744
- updated_at: string | null
745
- verified_level: number | null
746
- verified_name: string | null
747
- }
791
+ business_profile: Json | null;
792
+ contact_color: Database['public']['Enums']['enum_chat_colors'] | null;
793
+ contact_id: string;
794
+ contact_image: string | null;
795
+ contact_name: string | null;
796
+ contact_type: string | null;
797
+ id: Json | null;
798
+ is_blocked: boolean | null;
799
+ is_business: boolean | null;
800
+ is_enterprise: boolean | null;
801
+ is_group: boolean | null;
802
+ is_internal: boolean | null;
803
+ is_me: boolean | null;
804
+ is_my_contact: boolean | null;
805
+ is_user: boolean | null;
806
+ is_wa_contact: boolean | null;
807
+ label_ids: Json;
808
+ name: string | null;
809
+ number: string | null;
810
+ org_id: string;
811
+ pushname: string | null;
812
+ short_name: string | null;
813
+ updated_at: string | null;
814
+ verified_level: number | null;
815
+ verified_name: string | null;
816
+ };
748
817
  Insert: {
749
- business_profile?: Json | null
750
- contact_color?: Database["public"]["Enums"]["enum_chat_colors"] | null
751
- contact_id: string
752
- contact_image?: string | null
753
- contact_name?: string | null
754
- contact_type?: string | null
755
- id?: Json | null
756
- is_blocked?: boolean | null
757
- is_business?: boolean | null
758
- is_enterprise?: boolean | null
759
- is_group?: boolean | null
760
- is_internal?: boolean | null
761
- is_me?: boolean | null
762
- is_my_contact?: boolean | null
763
- is_user?: boolean | null
764
- is_wa_contact?: boolean | null
765
- label_ids?: Json
766
- name?: string | null
767
- number?: string | null
768
- org_id: string
769
- pushname?: string | null
770
- short_name?: string | null
771
- updated_at?: string | null
772
- verified_level?: number | null
773
- verified_name?: string | null
774
- }
818
+ business_profile?: Json | null;
819
+ contact_color?:
820
+ | Database['public']['Enums']['enum_chat_colors']
821
+ | null;
822
+ contact_id: string;
823
+ contact_image?: string | null;
824
+ contact_name?: string | null;
825
+ contact_type?: string | null;
826
+ id?: Json | null;
827
+ is_blocked?: boolean | null;
828
+ is_business?: boolean | null;
829
+ is_enterprise?: boolean | null;
830
+ is_group?: boolean | null;
831
+ is_internal?: boolean | null;
832
+ is_me?: boolean | null;
833
+ is_my_contact?: boolean | null;
834
+ is_user?: boolean | null;
835
+ is_wa_contact?: boolean | null;
836
+ label_ids?: Json;
837
+ name?: string | null;
838
+ number?: string | null;
839
+ org_id: string;
840
+ pushname?: string | null;
841
+ short_name?: string | null;
842
+ updated_at?: string | null;
843
+ verified_level?: number | null;
844
+ verified_name?: string | null;
845
+ };
775
846
  Update: {
776
- business_profile?: Json | null
777
- contact_color?: Database["public"]["Enums"]["enum_chat_colors"] | null
778
- contact_id?: string
779
- contact_image?: string | null
780
- contact_name?: string | null
781
- contact_type?: string | null
782
- id?: Json | null
783
- is_blocked?: boolean | null
784
- is_business?: boolean | null
785
- is_enterprise?: boolean | null
786
- is_group?: boolean | null
787
- is_internal?: boolean | null
788
- is_me?: boolean | null
789
- is_my_contact?: boolean | null
790
- is_user?: boolean | null
791
- is_wa_contact?: boolean | null
792
- label_ids?: Json
793
- name?: string | null
794
- number?: string | null
795
- org_id?: string
796
- pushname?: string | null
797
- short_name?: string | null
798
- updated_at?: string | null
799
- verified_level?: number | null
800
- verified_name?: string | null
801
- }
847
+ business_profile?: Json | null;
848
+ contact_color?:
849
+ | Database['public']['Enums']['enum_chat_colors']
850
+ | null;
851
+ contact_id?: string;
852
+ contact_image?: string | null;
853
+ contact_name?: string | null;
854
+ contact_type?: string | null;
855
+ id?: Json | null;
856
+ is_blocked?: boolean | null;
857
+ is_business?: boolean | null;
858
+ is_enterprise?: boolean | null;
859
+ is_group?: boolean | null;
860
+ is_internal?: boolean | null;
861
+ is_me?: boolean | null;
862
+ is_my_contact?: boolean | null;
863
+ is_user?: boolean | null;
864
+ is_wa_contact?: boolean | null;
865
+ label_ids?: Json;
866
+ name?: string | null;
867
+ number?: string | null;
868
+ org_id?: string;
869
+ pushname?: string | null;
870
+ short_name?: string | null;
871
+ updated_at?: string | null;
872
+ verified_level?: number | null;
873
+ verified_name?: string | null;
874
+ };
802
875
  Relationships: [
803
876
  {
804
- foreignKeyName: "tbl_contacts_org_id_fkey"
805
- columns: ["org_id"]
806
- referencedRelation: "tbl_org"
807
- referencedColumns: ["org_id"]
877
+ foreignKeyName: 'tbl_contacts_org_id_fkey';
878
+ columns: ['org_id'];
879
+ isOneToOne: false;
880
+ referencedRelation: 'tbl_org';
881
+ referencedColumns: ['org_id'];
808
882
  },
809
883
  {
810
- foreignKeyName: "tbl_contacts_org_id_fkey"
811
- columns: ["org_id"]
812
- referencedRelation: "view_org"
813
- referencedColumns: ["org_id"]
814
- }
815
- ]
816
- }
884
+ foreignKeyName: 'tbl_contacts_org_id_fkey';
885
+ columns: ['org_id'];
886
+ isOneToOne: false;
887
+ referencedRelation: 'view_org';
888
+ referencedColumns: ['org_id'];
889
+ },
890
+ ];
891
+ };
817
892
  tbl_custom_properties: {
818
893
  Row: {
819
- created_at: string
820
- created_by: string | null
821
- org_id: string | null
822
- property_id: string
823
- property_name: string
824
- property_value: string | null
825
- property_value_type: string | null
826
- type: string | null
827
- }
894
+ created_at: string;
895
+ created_by: string | null;
896
+ org_id: string | null;
897
+ property_id: string;
898
+ property_name: string;
899
+ property_value: string | null;
900
+ property_value_type: string | null;
901
+ type: string | null;
902
+ };
828
903
  Insert: {
829
- created_at?: string
830
- created_by?: string | null
831
- org_id?: string | null
832
- property_id?: string
833
- property_name: string
834
- property_value?: string | null
835
- property_value_type?: string | null
836
- type?: string | null
837
- }
904
+ created_at?: string;
905
+ created_by?: string | null;
906
+ org_id?: string | null;
907
+ property_id?: string;
908
+ property_name: string;
909
+ property_value?: string | null;
910
+ property_value_type?: string | null;
911
+ type?: string | null;
912
+ };
838
913
  Update: {
839
- created_at?: string
840
- created_by?: string | null
841
- org_id?: string | null
842
- property_id?: string
843
- property_name?: string
844
- property_value?: string | null
845
- property_value_type?: string | null
846
- type?: string | null
847
- }
914
+ created_at?: string;
915
+ created_by?: string | null;
916
+ org_id?: string | null;
917
+ property_id?: string;
918
+ property_name?: string;
919
+ property_value?: string | null;
920
+ property_value_type?: string | null;
921
+ type?: string | null;
922
+ };
848
923
  Relationships: [
849
924
  {
850
- foreignKeyName: "tbl_custom_properties_org_id_fkey"
851
- columns: ["org_id"]
852
- referencedRelation: "tbl_org"
853
- referencedColumns: ["org_id"]
925
+ foreignKeyName: 'tbl_custom_properties_org_id_fkey';
926
+ columns: ['org_id'];
927
+ isOneToOne: false;
928
+ referencedRelation: 'tbl_org';
929
+ referencedColumns: ['org_id'];
854
930
  },
855
931
  {
856
- foreignKeyName: "tbl_custom_properties_org_id_fkey"
857
- columns: ["org_id"]
858
- referencedRelation: "view_org"
859
- referencedColumns: ["org_id"]
860
- }
861
- ]
862
- }
932
+ foreignKeyName: 'tbl_custom_properties_org_id_fkey';
933
+ columns: ['org_id'];
934
+ isOneToOne: false;
935
+ referencedRelation: 'view_org';
936
+ referencedColumns: ['org_id'];
937
+ },
938
+ ];
939
+ };
863
940
  tbl_integration_hooks: {
864
941
  Row: {
865
- hook_url: string
866
- id: string
867
- integration_id: string | null
868
- integration_metadata: Json
869
- integration_name: Database["public"]["Enums"]["enum_integration_name"]
870
- integration_type: string
871
- is_subscribed: boolean
872
- org_id: string
873
- subscribed_at: string
874
- type: Database["public"]["Enums"]["enum_integration_type"]
875
- }
942
+ hook_url: string;
943
+ id: string;
944
+ integration_id: string | null;
945
+ integration_metadata: Json;
946
+ integration_name: Database['public']['Enums']['enum_integration_name'];
947
+ integration_type: string;
948
+ is_subscribed: boolean;
949
+ org_id: string;
950
+ subscribed_at: string;
951
+ type: Database['public']['Enums']['enum_integration_type'];
952
+ };
876
953
  Insert: {
877
- hook_url: string
878
- id?: string
879
- integration_id?: string | null
880
- integration_metadata: Json
881
- integration_name: Database["public"]["Enums"]["enum_integration_name"]
882
- integration_type: string
883
- is_subscribed: boolean
884
- org_id: string
885
- subscribed_at?: string
886
- type: Database["public"]["Enums"]["enum_integration_type"]
887
- }
954
+ hook_url: string;
955
+ id?: string;
956
+ integration_id?: string | null;
957
+ integration_metadata: Json;
958
+ integration_name: Database['public']['Enums']['enum_integration_name'];
959
+ integration_type: string;
960
+ is_subscribed: boolean;
961
+ org_id: string;
962
+ subscribed_at?: string;
963
+ type: Database['public']['Enums']['enum_integration_type'];
964
+ };
888
965
  Update: {
889
- hook_url?: string
890
- id?: string
891
- integration_id?: string | null
892
- integration_metadata?: Json
893
- integration_name?: Database["public"]["Enums"]["enum_integration_name"]
894
- integration_type?: string
895
- is_subscribed?: boolean
896
- org_id?: string
897
- subscribed_at?: string
898
- type?: Database["public"]["Enums"]["enum_integration_type"]
899
- }
966
+ hook_url?: string;
967
+ id?: string;
968
+ integration_id?: string | null;
969
+ integration_metadata?: Json;
970
+ integration_name?: Database['public']['Enums']['enum_integration_name'];
971
+ integration_type?: string;
972
+ is_subscribed?: boolean;
973
+ org_id?: string;
974
+ subscribed_at?: string;
975
+ type?: Database['public']['Enums']['enum_integration_type'];
976
+ };
900
977
  Relationships: [
901
978
  {
902
- foreignKeyName: "tbl_integration_hooks_org_id_fkey"
903
- columns: ["org_id"]
904
- referencedRelation: "tbl_org"
905
- referencedColumns: ["org_id"]
979
+ foreignKeyName: 'tbl_integration_hooks_org_id_fkey';
980
+ columns: ['org_id'];
981
+ isOneToOne: false;
982
+ referencedRelation: 'tbl_org';
983
+ referencedColumns: ['org_id'];
906
984
  },
907
985
  {
908
- foreignKeyName: "tbl_integration_hooks_org_id_fkey"
909
- columns: ["org_id"]
910
- referencedRelation: "view_org"
911
- referencedColumns: ["org_id"]
912
- }
913
- ]
914
- }
986
+ foreignKeyName: 'tbl_integration_hooks_org_id_fkey';
987
+ columns: ['org_id'];
988
+ isOneToOne: false;
989
+ referencedRelation: 'view_org';
990
+ referencedColumns: ['org_id'];
991
+ },
992
+ ];
993
+ };
915
994
  tbl_integration_logs: {
916
995
  Row: {
917
- created_at: string
918
- id: string
919
- integration_name: Database["public"]["Enums"]["enum_integration_name"]
920
- integration_type: string
921
- metadata: Json
922
- org_id: string
923
- response: Json | null
924
- success: boolean
925
- type: Database["public"]["Enums"]["enum_integration_type"]
926
- }
996
+ created_at: string;
997
+ id: string;
998
+ integration_name: Database['public']['Enums']['enum_integration_name'];
999
+ integration_type: string;
1000
+ metadata: Json;
1001
+ org_id: string;
1002
+ response: Json | null;
1003
+ success: boolean;
1004
+ type: Database['public']['Enums']['enum_integration_type'];
1005
+ };
927
1006
  Insert: {
928
- created_at?: string
929
- id?: string
930
- integration_name: Database["public"]["Enums"]["enum_integration_name"]
931
- integration_type: string
932
- metadata?: Json
933
- org_id: string
934
- response?: Json | null
935
- success?: boolean
936
- type: Database["public"]["Enums"]["enum_integration_type"]
937
- }
1007
+ created_at?: string;
1008
+ id?: string;
1009
+ integration_name: Database['public']['Enums']['enum_integration_name'];
1010
+ integration_type: string;
1011
+ metadata?: Json;
1012
+ org_id: string;
1013
+ response?: Json | null;
1014
+ success?: boolean;
1015
+ type: Database['public']['Enums']['enum_integration_type'];
1016
+ };
938
1017
  Update: {
939
- created_at?: string
940
- id?: string
941
- integration_name?: Database["public"]["Enums"]["enum_integration_name"]
942
- integration_type?: string
943
- metadata?: Json
944
- org_id?: string
945
- response?: Json | null
946
- success?: boolean
947
- type?: Database["public"]["Enums"]["enum_integration_type"]
948
- }
1018
+ created_at?: string;
1019
+ id?: string;
1020
+ integration_name?: Database['public']['Enums']['enum_integration_name'];
1021
+ integration_type?: string;
1022
+ metadata?: Json;
1023
+ org_id?: string;
1024
+ response?: Json | null;
1025
+ success?: boolean;
1026
+ type?: Database['public']['Enums']['enum_integration_type'];
1027
+ };
949
1028
  Relationships: [
950
1029
  {
951
- foreignKeyName: "tbl_integration_logs_org_id_fkey"
952
- columns: ["org_id"]
953
- referencedRelation: "tbl_org"
954
- referencedColumns: ["org_id"]
1030
+ foreignKeyName: 'tbl_integration_logs_org_id_fkey';
1031
+ columns: ['org_id'];
1032
+ isOneToOne: false;
1033
+ referencedRelation: 'tbl_org';
1034
+ referencedColumns: ['org_id'];
955
1035
  },
956
1036
  {
957
- foreignKeyName: "tbl_integration_logs_org_id_fkey"
958
- columns: ["org_id"]
959
- referencedRelation: "view_org"
960
- referencedColumns: ["org_id"]
961
- }
962
- ]
963
- }
1037
+ foreignKeyName: 'tbl_integration_logs_org_id_fkey';
1038
+ columns: ['org_id'];
1039
+ isOneToOne: false;
1040
+ referencedRelation: 'view_org';
1041
+ referencedColumns: ['org_id'];
1042
+ },
1043
+ ];
1044
+ };
964
1045
  tbl_integration_tokens: {
965
1046
  Row: {
966
- exp: string
967
- iat: string
968
- id: string
969
- is_revealed: boolean
970
- name: string
971
- org_id: string
972
- role: string
973
- token: string
974
- token_metadata: Json | null
975
- type: Database["public"]["Enums"]["enum_integration_type"]
976
- }
1047
+ exp: string;
1048
+ iat: string;
1049
+ id: string;
1050
+ is_revealed: boolean;
1051
+ name: string;
1052
+ org_id: string;
1053
+ role: string;
1054
+ token: string;
1055
+ token_metadata: Json | null;
1056
+ type: Database['public']['Enums']['enum_integration_type'];
1057
+ };
977
1058
  Insert: {
978
- exp: string
979
- iat: string
980
- id?: string
981
- is_revealed?: boolean
982
- name: string
983
- org_id: string
984
- role: string
985
- token: string
986
- token_metadata?: Json | null
987
- type: Database["public"]["Enums"]["enum_integration_type"]
988
- }
1059
+ exp: string;
1060
+ iat: string;
1061
+ id?: string;
1062
+ is_revealed?: boolean;
1063
+ name: string;
1064
+ org_id: string;
1065
+ role: string;
1066
+ token: string;
1067
+ token_metadata?: Json | null;
1068
+ type: Database['public']['Enums']['enum_integration_type'];
1069
+ };
989
1070
  Update: {
990
- exp?: string
991
- iat?: string
992
- id?: string
993
- is_revealed?: boolean
994
- name?: string
995
- org_id?: string
996
- role?: string
997
- token?: string
998
- token_metadata?: Json | null
999
- type?: Database["public"]["Enums"]["enum_integration_type"]
1000
- }
1071
+ exp?: string;
1072
+ iat?: string;
1073
+ id?: string;
1074
+ is_revealed?: boolean;
1075
+ name?: string;
1076
+ org_id?: string;
1077
+ role?: string;
1078
+ token?: string;
1079
+ token_metadata?: Json | null;
1080
+ type?: Database['public']['Enums']['enum_integration_type'];
1081
+ };
1001
1082
  Relationships: [
1002
1083
  {
1003
- foreignKeyName: "public_tbl_integration_tokens_org_id_fkey"
1004
- columns: ["org_id"]
1005
- referencedRelation: "tbl_org"
1006
- referencedColumns: ["org_id"]
1084
+ foreignKeyName: 'public_tbl_integration_tokens_org_id_fkey';
1085
+ columns: ['org_id'];
1086
+ isOneToOne: false;
1087
+ referencedRelation: 'tbl_org';
1088
+ referencedColumns: ['org_id'];
1007
1089
  },
1008
1090
  {
1009
- foreignKeyName: "public_tbl_integration_tokens_org_id_fkey"
1010
- columns: ["org_id"]
1011
- referencedRelation: "view_org"
1012
- referencedColumns: ["org_id"]
1013
- }
1014
- ]
1015
- }
1091
+ foreignKeyName: 'public_tbl_integration_tokens_org_id_fkey';
1092
+ columns: ['org_id'];
1093
+ isOneToOne: false;
1094
+ referencedRelation: 'view_org';
1095
+ referencedColumns: ['org_id'];
1096
+ },
1097
+ ];
1098
+ };
1016
1099
  tbl_org: {
1017
1100
  Row: {
1018
- created_at: string
1019
- org_id: string
1020
- org_image: string | null
1021
- org_metadata: Json | null
1022
- org_name: string | null
1023
- org_plan: Json | null
1024
- stripe_customer_details: Json | null
1025
- stripe_customer_id: string | null
1026
- stripe_subscription_details: Json | null
1027
- support_link: string | null
1028
- }
1101
+ created_at: string;
1102
+ org_id: string;
1103
+ org_image: string | null;
1104
+ org_metadata: Json | null;
1105
+ org_name: string | null;
1106
+ org_plan: Json | null;
1107
+ stripe_customer_details: Json | null;
1108
+ stripe_customer_id: string | null;
1109
+ stripe_subscription_details: Json | null;
1110
+ support_link: string | null;
1111
+ };
1029
1112
  Insert: {
1030
- created_at?: string
1031
- org_id?: string
1032
- org_image?: string | null
1033
- org_metadata?: Json | null
1034
- org_name?: string | null
1035
- org_plan?: Json | null
1036
- stripe_customer_details?: Json | null
1037
- stripe_customer_id?: string | null
1038
- stripe_subscription_details?: Json | null
1039
- support_link?: string | null
1040
- }
1113
+ created_at?: string;
1114
+ org_id?: string;
1115
+ org_image?: string | null;
1116
+ org_metadata?: Json | null;
1117
+ org_name?: string | null;
1118
+ org_plan?: Json | null;
1119
+ stripe_customer_details?: Json | null;
1120
+ stripe_customer_id?: string | null;
1121
+ stripe_subscription_details?: Json | null;
1122
+ support_link?: string | null;
1123
+ };
1041
1124
  Update: {
1042
- created_at?: string
1043
- org_id?: string
1044
- org_image?: string | null
1045
- org_metadata?: Json | null
1046
- org_name?: string | null
1047
- org_plan?: Json | null
1048
- stripe_customer_details?: Json | null
1049
- stripe_customer_id?: string | null
1050
- stripe_subscription_details?: Json | null
1051
- support_link?: string | null
1052
- }
1053
- Relationships: []
1054
- }
1125
+ created_at?: string;
1126
+ org_id?: string;
1127
+ org_image?: string | null;
1128
+ org_metadata?: Json | null;
1129
+ org_name?: string | null;
1130
+ org_plan?: Json | null;
1131
+ stripe_customer_details?: Json | null;
1132
+ stripe_customer_id?: string | null;
1133
+ stripe_subscription_details?: Json | null;
1134
+ support_link?: string | null;
1135
+ };
1136
+ Relationships: [];
1137
+ };
1055
1138
  tbl_org_labels: {
1056
1139
  Row: {
1057
- color: string
1058
- created_at: string
1059
- label_id: string
1060
- name: string
1061
- org_id: string
1062
- type: string
1063
- }
1140
+ color: string;
1141
+ created_at: string;
1142
+ label_id: string;
1143
+ name: string;
1144
+ org_id: string;
1145
+ type: string;
1146
+ };
1064
1147
  Insert: {
1065
- color?: string
1066
- created_at?: string
1067
- label_id?: string
1068
- name: string
1069
- org_id: string
1070
- type?: string
1071
- }
1148
+ color?: string;
1149
+ created_at?: string;
1150
+ label_id?: string;
1151
+ name: string;
1152
+ org_id: string;
1153
+ type?: string;
1154
+ };
1072
1155
  Update: {
1073
- color?: string
1074
- created_at?: string
1075
- label_id?: string
1076
- name?: string
1077
- org_id?: string
1078
- type?: string
1079
- }
1156
+ color?: string;
1157
+ created_at?: string;
1158
+ label_id?: string;
1159
+ name?: string;
1160
+ org_id?: string;
1161
+ type?: string;
1162
+ };
1080
1163
  Relationships: [
1081
1164
  {
1082
- foreignKeyName: "tbl_org_labels_org_id_fkey"
1083
- columns: ["org_id"]
1084
- referencedRelation: "tbl_org"
1085
- referencedColumns: ["org_id"]
1165
+ foreignKeyName: 'tbl_org_labels_org_id_fkey';
1166
+ columns: ['org_id'];
1167
+ isOneToOne: false;
1168
+ referencedRelation: 'tbl_org';
1169
+ referencedColumns: ['org_id'];
1086
1170
  },
1087
1171
  {
1088
- foreignKeyName: "tbl_org_labels_org_id_fkey"
1089
- columns: ["org_id"]
1090
- referencedRelation: "view_org"
1091
- referencedColumns: ["org_id"]
1092
- }
1093
- ]
1094
- }
1172
+ foreignKeyName: 'tbl_org_labels_org_id_fkey';
1173
+ columns: ['org_id'];
1174
+ isOneToOne: false;
1175
+ referencedRelation: 'view_org';
1176
+ referencedColumns: ['org_id'];
1177
+ },
1178
+ ];
1179
+ };
1095
1180
  tbl_org_members: {
1096
1181
  Row: {
1097
- created_at: string | null
1098
- email: string
1099
- invited_at: string | null
1100
- invited_by: string | null
1101
- is_active: boolean
1102
- is_owner: boolean | null
1103
- label_ids: string[] | null
1104
- member_color: Database["public"]["Enums"]["enum_chat_colors"]
1105
- member_image: string | null
1106
- member_name: string | null
1107
- org_id: string
1108
- org_phones: string[] | null
1109
- preferences: Json
1110
- role: Database["public"]["Enums"]["enum_member_role"]
1111
- user_id: string | null
1112
- }
1182
+ created_at: string | null;
1183
+ email: string;
1184
+ invited_at: string | null;
1185
+ invited_by: string | null;
1186
+ is_active: boolean;
1187
+ is_owner: boolean | null;
1188
+ label_ids: string[] | null;
1189
+ member_color: Database['public']['Enums']['enum_chat_colors'];
1190
+ member_image: string | null;
1191
+ member_name: string | null;
1192
+ org_id: string;
1193
+ org_phones: string[] | null;
1194
+ preferences: Json;
1195
+ role: Database['public']['Enums']['enum_member_role'];
1196
+ user_id: string | null;
1197
+ };
1113
1198
  Insert: {
1114
- created_at?: string | null
1115
- email: string
1116
- invited_at?: string | null
1117
- invited_by?: string | null
1118
- is_active?: boolean
1119
- is_owner?: boolean | null
1120
- label_ids?: string[] | null
1121
- member_color?: Database["public"]["Enums"]["enum_chat_colors"]
1122
- member_image?: string | null
1123
- member_name?: string | null
1124
- org_id: string
1125
- org_phones?: string[] | null
1126
- preferences?: Json
1127
- role?: Database["public"]["Enums"]["enum_member_role"]
1128
- user_id?: string | null
1129
- }
1199
+ created_at?: string | null;
1200
+ email: string;
1201
+ invited_at?: string | null;
1202
+ invited_by?: string | null;
1203
+ is_active?: boolean;
1204
+ is_owner?: boolean | null;
1205
+ label_ids?: string[] | null;
1206
+ member_color?: Database['public']['Enums']['enum_chat_colors'];
1207
+ member_image?: string | null;
1208
+ member_name?: string | null;
1209
+ org_id: string;
1210
+ org_phones?: string[] | null;
1211
+ preferences?: Json;
1212
+ role?: Database['public']['Enums']['enum_member_role'];
1213
+ user_id?: string | null;
1214
+ };
1130
1215
  Update: {
1131
- created_at?: string | null
1132
- email?: string
1133
- invited_at?: string | null
1134
- invited_by?: string | null
1135
- is_active?: boolean
1136
- is_owner?: boolean | null
1137
- label_ids?: string[] | null
1138
- member_color?: Database["public"]["Enums"]["enum_chat_colors"]
1139
- member_image?: string | null
1140
- member_name?: string | null
1141
- org_id?: string
1142
- org_phones?: string[] | null
1143
- preferences?: Json
1144
- role?: Database["public"]["Enums"]["enum_member_role"]
1145
- user_id?: string | null
1146
- }
1216
+ created_at?: string | null;
1217
+ email?: string;
1218
+ invited_at?: string | null;
1219
+ invited_by?: string | null;
1220
+ is_active?: boolean;
1221
+ is_owner?: boolean | null;
1222
+ label_ids?: string[] | null;
1223
+ member_color?: Database['public']['Enums']['enum_chat_colors'];
1224
+ member_image?: string | null;
1225
+ member_name?: string | null;
1226
+ org_id?: string;
1227
+ org_phones?: string[] | null;
1228
+ preferences?: Json;
1229
+ role?: Database['public']['Enums']['enum_member_role'];
1230
+ user_id?: string | null;
1231
+ };
1147
1232
  Relationships: [
1148
1233
  {
1149
- foreignKeyName: "tbl_org_members_fkey_auth_users"
1150
- columns: ["user_id"]
1151
- referencedRelation: "users"
1152
- referencedColumns: ["id"]
1234
+ foreignKeyName: 'tbl_org_members_fkey_auth_users';
1235
+ columns: ['user_id'];
1236
+ isOneToOne: false;
1237
+ referencedRelation: 'users';
1238
+ referencedColumns: ['id'];
1153
1239
  },
1154
1240
  {
1155
- foreignKeyName: "tbl_org_members_fkey_tbl_org"
1156
- columns: ["org_id"]
1157
- referencedRelation: "tbl_org"
1158
- referencedColumns: ["org_id"]
1241
+ foreignKeyName: 'tbl_org_members_fkey_tbl_org';
1242
+ columns: ['org_id'];
1243
+ isOneToOne: false;
1244
+ referencedRelation: 'tbl_org';
1245
+ referencedColumns: ['org_id'];
1159
1246
  },
1160
1247
  {
1161
- foreignKeyName: "tbl_org_members_fkey_tbl_org"
1162
- columns: ["org_id"]
1163
- referencedRelation: "view_org"
1164
- referencedColumns: ["org_id"]
1165
- }
1166
- ]
1167
- }
1248
+ foreignKeyName: 'tbl_org_members_fkey_tbl_org';
1249
+ columns: ['org_id'];
1250
+ isOneToOne: false;
1251
+ referencedRelation: 'view_org';
1252
+ referencedColumns: ['org_id'];
1253
+ },
1254
+ ];
1255
+ };
1168
1256
  tbl_org_phones: {
1169
1257
  Row: {
1170
- created_at: string
1171
- first_connected_at: string | null
1172
- is_browser_open: boolean
1173
- is_ready: boolean | null
1174
- legacy_version: boolean | null
1175
- org_id: string
1176
- org_phone: string | null
1177
- phone_id: string
1178
- phone_image: string | null
1179
- phone_name: string | null
1180
- phone_state: Json | null
1181
- qr_code: string | null
1182
- server_ip: string | null
1183
- updated_at: string | null
1184
- wa_state: string | null
1185
- wa_version: string | null
1186
- }
1258
+ created_at: string;
1259
+ first_connected_at: string | null;
1260
+ is_browser_open: boolean;
1261
+ is_ready: boolean | null;
1262
+ legacy_version: boolean | null;
1263
+ org_id: string;
1264
+ org_phone: string | null;
1265
+ phone_id: string;
1266
+ phone_image: string | null;
1267
+ phone_name: string | null;
1268
+ phone_state: Json | null;
1269
+ qr_code: string | null;
1270
+ server_image: string | null;
1271
+ server_ip: string | null;
1272
+ updated_at: string | null;
1273
+ wa_state: string | null;
1274
+ wa_version: string | null;
1275
+ };
1187
1276
  Insert: {
1188
- created_at?: string
1189
- first_connected_at?: string | null
1190
- is_browser_open?: boolean
1191
- is_ready?: boolean | null
1192
- legacy_version?: boolean | null
1193
- org_id: string
1194
- org_phone?: string | null
1195
- phone_id?: string
1196
- phone_image?: string | null
1197
- phone_name?: string | null
1198
- phone_state?: Json | null
1199
- qr_code?: string | null
1200
- server_ip?: string | null
1201
- updated_at?: string | null
1202
- wa_state?: string | null
1203
- wa_version?: string | null
1204
- }
1277
+ created_at?: string;
1278
+ first_connected_at?: string | null;
1279
+ is_browser_open?: boolean;
1280
+ is_ready?: boolean | null;
1281
+ legacy_version?: boolean | null;
1282
+ org_id: string;
1283
+ org_phone?: string | null;
1284
+ phone_id?: string;
1285
+ phone_image?: string | null;
1286
+ phone_name?: string | null;
1287
+ phone_state?: Json | null;
1288
+ qr_code?: string | null;
1289
+ server_image?: string | null;
1290
+ server_ip?: string | null;
1291
+ updated_at?: string | null;
1292
+ wa_state?: string | null;
1293
+ wa_version?: string | null;
1294
+ };
1205
1295
  Update: {
1206
- created_at?: string
1207
- first_connected_at?: string | null
1208
- is_browser_open?: boolean
1209
- is_ready?: boolean | null
1210
- legacy_version?: boolean | null
1211
- org_id?: string
1212
- org_phone?: string | null
1213
- phone_id?: string
1214
- phone_image?: string | null
1215
- phone_name?: string | null
1216
- phone_state?: Json | null
1217
- qr_code?: string | null
1218
- server_ip?: string | null
1219
- updated_at?: string | null
1220
- wa_state?: string | null
1221
- wa_version?: string | null
1222
- }
1296
+ created_at?: string;
1297
+ first_connected_at?: string | null;
1298
+ is_browser_open?: boolean;
1299
+ is_ready?: boolean | null;
1300
+ legacy_version?: boolean | null;
1301
+ org_id?: string;
1302
+ org_phone?: string | null;
1303
+ phone_id?: string;
1304
+ phone_image?: string | null;
1305
+ phone_name?: string | null;
1306
+ phone_state?: Json | null;
1307
+ qr_code?: string | null;
1308
+ server_image?: string | null;
1309
+ server_ip?: string | null;
1310
+ updated_at?: string | null;
1311
+ wa_state?: string | null;
1312
+ wa_version?: string | null;
1313
+ };
1223
1314
  Relationships: [
1224
1315
  {
1225
- foreignKeyName: "tbl_org_phones_fkey_tbl_org"
1226
- columns: ["org_id"]
1227
- referencedRelation: "tbl_org"
1228
- referencedColumns: ["org_id"]
1316
+ foreignKeyName: 'tbl_org_phones_fkey_tbl_org';
1317
+ columns: ['org_id'];
1318
+ isOneToOne: false;
1319
+ referencedRelation: 'tbl_org';
1320
+ referencedColumns: ['org_id'];
1229
1321
  },
1230
1322
  {
1231
- foreignKeyName: "tbl_org_phones_fkey_tbl_org"
1232
- columns: ["org_id"]
1233
- referencedRelation: "view_org"
1234
- referencedColumns: ["org_id"]
1323
+ foreignKeyName: 'tbl_org_phones_fkey_tbl_org';
1324
+ columns: ['org_id'];
1325
+ isOneToOne: false;
1326
+ referencedRelation: 'view_org';
1327
+ referencedColumns: ['org_id'];
1235
1328
  },
1236
1329
  {
1237
- foreignKeyName: "tbl_org_phones_org_id_fkey"
1238
- columns: ["org_id"]
1239
- referencedRelation: "tbl_org"
1240
- referencedColumns: ["org_id"]
1330
+ foreignKeyName: 'tbl_org_phones_org_id_fkey';
1331
+ columns: ['org_id'];
1332
+ isOneToOne: false;
1333
+ referencedRelation: 'tbl_org';
1334
+ referencedColumns: ['org_id'];
1241
1335
  },
1242
1336
  {
1243
- foreignKeyName: "tbl_org_phones_org_id_fkey"
1244
- columns: ["org_id"]
1245
- referencedRelation: "view_org"
1246
- referencedColumns: ["org_id"]
1247
- }
1248
- ]
1249
- }
1337
+ foreignKeyName: 'tbl_org_phones_org_id_fkey';
1338
+ columns: ['org_id'];
1339
+ isOneToOne: false;
1340
+ referencedRelation: 'view_org';
1341
+ referencedColumns: ['org_id'];
1342
+ },
1343
+ ];
1344
+ };
1250
1345
  tbl_quick_replies: {
1251
1346
  Row: {
1252
- command: string | null
1253
- created_at: string
1254
- message_payload: Json | null
1255
- org_id: string | null
1256
- reply_id: string
1257
- }
1347
+ command: string | null;
1348
+ created_at: string;
1349
+ message_payload: Json | null;
1350
+ org_id: string | null;
1351
+ reply_id: string;
1352
+ };
1258
1353
  Insert: {
1259
- command?: string | null
1260
- created_at?: string
1261
- message_payload?: Json | null
1262
- org_id?: string | null
1263
- reply_id?: string
1264
- }
1354
+ command?: string | null;
1355
+ created_at?: string;
1356
+ message_payload?: Json | null;
1357
+ org_id?: string | null;
1358
+ reply_id?: string;
1359
+ };
1265
1360
  Update: {
1266
- command?: string | null
1267
- created_at?: string
1268
- message_payload?: Json | null
1269
- org_id?: string | null
1270
- reply_id?: string
1271
- }
1361
+ command?: string | null;
1362
+ created_at?: string;
1363
+ message_payload?: Json | null;
1364
+ org_id?: string | null;
1365
+ reply_id?: string;
1366
+ };
1272
1367
  Relationships: [
1273
1368
  {
1274
- foreignKeyName: "tbl_quick_replies_org_id_fkey"
1275
- columns: ["org_id"]
1276
- referencedRelation: "tbl_org"
1277
- referencedColumns: ["org_id"]
1369
+ foreignKeyName: 'tbl_quick_replies_org_id_fkey';
1370
+ columns: ['org_id'];
1371
+ isOneToOne: false;
1372
+ referencedRelation: 'tbl_org';
1373
+ referencedColumns: ['org_id'];
1278
1374
  },
1279
1375
  {
1280
- foreignKeyName: "tbl_quick_replies_org_id_fkey"
1281
- columns: ["org_id"]
1282
- referencedRelation: "view_org"
1283
- referencedColumns: ["org_id"]
1284
- }
1285
- ]
1286
- }
1376
+ foreignKeyName: 'tbl_quick_replies_org_id_fkey';
1377
+ columns: ['org_id'];
1378
+ isOneToOne: false;
1379
+ referencedRelation: 'view_org';
1380
+ referencedColumns: ['org_id'];
1381
+ },
1382
+ ];
1383
+ };
1287
1384
  tbl_tools_whatsapp_links: {
1288
1385
  Row: {
1289
- created_at: string
1290
- link_id: string
1291
- link_name: string
1292
- message: string | null
1293
- phone: string
1294
- }
1386
+ created_at: string;
1387
+ link_id: string;
1388
+ link_name: string;
1389
+ message: string | null;
1390
+ phone: string;
1391
+ };
1295
1392
  Insert: {
1296
- created_at?: string
1297
- link_id?: string
1298
- link_name: string
1299
- message?: string | null
1300
- phone: string
1301
- }
1393
+ created_at?: string;
1394
+ link_id?: string;
1395
+ link_name: string;
1396
+ message?: string | null;
1397
+ phone: string;
1398
+ };
1302
1399
  Update: {
1303
- created_at?: string
1304
- link_id?: string
1305
- link_name?: string
1306
- message?: string | null
1307
- phone?: string
1308
- }
1309
- Relationships: []
1310
- }
1311
- }
1400
+ created_at?: string;
1401
+ link_id?: string;
1402
+ link_name?: string;
1403
+ message?: string | null;
1404
+ phone?: string;
1405
+ };
1406
+ Relationships: [];
1407
+ };
1408
+ };
1312
1409
  Views: {
1313
1410
  view_broadcast_logs: {
1314
1411
  Row: {
1315
- broadcast_id: string | null
1316
- created_at: string | null
1317
- delivery_percentage: number | null
1318
- failed_chats: number | null
1319
- message_payload: Json | null
1320
- org_id: string | null
1321
- pending_chats: number | null
1322
- performed_at: string | null
1323
- performed_by: string | null
1324
- read_percentage: number | null
1325
- scheduled_at: string | null
1326
- sent_chats: number | null
1327
- total_chats: number | null
1328
- total_delivered_count: number | null
1329
- total_member_count: number | null
1330
- total_read_count: number | null
1331
- }
1412
+ broadcast_id: string | null;
1413
+ broadcast_status:
1414
+ | Database['public']['Enums']['enum_broadcast_status']
1415
+ | null;
1416
+ created_at: string | null;
1417
+ delivery_percentage: number | null;
1418
+ failed_chats: number | null;
1419
+ message_payload: Json | null;
1420
+ org_id: string | null;
1421
+ pending_chats: number | null;
1422
+ performed_at: string | null;
1423
+ performed_by: string | null;
1424
+ read_percentage: number | null;
1425
+ scheduled_at: string | null;
1426
+ sent_chats: number | null;
1427
+ total_chats: number | null;
1428
+ total_delivered_count: number | null;
1429
+ total_member_count: number | null;
1430
+ total_read_count: number | null;
1431
+ };
1332
1432
  Relationships: [
1333
1433
  {
1334
- foreignKeyName: "tbl_broadcast_messages_org_id_fkey"
1335
- columns: ["org_id"]
1336
- referencedRelation: "tbl_org"
1337
- referencedColumns: ["org_id"]
1434
+ foreignKeyName: 'tbl_broadcast_messages_org_id_fkey';
1435
+ columns: ['org_id'];
1436
+ isOneToOne: false;
1437
+ referencedRelation: 'tbl_org';
1438
+ referencedColumns: ['org_id'];
1338
1439
  },
1339
1440
  {
1340
- foreignKeyName: "tbl_broadcast_messages_org_id_fkey"
1341
- columns: ["org_id"]
1342
- referencedRelation: "view_org"
1343
- referencedColumns: ["org_id"]
1344
- }
1345
- ]
1346
- }
1441
+ foreignKeyName: 'tbl_broadcast_messages_org_id_fkey';
1442
+ columns: ['org_id'];
1443
+ isOneToOne: false;
1444
+ referencedRelation: 'view_org';
1445
+ referencedColumns: ['org_id'];
1446
+ },
1447
+ ];
1448
+ };
1347
1449
  view_chats: {
1348
1450
  Row: {
1349
- active_phone: string | null
1350
- chat_access: Json | null
1351
- chat_id: string | null
1352
- chat_image: string | null
1353
- chat_name: string | null
1354
- chat_type: string | null
1355
- created_at: string | null
1356
- custom_properties: Json | null
1357
- flag_count: number | null
1358
- group_description: string | null
1359
- hubspot_metadata: Json | null
1360
- invite_link: string | null
1361
- is_archived: boolean | null
1362
- is_muted: boolean | null
1363
- label_ids: Json | null
1364
- last_read_timestamp: string | null
1365
- latest_message: Json | null
1366
- member_count: number | null
1367
- message_unread_count: number | null
1368
- org_id: string | null
1369
- org_phone: string | null
1370
- updated_at: string | null
1371
- }
1372
- Relationships: []
1373
- }
1451
+ active_phone: string | null;
1452
+ chat_access: Json | null;
1453
+ chat_id: string | null;
1454
+ chat_image: string | null;
1455
+ chat_name: string | null;
1456
+ chat_type: string | null;
1457
+ created_at: string | null;
1458
+ custom_properties: Json | null;
1459
+ flag_count: number | null;
1460
+ group_description: string | null;
1461
+ hubspot_metadata: Json | null;
1462
+ invite_link: string | null;
1463
+ is_archived: boolean | null;
1464
+ is_muted: boolean | null;
1465
+ label_ids: Json | null;
1466
+ last_read_timestamp: string | null;
1467
+ latest_message: Json | null;
1468
+ member_count: number | null;
1469
+ message_unread_count: number | null;
1470
+ org_id: string | null;
1471
+ org_phone: string | null;
1472
+ updated_at: string | null;
1473
+ };
1474
+ Relationships: [];
1475
+ };
1374
1476
  view_org: {
1375
1477
  Row: {
1376
- created_at: string | null
1377
- is_enterprise: boolean | null
1378
- is_free_trial: boolean | null
1379
- is_hubspot_connected: boolean | null
1380
- org_id: string | null
1381
- org_image: string | null
1382
- org_metadata: Json | null
1383
- org_name: string | null
1384
- org_plan: Json | null
1385
- pending_days: number | null
1386
- phone_limit: string | null
1387
- plan_id: string | null
1388
- stripe_customer_details: Json | null
1389
- stripe_customer_id: string | null
1390
- stripe_subscription_details: Json | null
1391
- subscription_status: string | null
1392
- support_link: string | null
1393
- user_limit: string | null
1394
- }
1478
+ created_at: string | null;
1479
+ is_enterprise: boolean | null;
1480
+ is_free_trial: boolean | null;
1481
+ is_hubspot_connected: boolean | null;
1482
+ org_id: string | null;
1483
+ org_image: string | null;
1484
+ org_metadata: Json | null;
1485
+ org_name: string | null;
1486
+ org_plan: Json | null;
1487
+ pending_days: number | null;
1488
+ phone_limit: string | null;
1489
+ plan_id: string | null;
1490
+ stripe_customer_details: Json | null;
1491
+ stripe_customer_id: string | null;
1492
+ stripe_subscription_details: Json | null;
1493
+ subscription_status: string | null;
1494
+ support_link: string | null;
1495
+ user_limit: string | null;
1496
+ };
1395
1497
  Insert: {
1396
- created_at?: string | null
1397
- is_enterprise?: never
1398
- is_free_trial?: never
1399
- is_hubspot_connected?: never
1400
- org_id?: string | null
1401
- org_image?: string | null
1402
- org_metadata?: Json | null
1403
- org_name?: string | null
1404
- org_plan?: Json | null
1405
- pending_days?: never
1406
- phone_limit?: never
1407
- plan_id?: never
1408
- stripe_customer_details?: Json | null
1409
- stripe_customer_id?: string | null
1410
- stripe_subscription_details?: Json | null
1411
- subscription_status?: never
1412
- support_link?: string | null
1413
- user_limit?: never
1414
- }
1498
+ created_at?: string | null;
1499
+ is_enterprise?: never;
1500
+ is_free_trial?: never;
1501
+ is_hubspot_connected?: never;
1502
+ org_id?: string | null;
1503
+ org_image?: string | null;
1504
+ org_metadata?: Json | null;
1505
+ org_name?: string | null;
1506
+ org_plan?: Json | null;
1507
+ pending_days?: never;
1508
+ phone_limit?: never;
1509
+ plan_id?: never;
1510
+ stripe_customer_details?: Json | null;
1511
+ stripe_customer_id?: string | null;
1512
+ stripe_subscription_details?: Json | null;
1513
+ subscription_status?: never;
1514
+ support_link?: string | null;
1515
+ user_limit?: never;
1516
+ };
1415
1517
  Update: {
1416
- created_at?: string | null
1417
- is_enterprise?: never
1418
- is_free_trial?: never
1419
- is_hubspot_connected?: never
1420
- org_id?: string | null
1421
- org_image?: string | null
1422
- org_metadata?: Json | null
1423
- org_name?: string | null
1424
- org_plan?: Json | null
1425
- pending_days?: never
1426
- phone_limit?: never
1427
- plan_id?: never
1428
- stripe_customer_details?: Json | null
1429
- stripe_customer_id?: string | null
1430
- stripe_subscription_details?: Json | null
1431
- subscription_status?: never
1432
- support_link?: string | null
1433
- user_limit?: never
1434
- }
1435
- Relationships: []
1436
- }
1437
- }
1518
+ created_at?: string | null;
1519
+ is_enterprise?: never;
1520
+ is_free_trial?: never;
1521
+ is_hubspot_connected?: never;
1522
+ org_id?: string | null;
1523
+ org_image?: string | null;
1524
+ org_metadata?: Json | null;
1525
+ org_name?: string | null;
1526
+ org_plan?: Json | null;
1527
+ pending_days?: never;
1528
+ phone_limit?: never;
1529
+ plan_id?: never;
1530
+ stripe_customer_details?: Json | null;
1531
+ stripe_customer_id?: string | null;
1532
+ stripe_subscription_details?: Json | null;
1533
+ subscription_status?: never;
1534
+ support_link?: string | null;
1535
+ user_limit?: never;
1536
+ };
1537
+ Relationships: [];
1538
+ };
1539
+ };
1438
1540
  Functions: {
1541
+ create_partition: {
1542
+ Args: {
1543
+ org_id_input: string;
1544
+ };
1545
+ Returns: boolean;
1546
+ };
1547
+ drop_partition: {
1548
+ Args: {
1549
+ org_id_input: string;
1550
+ };
1551
+ Returns: boolean;
1552
+ };
1439
1553
  gen_id: {
1440
1554
  Args: {
1441
- prefix: string
1442
- size?: number
1443
- alphabet?: string
1444
- }
1445
- Returns: string
1446
- }
1555
+ prefix: string;
1556
+ size?: number;
1557
+ alphabet?: string;
1558
+ };
1559
+ Returns: string;
1560
+ };
1447
1561
  gen_ticket_id: {
1448
1562
  Args: {
1449
- org_id_input: string
1450
- }
1451
- Returns: string
1452
- }
1563
+ org_id_input: string;
1564
+ };
1565
+ Returns: string;
1566
+ };
1453
1567
  generate_access_token: {
1454
1568
  Args: {
1455
- name_input?: string
1456
- type_input?: Database["public"]["Enums"]["enum_integration_type"]
1457
- org_id_input?: string
1458
- }
1459
- Returns: Json
1460
- }
1569
+ name_input?: string;
1570
+ type_input?: Database['public']['Enums']['enum_integration_type'];
1571
+ org_id_input?: string;
1572
+ };
1573
+ Returns: Json;
1574
+ };
1461
1575
  get_api_auth_details: {
1462
1576
  Args: {
1463
- org_id_input?: string
1464
- org_phone_input?: string
1465
- token_id_input?: string
1466
- token_type_input?: Database["public"]["Enums"]["enum_integration_type"]
1467
- }
1468
- Returns: Json
1469
- }
1577
+ org_id_input?: string;
1578
+ org_phone_input?: string;
1579
+ token_id_input?: string;
1580
+ token_type_input?: Database['public']['Enums']['enum_integration_type'];
1581
+ };
1582
+ Returns: Json;
1583
+ };
1470
1584
  get_chat_labels_data: {
1471
1585
  Args: {
1472
- org_id_input: string
1473
- chat_ids_input?: string[]
1474
- }
1475
- Returns: unknown
1476
- }
1586
+ org_id_input: string;
1587
+ chat_ids_input?: string[];
1588
+ };
1589
+ Returns: Json[];
1590
+ };
1477
1591
  get_chat_members: {
1478
1592
  Args: {
1479
- org_id_input?: string
1480
- chat_id_input?: string[]
1481
- }
1482
- Returns: Json
1483
- }
1593
+ org_id_input?: string;
1594
+ chat_id_input?: string[];
1595
+ };
1596
+ Returns: Json;
1597
+ };
1484
1598
  get_chats: {
1485
1599
  Args: {
1486
- org_id_input?: string
1487
- chat_id_input?: string[]
1488
- }
1489
- Returns: Json
1490
- }
1600
+ org_id_input?: string;
1601
+ chat_id_input?: string[];
1602
+ };
1603
+ Returns: Json;
1604
+ };
1491
1605
  get_chats_info: {
1492
1606
  Args: {
1493
- chat_id_input: string
1494
- org_id_input: string
1495
- org_phone_input?: string
1496
- }
1497
- Returns: Json
1498
- }
1607
+ chat_id_input: string;
1608
+ org_id_input: string;
1609
+ org_phone_input?: string;
1610
+ };
1611
+ Returns: Json;
1612
+ };
1499
1613
  get_contacts: {
1500
1614
  Args: {
1501
- org_id_input: string
1502
- contact_ids_input?: string[]
1503
- with_chats?: boolean
1504
- with_name?: boolean
1505
- }
1506
- Returns: Json
1507
- }
1615
+ org_id_input: string;
1616
+ contact_ids_input?: string[];
1617
+ with_chats?: boolean;
1618
+ with_name?: boolean;
1619
+ };
1620
+ Returns: Json;
1621
+ };
1508
1622
  get_dashboard_statistics: {
1509
1623
  Args: {
1510
- org_id_input: string
1511
- interval_input?: unknown
1512
- chat_id_input?: string[]
1513
- }
1514
- Returns: Json
1515
- }
1624
+ org_id_input: string;
1625
+ interval_input?: unknown;
1626
+ chat_id_input?: string[];
1627
+ };
1628
+ Returns: Json;
1629
+ };
1516
1630
  get_export_chats_data: {
1517
1631
  Args: {
1518
- org_id_input: string
1519
- chat_ids?: string[]
1520
- }
1521
- Returns: Json
1522
- }
1632
+ org_id_input: string;
1633
+ chat_ids?: string[];
1634
+ };
1635
+ Returns: Json;
1636
+ };
1523
1637
  get_integration_data: {
1524
1638
  Args: {
1525
- org_id_input?: string
1526
- }
1527
- Returns: Json
1528
- }
1639
+ org_id_input?: string;
1640
+ };
1641
+ Returns: Json;
1642
+ };
1529
1643
  get_messages_notifications_reactions: {
1530
1644
  Args: {
1531
- org_id_input: string
1532
- chat_id_input?: string[]
1533
- message_limit_input?: number
1534
- reaction_notification_limit_input?: number
1535
- last_updated_at_input?: string
1536
- }
1537
- Returns: Json
1538
- }
1645
+ org_id_input: string;
1646
+ chat_id_input?: string[];
1647
+ message_limit_input?: number;
1648
+ reaction_notification_limit_input?: number;
1649
+ last_updated_at_input?: string;
1650
+ };
1651
+ Returns: Json;
1652
+ };
1539
1653
  get_org: {
1540
1654
  Args: {
1541
- org_id_input?: string
1542
- }
1543
- Returns: Json
1544
- }
1655
+ org_id_input?: string;
1656
+ };
1657
+ Returns: Json;
1658
+ };
1545
1659
  get_org_phones: {
1546
1660
  Args: {
1547
- org_id_input?: string
1548
- phone_id_input?: string
1549
- }
1550
- Returns: Json
1551
- }
1661
+ org_id_input?: string;
1662
+ phone_id_input?: string;
1663
+ };
1664
+ Returns: Json;
1665
+ };
1552
1666
  get_team_metrics: {
1553
1667
  Args: {
1554
- org_id_input: string
1555
- chat_id_input?: string[]
1556
- interval_input?: unknown
1557
- }
1558
- Returns: Json
1559
- }
1668
+ org_id_input: string;
1669
+ chat_id_input?: string[];
1670
+ interval_input?: unknown;
1671
+ };
1672
+ Returns: Json;
1673
+ };
1560
1674
  get_ticket_info: {
1561
1675
  Args: {
1562
- ticket_id_input?: string
1563
- org_id_input?: string
1564
- chat_id_input?: string
1565
- unique_message_id_input?: string
1566
- }
1567
- Returns: Json
1568
- }
1676
+ ticket_id_input?: string;
1677
+ org_id_input?: string;
1678
+ chat_id_input?: string;
1679
+ unique_message_id_input?: string;
1680
+ };
1681
+ Returns: Json;
1682
+ };
1569
1683
  image_path: {
1570
1684
  Args: {
1571
- path_input?: string
1572
- bucket_name?: string
1573
- req_base?: boolean
1574
- }
1575
- Returns: string
1576
- }
1685
+ path_input?: string;
1686
+ bucket_name?: string;
1687
+ req_base?: boolean;
1688
+ };
1689
+ Returns: string;
1690
+ };
1577
1691
  list_org_from_user: {
1578
- Args: Record<PropertyKey, never>
1579
- Returns: unknown
1580
- }
1692
+ Args: Record<PropertyKey, never>;
1693
+ Returns: string[];
1694
+ };
1581
1695
  list_role_from_user: {
1582
- Args: Record<PropertyKey, never>
1583
- Returns: Database["public"]["Enums"]["enum_member_role"]
1584
- }
1696
+ Args: Record<PropertyKey, never>;
1697
+ Returns: Database['public']['Enums']['enum_member_role'];
1698
+ };
1585
1699
  update_labels: {
1586
1700
  Args: {
1587
- org_id_input: string
1588
- tbl_type: string
1589
- label_ids_input: Json
1590
- row_id_input: string[]
1591
- replace_labels?: boolean
1592
- }
1593
- Returns: undefined
1594
- }
1595
- }
1701
+ org_id_input: string;
1702
+ tbl_type: string;
1703
+ row_label_map: Json;
1704
+ replace_labels?: boolean;
1705
+ };
1706
+ Returns: undefined;
1707
+ };
1708
+ };
1596
1709
  Enums: {
1710
+ enum_broadcast_status: 'inprogress' | 'completed' | 'stopped';
1597
1711
  enum_chat_colors:
1598
- | "#B4876E"
1599
- | "#A5B337"
1600
- | "#06CF9C"
1601
- | "#25D366"
1602
- | "#02A698"
1603
- | "#7D9EF1"
1604
- | "#007BFC"
1605
- | "#5E47DE"
1606
- | "#7F66FF"
1607
- | "#9333EA"
1608
- | "#FA6533"
1609
- | "#C4532D"
1610
- | "#DC2626"
1611
- | "#FF2E74"
1612
- | "#DB2777"
1613
- enum_chat_tickets_status: "open" | "inprogress" | "closed" | "archived"
1712
+ | '#B4876E'
1713
+ | '#A5B337'
1714
+ | '#06CF9C'
1715
+ | '#25D366'
1716
+ | '#02A698'
1717
+ | '#7D9EF1'
1718
+ | '#007BFC'
1719
+ | '#5E47DE'
1720
+ | '#7F66FF'
1721
+ | '#9333EA'
1722
+ | '#FA6533'
1723
+ | '#C4532D'
1724
+ | '#DC2626'
1725
+ | '#FF2E74'
1726
+ | '#DB2777';
1727
+ enum_chat_tickets_status: 'open' | 'inprogress' | 'closed' | 'archived';
1614
1728
  enum_integration_name:
1615
- | "org.created"
1616
- | "org.updated"
1617
- | "org.member.created"
1618
- | "org.member.updated"
1619
- | "org.phone.created"
1620
- | "org.phone.connected"
1621
- | "org.phone.disconnected"
1622
- | "org.subscription.trial_will_end"
1623
- | "chat.created"
1624
- | "chat.updated"
1625
- | "message.created"
1626
- | "message.updated"
1627
- | "message.deleted"
1628
- | "message.ack.updated"
1629
- | "reaction.created"
1630
- | "reaction.updated"
1631
- | "ticket.created"
1632
- | "ticket.updated"
1633
- | "ticket.deleted"
1729
+ | 'org.created'
1730
+ | 'org.updated'
1731
+ | 'org.member.created'
1732
+ | 'org.member.updated'
1733
+ | 'org.phone.created'
1734
+ | 'org.phone.connected'
1735
+ | 'org.phone.disconnected'
1736
+ | 'org.subscription.trial_will_end'
1737
+ | 'chat.created'
1738
+ | 'chat.updated'
1739
+ | 'message.created'
1740
+ | 'message.updated'
1741
+ | 'message.deleted'
1742
+ | 'message.ack.updated'
1743
+ | 'reaction.created'
1744
+ | 'reaction.updated'
1745
+ | 'ticket.created'
1746
+ | 'ticket.updated'
1747
+ | 'ticket.deleted';
1634
1748
  enum_integration_type:
1635
- | "zapier"
1636
- | "pabbly"
1637
- | "api"
1638
- | "webhook"
1639
- | "hubspot"
1640
- | "freshdesk"
1641
- | "slack"
1642
- | "jira"
1643
- | "salesforce"
1644
- enum_member_role: "admin" | "member"
1645
- }
1749
+ | 'zapier'
1750
+ | 'pabbly'
1751
+ | 'api'
1752
+ | 'webhook'
1753
+ | 'hubspot'
1754
+ | 'freshdesk'
1755
+ | 'slack'
1756
+ | 'jira'
1757
+ | 'salesforce';
1758
+ enum_member_role: 'admin' | 'member';
1759
+ };
1646
1760
  CompositeTypes: {
1647
- [_ in never]: never
1648
- }
1649
- }
1761
+ [_ in never]: never;
1762
+ };
1763
+ };
1650
1764
  storage: {
1651
1765
  Tables: {
1652
1766
  buckets: {
1653
1767
  Row: {
1654
- allowed_mime_types: string[] | null
1655
- avif_autodetection: boolean | null
1656
- created_at: string | null
1657
- file_size_limit: number | null
1658
- id: string
1659
- name: string
1660
- owner: string | null
1661
- public: boolean | null
1662
- updated_at: string | null
1663
- }
1768
+ allowed_mime_types: string[] | null;
1769
+ avif_autodetection: boolean | null;
1770
+ created_at: string | null;
1771
+ file_size_limit: number | null;
1772
+ id: string;
1773
+ name: string;
1774
+ owner: string | null;
1775
+ owner_id: string | null;
1776
+ public: boolean | null;
1777
+ updated_at: string | null;
1778
+ };
1664
1779
  Insert: {
1665
- allowed_mime_types?: string[] | null
1666
- avif_autodetection?: boolean | null
1667
- created_at?: string | null
1668
- file_size_limit?: number | null
1669
- id: string
1670
- name: string
1671
- owner?: string | null
1672
- public?: boolean | null
1673
- updated_at?: string | null
1674
- }
1780
+ allowed_mime_types?: string[] | null;
1781
+ avif_autodetection?: boolean | null;
1782
+ created_at?: string | null;
1783
+ file_size_limit?: number | null;
1784
+ id: string;
1785
+ name: string;
1786
+ owner?: string | null;
1787
+ owner_id?: string | null;
1788
+ public?: boolean | null;
1789
+ updated_at?: string | null;
1790
+ };
1675
1791
  Update: {
1676
- allowed_mime_types?: string[] | null
1677
- avif_autodetection?: boolean | null
1678
- created_at?: string | null
1679
- file_size_limit?: number | null
1680
- id?: string
1681
- name?: string
1682
- owner?: string | null
1683
- public?: boolean | null
1684
- updated_at?: string | null
1685
- }
1686
- Relationships: [
1687
- {
1688
- foreignKeyName: "buckets_owner_fkey"
1689
- columns: ["owner"]
1690
- referencedRelation: "users"
1691
- referencedColumns: ["id"]
1692
- }
1693
- ]
1694
- }
1792
+ allowed_mime_types?: string[] | null;
1793
+ avif_autodetection?: boolean | null;
1794
+ created_at?: string | null;
1795
+ file_size_limit?: number | null;
1796
+ id?: string;
1797
+ name?: string;
1798
+ owner?: string | null;
1799
+ owner_id?: string | null;
1800
+ public?: boolean | null;
1801
+ updated_at?: string | null;
1802
+ };
1803
+ Relationships: [];
1804
+ };
1695
1805
  migrations: {
1696
1806
  Row: {
1697
- executed_at: string | null
1698
- hash: string
1699
- id: number
1700
- name: string
1701
- }
1807
+ executed_at: string | null;
1808
+ hash: string;
1809
+ id: number;
1810
+ name: string;
1811
+ };
1702
1812
  Insert: {
1703
- executed_at?: string | null
1704
- hash: string
1705
- id: number
1706
- name: string
1707
- }
1813
+ executed_at?: string | null;
1814
+ hash: string;
1815
+ id: number;
1816
+ name: string;
1817
+ };
1708
1818
  Update: {
1709
- executed_at?: string | null
1710
- hash?: string
1711
- id?: number
1712
- name?: string
1713
- }
1714
- Relationships: []
1715
- }
1819
+ executed_at?: string | null;
1820
+ hash?: string;
1821
+ id?: number;
1822
+ name?: string;
1823
+ };
1824
+ Relationships: [];
1825
+ };
1716
1826
  objects: {
1717
1827
  Row: {
1718
- bucket_id: string | null
1719
- created_at: string | null
1720
- id: string
1721
- last_accessed_at: string | null
1722
- metadata: Json | null
1723
- name: string | null
1724
- owner: string | null
1725
- path_tokens: string[] | null
1726
- updated_at: string | null
1727
- version: string | null
1728
- }
1828
+ bucket_id: string | null;
1829
+ created_at: string | null;
1830
+ id: string;
1831
+ last_accessed_at: string | null;
1832
+ metadata: Json | null;
1833
+ name: string | null;
1834
+ owner: string | null;
1835
+ owner_id: string | null;
1836
+ path_tokens: string[] | null;
1837
+ updated_at: string | null;
1838
+ version: string | null;
1839
+ };
1729
1840
  Insert: {
1730
- bucket_id?: string | null
1731
- created_at?: string | null
1732
- id?: string
1733
- last_accessed_at?: string | null
1734
- metadata?: Json | null
1735
- name?: string | null
1736
- owner?: string | null
1737
- path_tokens?: string[] | null
1738
- updated_at?: string | null
1739
- version?: string | null
1740
- }
1841
+ bucket_id?: string | null;
1842
+ created_at?: string | null;
1843
+ id?: string;
1844
+ last_accessed_at?: string | null;
1845
+ metadata?: Json | null;
1846
+ name?: string | null;
1847
+ owner?: string | null;
1848
+ owner_id?: string | null;
1849
+ path_tokens?: string[] | null;
1850
+ updated_at?: string | null;
1851
+ version?: string | null;
1852
+ };
1741
1853
  Update: {
1742
- bucket_id?: string | null
1743
- created_at?: string | null
1744
- id?: string
1745
- last_accessed_at?: string | null
1746
- metadata?: Json | null
1747
- name?: string | null
1748
- owner?: string | null
1749
- path_tokens?: string[] | null
1750
- updated_at?: string | null
1751
- version?: string | null
1752
- }
1854
+ bucket_id?: string | null;
1855
+ created_at?: string | null;
1856
+ id?: string;
1857
+ last_accessed_at?: string | null;
1858
+ metadata?: Json | null;
1859
+ name?: string | null;
1860
+ owner?: string | null;
1861
+ owner_id?: string | null;
1862
+ path_tokens?: string[] | null;
1863
+ updated_at?: string | null;
1864
+ version?: string | null;
1865
+ };
1753
1866
  Relationships: [
1754
1867
  {
1755
- foreignKeyName: "objects_bucketId_fkey"
1756
- columns: ["bucket_id"]
1757
- referencedRelation: "buckets"
1758
- referencedColumns: ["id"]
1759
- }
1760
- ]
1761
- }
1762
- }
1868
+ foreignKeyName: 'objects_bucketId_fkey';
1869
+ columns: ['bucket_id'];
1870
+ isOneToOne: false;
1871
+ referencedRelation: 'buckets';
1872
+ referencedColumns: ['id'];
1873
+ },
1874
+ ];
1875
+ };
1876
+ s3_multipart_uploads: {
1877
+ Row: {
1878
+ bucket_id: string;
1879
+ created_at: string;
1880
+ id: string;
1881
+ in_progress_size: number;
1882
+ key: string;
1883
+ owner_id: string | null;
1884
+ upload_signature: string;
1885
+ version: string;
1886
+ };
1887
+ Insert: {
1888
+ bucket_id: string;
1889
+ created_at?: string;
1890
+ id: string;
1891
+ in_progress_size?: number;
1892
+ key: string;
1893
+ owner_id?: string | null;
1894
+ upload_signature: string;
1895
+ version: string;
1896
+ };
1897
+ Update: {
1898
+ bucket_id?: string;
1899
+ created_at?: string;
1900
+ id?: string;
1901
+ in_progress_size?: number;
1902
+ key?: string;
1903
+ owner_id?: string | null;
1904
+ upload_signature?: string;
1905
+ version?: string;
1906
+ };
1907
+ Relationships: [
1908
+ {
1909
+ foreignKeyName: 's3_multipart_uploads_bucket_id_fkey';
1910
+ columns: ['bucket_id'];
1911
+ isOneToOne: false;
1912
+ referencedRelation: 'buckets';
1913
+ referencedColumns: ['id'];
1914
+ },
1915
+ ];
1916
+ };
1917
+ s3_multipart_uploads_parts: {
1918
+ Row: {
1919
+ bucket_id: string;
1920
+ created_at: string;
1921
+ etag: string;
1922
+ id: string;
1923
+ key: string;
1924
+ owner_id: string | null;
1925
+ part_number: number;
1926
+ size: number;
1927
+ upload_id: string;
1928
+ version: string;
1929
+ };
1930
+ Insert: {
1931
+ bucket_id: string;
1932
+ created_at?: string;
1933
+ etag: string;
1934
+ id?: string;
1935
+ key: string;
1936
+ owner_id?: string | null;
1937
+ part_number: number;
1938
+ size?: number;
1939
+ upload_id: string;
1940
+ version: string;
1941
+ };
1942
+ Update: {
1943
+ bucket_id?: string;
1944
+ created_at?: string;
1945
+ etag?: string;
1946
+ id?: string;
1947
+ key?: string;
1948
+ owner_id?: string | null;
1949
+ part_number?: number;
1950
+ size?: number;
1951
+ upload_id?: string;
1952
+ version?: string;
1953
+ };
1954
+ Relationships: [
1955
+ {
1956
+ foreignKeyName: 's3_multipart_uploads_parts_bucket_id_fkey';
1957
+ columns: ['bucket_id'];
1958
+ isOneToOne: false;
1959
+ referencedRelation: 'buckets';
1960
+ referencedColumns: ['id'];
1961
+ },
1962
+ {
1963
+ foreignKeyName: 's3_multipart_uploads_parts_upload_id_fkey';
1964
+ columns: ['upload_id'];
1965
+ isOneToOne: false;
1966
+ referencedRelation: 's3_multipart_uploads';
1967
+ referencedColumns: ['id'];
1968
+ },
1969
+ ];
1970
+ };
1971
+ };
1763
1972
  Views: {
1764
- [_ in never]: never
1765
- }
1973
+ [_ in never]: never;
1974
+ };
1766
1975
  Functions: {
1767
1976
  can_insert_object: {
1768
1977
  Args: {
1769
- bucketid: string
1770
- name: string
1771
- owner: string
1772
- metadata: Json
1773
- }
1774
- Returns: undefined
1775
- }
1978
+ bucketid: string;
1979
+ name: string;
1980
+ owner: string;
1981
+ metadata: Json;
1982
+ };
1983
+ Returns: undefined;
1984
+ };
1776
1985
  extension: {
1777
1986
  Args: {
1778
- name: string
1779
- }
1780
- Returns: string
1781
- }
1987
+ name: string;
1988
+ };
1989
+ Returns: string;
1990
+ };
1782
1991
  filename: {
1783
1992
  Args: {
1784
- name: string
1785
- }
1786
- Returns: string
1787
- }
1993
+ name: string;
1994
+ };
1995
+ Returns: string;
1996
+ };
1788
1997
  foldername: {
1789
1998
  Args: {
1790
- name: string
1791
- }
1792
- Returns: unknown
1793
- }
1999
+ name: string;
2000
+ };
2001
+ Returns: string[];
2002
+ };
1794
2003
  get_size_by_bucket: {
1795
- Args: Record<PropertyKey, never>
2004
+ Args: Record<PropertyKey, never>;
1796
2005
  Returns: {
1797
- size: number
1798
- bucket_id: string
1799
- }[]
1800
- }
2006
+ size: number;
2007
+ bucket_id: string;
2008
+ }[];
2009
+ };
2010
+ list_multipart_uploads_with_delimiter: {
2011
+ Args: {
2012
+ bucket_id: string;
2013
+ prefix_param: string;
2014
+ delimiter_param: string;
2015
+ max_keys?: number;
2016
+ next_key_token?: string;
2017
+ next_upload_token?: string;
2018
+ };
2019
+ Returns: {
2020
+ key: string;
2021
+ id: string;
2022
+ created_at: string;
2023
+ }[];
2024
+ };
2025
+ list_objects_with_delimiter: {
2026
+ Args: {
2027
+ bucket_id: string;
2028
+ prefix_param: string;
2029
+ delimiter_param: string;
2030
+ max_keys?: number;
2031
+ start_after?: string;
2032
+ next_token?: string;
2033
+ };
2034
+ Returns: {
2035
+ name: string;
2036
+ id: string;
2037
+ metadata: Json;
2038
+ updated_at: string;
2039
+ }[];
2040
+ };
1801
2041
  search: {
1802
2042
  Args: {
1803
- prefix: string
1804
- bucketname: string
1805
- limits?: number
1806
- levels?: number
1807
- offsets?: number
1808
- search?: string
1809
- sortcolumn?: string
1810
- sortorder?: string
1811
- }
2043
+ prefix: string;
2044
+ bucketname: string;
2045
+ limits?: number;
2046
+ levels?: number;
2047
+ offsets?: number;
2048
+ search?: string;
2049
+ sortcolumn?: string;
2050
+ sortorder?: string;
2051
+ };
1812
2052
  Returns: {
1813
- name: string
1814
- id: string
1815
- updated_at: string
1816
- created_at: string
1817
- last_accessed_at: string
1818
- metadata: Json
1819
- }[]
1820
- }
1821
- }
2053
+ name: string;
2054
+ id: string;
2055
+ updated_at: string;
2056
+ created_at: string;
2057
+ last_accessed_at: string;
2058
+ metadata: Json;
2059
+ }[];
2060
+ };
2061
+ };
1822
2062
  Enums: {
1823
- [_ in never]: never
1824
- }
2063
+ [_ in never]: never;
2064
+ };
1825
2065
  CompositeTypes: {
1826
- [_ in never]: never
1827
- }
1828
- }
1829
- }
2066
+ [_ in never]: never;
2067
+ };
2068
+ };
2069
+ };
1830
2070
 
1831
- type PublicSchema = Database[Extract<keyof Database, "public">]
2071
+ type PublicSchema = Database[Extract<keyof Database, 'public'>];
1832
2072
 
1833
2073
  export type Tables<
1834
2074
  PublicTableNameOrOptions extends
1835
- | keyof (PublicSchema["Tables"] & PublicSchema["Views"])
2075
+ | keyof (PublicSchema['Tables'] & PublicSchema['Views'])
1836
2076
  | { schema: keyof Database },
1837
2077
  TableName extends PublicTableNameOrOptions extends { schema: keyof Database }
1838
- ? keyof (Database[PublicTableNameOrOptions["schema"]]["Tables"] &
1839
- Database[PublicTableNameOrOptions["schema"]]["Views"])
2078
+ ? keyof (Database[PublicTableNameOrOptions['schema']]['Tables'] &
2079
+ Database[PublicTableNameOrOptions['schema']]['Views'])
1840
2080
  : never = never,
1841
2081
  > = PublicTableNameOrOptions extends { schema: keyof Database }
1842
- ? (Database[PublicTableNameOrOptions["schema"]]["Tables"] &
1843
- Database[PublicTableNameOrOptions["schema"]]["Views"])[TableName] extends {
1844
- Row: infer R
2082
+ ? (Database[PublicTableNameOrOptions['schema']]['Tables'] &
2083
+ Database[PublicTableNameOrOptions['schema']]['Views'])[TableName] extends {
2084
+ Row: infer R;
1845
2085
  }
1846
2086
  ? R
1847
2087
  : never
1848
- : PublicTableNameOrOptions extends keyof (PublicSchema["Tables"] &
1849
- PublicSchema["Views"])
1850
- ? (PublicSchema["Tables"] &
1851
- PublicSchema["Views"])[PublicTableNameOrOptions] extends {
1852
- Row: infer R
2088
+ : PublicTableNameOrOptions extends keyof (PublicSchema['Tables'] &
2089
+ PublicSchema['Views'])
2090
+ ? (PublicSchema['Tables'] &
2091
+ PublicSchema['Views'])[PublicTableNameOrOptions] extends {
2092
+ Row: infer R;
1853
2093
  }
1854
2094
  ? R
1855
2095
  : never
1856
- : never
2096
+ : never;
1857
2097
 
1858
2098
  export type TablesInsert<
1859
2099
  PublicTableNameOrOptions extends
1860
- | keyof PublicSchema["Tables"]
2100
+ | keyof PublicSchema['Tables']
1861
2101
  | { schema: keyof Database },
1862
2102
  TableName extends PublicTableNameOrOptions extends { schema: keyof Database }
1863
- ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"]
2103
+ ? keyof Database[PublicTableNameOrOptions['schema']]['Tables']
1864
2104
  : never = never,
1865
2105
  > = PublicTableNameOrOptions extends { schema: keyof Database }
1866
- ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
1867
- Insert: infer I
2106
+ ? Database[PublicTableNameOrOptions['schema']]['Tables'][TableName] extends {
2107
+ Insert: infer I;
1868
2108
  }
1869
2109
  ? I
1870
2110
  : never
1871
- : PublicTableNameOrOptions extends keyof PublicSchema["Tables"]
1872
- ? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
1873
- Insert: infer I
2111
+ : PublicTableNameOrOptions extends keyof PublicSchema['Tables']
2112
+ ? PublicSchema['Tables'][PublicTableNameOrOptions] extends {
2113
+ Insert: infer I;
1874
2114
  }
1875
2115
  ? I
1876
2116
  : never
1877
- : never
2117
+ : never;
1878
2118
 
1879
2119
  export type TablesUpdate<
1880
2120
  PublicTableNameOrOptions extends
1881
- | keyof PublicSchema["Tables"]
2121
+ | keyof PublicSchema['Tables']
1882
2122
  | { schema: keyof Database },
1883
2123
  TableName extends PublicTableNameOrOptions extends { schema: keyof Database }
1884
- ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"]
2124
+ ? keyof Database[PublicTableNameOrOptions['schema']]['Tables']
1885
2125
  : never = never,
1886
2126
  > = PublicTableNameOrOptions extends { schema: keyof Database }
1887
- ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
1888
- Update: infer U
2127
+ ? Database[PublicTableNameOrOptions['schema']]['Tables'][TableName] extends {
2128
+ Update: infer U;
1889
2129
  }
1890
2130
  ? U
1891
2131
  : never
1892
- : PublicTableNameOrOptions extends keyof PublicSchema["Tables"]
1893
- ? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
1894
- Update: infer U
2132
+ : PublicTableNameOrOptions extends keyof PublicSchema['Tables']
2133
+ ? PublicSchema['Tables'][PublicTableNameOrOptions] extends {
2134
+ Update: infer U;
1895
2135
  }
1896
2136
  ? U
1897
2137
  : never
1898
- : never
2138
+ : never;
1899
2139
 
1900
2140
  export type Enums<
1901
2141
  PublicEnumNameOrOptions extends
1902
- | keyof PublicSchema["Enums"]
2142
+ | keyof PublicSchema['Enums']
1903
2143
  | { schema: keyof Database },
1904
2144
  EnumName extends PublicEnumNameOrOptions extends { schema: keyof Database }
1905
- ? keyof Database[PublicEnumNameOrOptions["schema"]]["Enums"]
2145
+ ? keyof Database[PublicEnumNameOrOptions['schema']]['Enums']
1906
2146
  : never = never,
1907
2147
  > = PublicEnumNameOrOptions extends { schema: keyof Database }
1908
- ? Database[PublicEnumNameOrOptions["schema"]]["Enums"][EnumName]
1909
- : PublicEnumNameOrOptions extends keyof PublicSchema["Enums"]
1910
- ? PublicSchema["Enums"][PublicEnumNameOrOptions]
1911
- : never
2148
+ ? Database[PublicEnumNameOrOptions['schema']]['Enums'][EnumName]
2149
+ : PublicEnumNameOrOptions extends keyof PublicSchema['Enums']
2150
+ ? PublicSchema['Enums'][PublicEnumNameOrOptions]
2151
+ : never;