@periskope/types 0.6.95 → 0.6.96

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,2151 +1,2551 @@
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
31
  tbl_api_logs: {
32
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
- };
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
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
- };
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
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
- };
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
+ }
64
64
  tbl_broadcast_logs: {
65
65
  Row: {
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
- };
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
+ }
79
79
  Insert: {
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
- };
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
+ }
93
93
  Update: {
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
- };
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
+ }
107
107
  Relationships: [
108
108
  {
109
- foreignKeyName: 'tbl_broadcast_logs_broadcast_id_fkey';
110
- columns: ['broadcast_id'];
111
- isOneToOne: false;
112
- referencedRelation: 'tbl_broadcast_messages';
113
- 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"]
114
114
  },
115
115
  {
116
- foreignKeyName: 'tbl_broadcast_logs_broadcast_id_fkey';
117
- columns: ['broadcast_id'];
118
- isOneToOne: false;
119
- referencedRelation: 'view_broadcast_logs';
120
- 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"]
121
121
  },
122
122
  {
123
- foreignKeyName: 'tbl_broadcast_logs_org_id_fkey';
124
- columns: ['org_id'];
125
- isOneToOne: false;
126
- referencedRelation: 'tbl_org';
127
- 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"]
128
128
  },
129
129
  {
130
- foreignKeyName: 'tbl_broadcast_logs_org_id_fkey';
131
- columns: ['org_id'];
132
- isOneToOne: false;
133
- referencedRelation: 'view_org';
134
- referencedColumns: ['org_id'];
130
+ foreignKeyName: "tbl_broadcast_logs_org_id_fkey"
131
+ columns: ["org_id"]
132
+ isOneToOne: false
133
+ referencedRelation: "view_org"
134
+ referencedColumns: ["org_id"]
135
135
  },
136
- ];
137
- };
136
+ ]
137
+ }
138
138
  tbl_broadcast_messages: {
139
139
  Row: {
140
- broadcast_id: string;
140
+ broadcast_id: string
141
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
- };
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
+ }
154
154
  Insert: {
155
- broadcast_id?: string;
155
+ broadcast_id?: string
156
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
- };
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
+ }
169
169
  Update: {
170
- broadcast_id?: string;
170
+ broadcast_id?: string
171
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
- };
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
+ }
184
184
  Relationships: [
185
185
  {
186
- foreignKeyName: 'tbl_broadcast_messages_org_id_fkey';
187
- columns: ['org_id'];
188
- isOneToOne: false;
189
- referencedRelation: 'tbl_org';
190
- 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"]
191
191
  },
192
192
  {
193
- foreignKeyName: 'tbl_broadcast_messages_org_id_fkey';
194
- columns: ['org_id'];
195
- isOneToOne: false;
196
- referencedRelation: 'view_org';
197
- referencedColumns: ['org_id'];
193
+ foreignKeyName: "tbl_broadcast_messages_org_id_fkey"
194
+ columns: ["org_id"]
195
+ isOneToOne: false
196
+ referencedRelation: "view_org"
197
+ referencedColumns: ["org_id"]
198
198
  },
199
- ];
200
- };
199
+ ]
200
+ }
201
201
  tbl_broadcast_templates: {
202
202
  Row: {
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
- };
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
+ }
211
211
  Insert: {
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
- };
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
+ }
220
220
  Update: {
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
- };
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
+ }
229
229
  Relationships: [
230
230
  {
231
- foreignKeyName: 'tbl_broadcast_templates_org_id_fkey';
232
- columns: ['org_id'];
233
- isOneToOne: false;
234
- referencedRelation: 'tbl_org';
235
- 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"]
236
236
  },
237
237
  {
238
- foreignKeyName: 'tbl_broadcast_templates_org_id_fkey';
239
- columns: ['org_id'];
240
- isOneToOne: false;
241
- referencedRelation: 'view_org';
242
- referencedColumns: ['org_id'];
238
+ foreignKeyName: "tbl_broadcast_templates_org_id_fkey"
239
+ columns: ["org_id"]
240
+ isOneToOne: false
241
+ referencedRelation: "view_org"
242
+ referencedColumns: ["org_id"]
243
243
  },
244
- ];
245
- };
244
+ ]
245
+ }
246
246
  tbl_chat_access: {
247
247
  Row: {
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
- };
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
+ }
256
256
  Insert: {
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
- };
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
+ }
265
265
  Update: {
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
- };
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
+ }
274
274
  Relationships: [
275
275
  {
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'];
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
281
  },
282
- ];
283
- };
282
+ ]
283
+ }
284
+ tbl_chat_logs: {
285
+ Row: {
286
+ action: string | null
287
+ chat_id: string | null
288
+ is_success: boolean | null
289
+ log_id: string
290
+ metadata: Json | null
291
+ operation_id: string
292
+ org_id: string
293
+ org_phone: string
294
+ participant_id: string | null
295
+ performed_by: string | null
296
+ timestamp: string | null
297
+ }
298
+ Insert: {
299
+ action?: string | null
300
+ chat_id?: string | null
301
+ is_success?: boolean | null
302
+ log_id?: string
303
+ metadata?: Json | null
304
+ operation_id: string
305
+ org_id: string
306
+ org_phone: string
307
+ participant_id?: string | null
308
+ performed_by?: string | null
309
+ timestamp?: string | null
310
+ }
311
+ Update: {
312
+ action?: string | null
313
+ chat_id?: string | null
314
+ is_success?: boolean | null
315
+ log_id?: string
316
+ metadata?: Json | null
317
+ operation_id?: string
318
+ org_id?: string
319
+ org_phone?: string
320
+ participant_id?: string | null
321
+ performed_by?: string | null
322
+ timestamp?: string | null
323
+ }
324
+ Relationships: [
325
+ {
326
+ foreignKeyName: "tbl_chat_logs_org_id_fkey"
327
+ columns: ["org_id"]
328
+ isOneToOne: false
329
+ referencedRelation: "tbl_org"
330
+ referencedColumns: ["org_id"]
331
+ },
332
+ {
333
+ foreignKeyName: "tbl_chat_logs_org_id_fkey"
334
+ columns: ["org_id"]
335
+ isOneToOne: false
336
+ referencedRelation: "view_org"
337
+ referencedColumns: ["org_id"]
338
+ },
339
+ ]
340
+ }
284
341
  tbl_chat_messages: {
285
342
  Row: {
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
- };
343
+ ack: string | null
344
+ author: string | null
345
+ body: string | null
346
+ broadcast: boolean | null
347
+ broadcast_id: string | null
348
+ chat_id: string | null
349
+ delivery_info: Json | null
350
+ device_type: string | null
351
+ duration: string | null
352
+ flag_metadata: Json | null
353
+ flag_response_time: number | null
354
+ forwarding_score: number | null
355
+ from: string | null
356
+ from_me: boolean | null
357
+ has_media: boolean | null
358
+ has_quoted_msg: boolean | null
359
+ has_reaction: boolean | null
360
+ id: Json | null
361
+ invite_v4: Json | null
362
+ is_deleted: boolean | null
363
+ is_ephemeral: boolean | null
364
+ is_forwarded: boolean | null
365
+ is_gif: boolean | null
366
+ is_starred: boolean | null
367
+ is_status: boolean | null
368
+ links: Json | null
369
+ location: Json | null
370
+ media: Json | null
371
+ media_key: string | null
372
+ mentioned_ids: string[] | null
373
+ message_id: string
374
+ message_ticket_id: string | null
375
+ message_type: string | null
376
+ order_id: string | null
377
+ org_id: string
378
+ org_phone: string
379
+ performed_by: string | null
380
+ prev_body: string | null
381
+ quoted_message_id: string | null
382
+ raw_data: Json | null
383
+ sender_phone: string | null
384
+ sent_message_id: string | null
385
+ timestamp: string | null
386
+ to: string | null
387
+ token: string | null
388
+ unique_id: string | null
389
+ updated_at: string | null
390
+ vcards: string[] | null
391
+ }
335
392
  Insert: {
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
- };
393
+ ack?: string | null
394
+ author?: string | null
395
+ body?: string | null
396
+ broadcast?: boolean | null
397
+ broadcast_id?: string | null
398
+ chat_id?: string | null
399
+ delivery_info?: Json | null
400
+ device_type?: string | null
401
+ duration?: string | null
402
+ flag_metadata?: Json | null
403
+ flag_response_time?: number | null
404
+ forwarding_score?: number | null
405
+ from?: string | null
406
+ from_me?: boolean | null
407
+ has_media?: boolean | null
408
+ has_quoted_msg?: boolean | null
409
+ has_reaction?: boolean | null
410
+ id?: Json | null
411
+ invite_v4?: Json | null
412
+ is_deleted?: boolean | null
413
+ is_ephemeral?: boolean | null
414
+ is_forwarded?: boolean | null
415
+ is_gif?: boolean | null
416
+ is_starred?: boolean | null
417
+ is_status?: boolean | null
418
+ links?: Json | null
419
+ location?: Json | null
420
+ media?: Json | null
421
+ media_key?: string | null
422
+ mentioned_ids?: string[] | null
423
+ message_id: string
424
+ message_ticket_id?: string | null
425
+ message_type?: string | null
426
+ order_id?: string | null
427
+ org_id: string
428
+ org_phone: string
429
+ performed_by?: string | null
430
+ prev_body?: string | null
431
+ quoted_message_id?: string | null
432
+ raw_data?: Json | null
433
+ sender_phone?: string | null
434
+ sent_message_id?: string | null
435
+ timestamp?: string | null
436
+ to?: string | null
437
+ token?: string | null
438
+ unique_id?: string | null
439
+ updated_at?: string | null
440
+ vcards?: string[] | null
441
+ }
385
442
  Update: {
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
- };
443
+ ack?: string | null
444
+ author?: string | null
445
+ body?: string | null
446
+ broadcast?: boolean | null
447
+ broadcast_id?: string | null
448
+ chat_id?: string | null
449
+ delivery_info?: Json | null
450
+ device_type?: string | null
451
+ duration?: string | null
452
+ flag_metadata?: Json | null
453
+ flag_response_time?: number | null
454
+ forwarding_score?: number | null
455
+ from?: string | null
456
+ from_me?: boolean | null
457
+ has_media?: boolean | null
458
+ has_quoted_msg?: boolean | null
459
+ has_reaction?: boolean | null
460
+ id?: Json | null
461
+ invite_v4?: Json | null
462
+ is_deleted?: boolean | null
463
+ is_ephemeral?: boolean | null
464
+ is_forwarded?: boolean | null
465
+ is_gif?: boolean | null
466
+ is_starred?: boolean | null
467
+ is_status?: boolean | null
468
+ links?: Json | null
469
+ location?: Json | null
470
+ media?: Json | null
471
+ media_key?: string | null
472
+ mentioned_ids?: string[] | null
473
+ message_id?: string
474
+ message_ticket_id?: string | null
475
+ message_type?: string | null
476
+ order_id?: string | null
477
+ org_id?: string
478
+ org_phone?: string
479
+ performed_by?: string | null
480
+ prev_body?: string | null
481
+ quoted_message_id?: string | null
482
+ raw_data?: Json | null
483
+ sender_phone?: string | null
484
+ sent_message_id?: string | null
485
+ timestamp?: string | null
486
+ to?: string | null
487
+ token?: string | null
488
+ unique_id?: string | null
489
+ updated_at?: string | null
490
+ vcards?: string[] | null
491
+ }
435
492
  Relationships: [
436
493
  {
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'];
494
+ foreignKeyName: "tbl_chat_messages_parent_fkey_tbl_org_phones"
495
+ columns: ["org_phone", "org_id"]
496
+ isOneToOne: false
497
+ referencedRelation: "tbl_org_phones"
498
+ referencedColumns: ["org_phone", "org_id"]
442
499
  },
443
- ];
444
- };
500
+ ]
501
+ }
502
+ tbl_chat_messages_2997dd64_89bf_48d3_9a22_b314fca017e5: {
503
+ Row: {
504
+ ack: string | null
505
+ author: string | null
506
+ body: string | null
507
+ broadcast: boolean | null
508
+ broadcast_id: string | null
509
+ chat_id: string | null
510
+ delivery_info: Json | null
511
+ device_type: string | null
512
+ duration: string | null
513
+ flag_metadata: Json | null
514
+ flag_response_time: number | null
515
+ forwarding_score: number | null
516
+ from: string | null
517
+ from_me: boolean | null
518
+ has_media: boolean | null
519
+ has_quoted_msg: boolean | null
520
+ has_reaction: boolean | null
521
+ id: Json | null
522
+ invite_v4: Json | null
523
+ is_deleted: boolean | null
524
+ is_ephemeral: boolean | null
525
+ is_forwarded: boolean | null
526
+ is_gif: boolean | null
527
+ is_starred: boolean | null
528
+ is_status: boolean | null
529
+ links: Json | null
530
+ location: Json | null
531
+ media: Json | null
532
+ media_key: string | null
533
+ mentioned_ids: string[] | null
534
+ message_id: string
535
+ message_ticket_id: string | null
536
+ message_type: string | null
537
+ order_id: string | null
538
+ org_id: string
539
+ org_phone: string
540
+ performed_by: string | null
541
+ prev_body: string | null
542
+ quoted_message_id: string | null
543
+ raw_data: Json | null
544
+ sender_phone: string | null
545
+ sent_message_id: string | null
546
+ timestamp: string | null
547
+ to: string | null
548
+ token: string | null
549
+ unique_id: string | null
550
+ updated_at: string | null
551
+ vcards: string[] | null
552
+ }
553
+ Insert: {
554
+ ack?: string | null
555
+ author?: string | null
556
+ body?: string | null
557
+ broadcast?: boolean | null
558
+ broadcast_id?: string | null
559
+ chat_id?: string | null
560
+ delivery_info?: Json | null
561
+ device_type?: string | null
562
+ duration?: string | null
563
+ flag_metadata?: Json | null
564
+ flag_response_time?: number | null
565
+ forwarding_score?: number | null
566
+ from?: string | null
567
+ from_me?: boolean | null
568
+ has_media?: boolean | null
569
+ has_quoted_msg?: boolean | null
570
+ has_reaction?: boolean | null
571
+ id?: Json | null
572
+ invite_v4?: Json | null
573
+ is_deleted?: boolean | null
574
+ is_ephemeral?: boolean | null
575
+ is_forwarded?: boolean | null
576
+ is_gif?: boolean | null
577
+ is_starred?: boolean | null
578
+ is_status?: boolean | null
579
+ links?: Json | null
580
+ location?: Json | null
581
+ media?: Json | null
582
+ media_key?: string | null
583
+ mentioned_ids?: string[] | null
584
+ message_id: string
585
+ message_ticket_id?: string | null
586
+ message_type?: string | null
587
+ order_id?: string | null
588
+ org_id: string
589
+ org_phone: string
590
+ performed_by?: string | null
591
+ prev_body?: string | null
592
+ quoted_message_id?: string | null
593
+ raw_data?: Json | null
594
+ sender_phone?: string | null
595
+ sent_message_id?: string | null
596
+ timestamp?: string | null
597
+ to?: string | null
598
+ token?: string | null
599
+ unique_id?: string | null
600
+ updated_at?: string | null
601
+ vcards?: string[] | null
602
+ }
603
+ Update: {
604
+ ack?: string | null
605
+ author?: string | null
606
+ body?: string | null
607
+ broadcast?: boolean | null
608
+ broadcast_id?: string | null
609
+ chat_id?: string | null
610
+ delivery_info?: Json | null
611
+ device_type?: string | null
612
+ duration?: string | null
613
+ flag_metadata?: Json | null
614
+ flag_response_time?: number | null
615
+ forwarding_score?: number | null
616
+ from?: string | null
617
+ from_me?: boolean | null
618
+ has_media?: boolean | null
619
+ has_quoted_msg?: boolean | null
620
+ has_reaction?: boolean | null
621
+ id?: Json | null
622
+ invite_v4?: Json | null
623
+ is_deleted?: boolean | null
624
+ is_ephemeral?: boolean | null
625
+ is_forwarded?: boolean | null
626
+ is_gif?: boolean | null
627
+ is_starred?: boolean | null
628
+ is_status?: boolean | null
629
+ links?: Json | null
630
+ location?: Json | null
631
+ media?: Json | null
632
+ media_key?: string | null
633
+ mentioned_ids?: string[] | null
634
+ message_id?: string
635
+ message_ticket_id?: string | null
636
+ message_type?: string | null
637
+ order_id?: string | null
638
+ org_id?: string
639
+ org_phone?: string
640
+ performed_by?: string | null
641
+ prev_body?: string | null
642
+ quoted_message_id?: string | null
643
+ raw_data?: Json | null
644
+ sender_phone?: string | null
645
+ sent_message_id?: string | null
646
+ timestamp?: string | null
647
+ to?: string | null
648
+ token?: string | null
649
+ unique_id?: string | null
650
+ updated_at?: string | null
651
+ vcards?: string[] | null
652
+ }
653
+ Relationships: []
654
+ }
655
+ tbl_chat_messages_default: {
656
+ Row: {
657
+ ack: string | null
658
+ author: string | null
659
+ body: string | null
660
+ broadcast: boolean | null
661
+ broadcast_id: string | null
662
+ chat_id: string | null
663
+ delivery_info: Json | null
664
+ device_type: string | null
665
+ duration: string | null
666
+ flag_metadata: Json | null
667
+ flag_response_time: number | null
668
+ forwarding_score: number | null
669
+ from: string | null
670
+ from_me: boolean | null
671
+ has_media: boolean | null
672
+ has_quoted_msg: boolean | null
673
+ has_reaction: boolean | null
674
+ id: Json | null
675
+ invite_v4: Json | null
676
+ is_deleted: boolean | null
677
+ is_ephemeral: boolean | null
678
+ is_forwarded: boolean | null
679
+ is_gif: boolean | null
680
+ is_starred: boolean | null
681
+ is_status: boolean | null
682
+ links: Json | null
683
+ location: Json | null
684
+ media: Json | null
685
+ media_key: string | null
686
+ mentioned_ids: string[] | null
687
+ message_id: string
688
+ message_ticket_id: string | null
689
+ message_type: string | null
690
+ order_id: string | null
691
+ org_id: string
692
+ org_phone: string
693
+ performed_by: string | null
694
+ prev_body: string | null
695
+ quoted_message_id: string | null
696
+ raw_data: Json | null
697
+ sender_phone: string | null
698
+ sent_message_id: string | null
699
+ timestamp: string | null
700
+ to: string | null
701
+ token: string | null
702
+ unique_id: string | null
703
+ updated_at: string | null
704
+ vcards: string[] | null
705
+ }
706
+ Insert: {
707
+ ack?: string | null
708
+ author?: string | null
709
+ body?: string | null
710
+ broadcast?: boolean | null
711
+ broadcast_id?: string | null
712
+ chat_id?: string | null
713
+ delivery_info?: Json | null
714
+ device_type?: string | null
715
+ duration?: string | null
716
+ flag_metadata?: Json | null
717
+ flag_response_time?: number | null
718
+ forwarding_score?: number | null
719
+ from?: string | null
720
+ from_me?: boolean | null
721
+ has_media?: boolean | null
722
+ has_quoted_msg?: boolean | null
723
+ has_reaction?: boolean | null
724
+ id?: Json | null
725
+ invite_v4?: Json | null
726
+ is_deleted?: boolean | null
727
+ is_ephemeral?: boolean | null
728
+ is_forwarded?: boolean | null
729
+ is_gif?: boolean | null
730
+ is_starred?: boolean | null
731
+ is_status?: boolean | null
732
+ links?: Json | null
733
+ location?: Json | null
734
+ media?: Json | null
735
+ media_key?: string | null
736
+ mentioned_ids?: string[] | null
737
+ message_id: string
738
+ message_ticket_id?: string | null
739
+ message_type?: string | null
740
+ order_id?: string | null
741
+ org_id: string
742
+ org_phone: string
743
+ performed_by?: string | null
744
+ prev_body?: string | null
745
+ quoted_message_id?: string | null
746
+ raw_data?: Json | null
747
+ sender_phone?: string | null
748
+ sent_message_id?: string | null
749
+ timestamp?: string | null
750
+ to?: string | null
751
+ token?: string | null
752
+ unique_id?: string | null
753
+ updated_at?: string | null
754
+ vcards?: string[] | null
755
+ }
756
+ Update: {
757
+ ack?: string | null
758
+ author?: string | null
759
+ body?: string | null
760
+ broadcast?: boolean | null
761
+ broadcast_id?: string | null
762
+ chat_id?: string | null
763
+ delivery_info?: Json | null
764
+ device_type?: string | null
765
+ duration?: string | null
766
+ flag_metadata?: Json | null
767
+ flag_response_time?: number | null
768
+ forwarding_score?: number | null
769
+ from?: string | null
770
+ from_me?: boolean | null
771
+ has_media?: boolean | null
772
+ has_quoted_msg?: boolean | null
773
+ has_reaction?: boolean | null
774
+ id?: Json | null
775
+ invite_v4?: Json | null
776
+ is_deleted?: boolean | null
777
+ is_ephemeral?: boolean | null
778
+ is_forwarded?: boolean | null
779
+ is_gif?: boolean | null
780
+ is_starred?: boolean | null
781
+ is_status?: boolean | null
782
+ links?: Json | null
783
+ location?: Json | null
784
+ media?: Json | null
785
+ media_key?: string | null
786
+ mentioned_ids?: string[] | null
787
+ message_id?: string
788
+ message_ticket_id?: string | null
789
+ message_type?: string | null
790
+ order_id?: string | null
791
+ org_id?: string
792
+ org_phone?: string
793
+ performed_by?: string | null
794
+ prev_body?: string | null
795
+ quoted_message_id?: string | null
796
+ raw_data?: Json | null
797
+ sender_phone?: string | null
798
+ sent_message_id?: string | null
799
+ timestamp?: string | null
800
+ to?: string | null
801
+ token?: string | null
802
+ unique_id?: string | null
803
+ updated_at?: string | null
804
+ vcards?: string[] | null
805
+ }
806
+ Relationships: []
807
+ }
445
808
  tbl_chat_notifications: {
446
809
  Row: {
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
- };
810
+ author: string | null
811
+ body: string | null
812
+ chat_id: string | null
813
+ id: Json | null
814
+ notification_id: string
815
+ org_id: string
816
+ org_phone: string
817
+ recipientids: string[] | null
818
+ timestamp: string | null
819
+ type: string | null
820
+ unique_id: string | null
821
+ }
459
822
  Insert: {
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
- };
823
+ author?: string | null
824
+ body?: string | null
825
+ chat_id?: string | null
826
+ id?: Json | null
827
+ notification_id: string
828
+ org_id: string
829
+ org_phone: string
830
+ recipientids?: string[] | null
831
+ timestamp?: string | null
832
+ type?: string | null
833
+ unique_id?: string | null
834
+ }
472
835
  Update: {
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
- };
836
+ author?: string | null
837
+ body?: string | null
838
+ chat_id?: string | null
839
+ id?: Json | null
840
+ notification_id?: string
841
+ org_id?: string
842
+ org_phone?: string
843
+ recipientids?: string[] | null
844
+ timestamp?: string | null
845
+ type?: string | null
846
+ unique_id?: string | null
847
+ }
485
848
  Relationships: [
486
849
  {
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'];
850
+ foreignKeyName: "tbl_chat_notifications_fkey_tbl_org_phones"
851
+ columns: ["org_id", "org_phone"]
852
+ isOneToOne: false
853
+ referencedRelation: "tbl_org_phones"
854
+ referencedColumns: ["org_id", "org_phone"]
492
855
  },
493
- ];
494
- };
856
+ ]
857
+ }
495
858
  tbl_chat_participants: {
496
859
  Row: {
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
- };
860
+ chat_id: string
861
+ contact_id: string
862
+ id: Json | null
863
+ is_admin: boolean | null
864
+ is_super_admin: boolean | null
865
+ org_id: string
866
+ org_phone: string
867
+ }
505
868
  Insert: {
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
- };
869
+ chat_id: string
870
+ contact_id: string
871
+ id?: Json | null
872
+ is_admin?: boolean | null
873
+ is_super_admin?: boolean | null
874
+ org_id: string
875
+ org_phone: string
876
+ }
514
877
  Update: {
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
- };
878
+ chat_id?: string
879
+ contact_id?: string
880
+ id?: Json | null
881
+ is_admin?: boolean | null
882
+ is_super_admin?: boolean | null
883
+ org_id?: string
884
+ org_phone?: string
885
+ }
523
886
  Relationships: [
524
887
  {
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'];
888
+ foreignKeyName: "tbl_chat_participants_fkey_tbl_chats"
889
+ columns: ["org_id", "org_phone", "chat_id"]
890
+ isOneToOne: false
891
+ referencedRelation: "tbl_chats"
892
+ referencedColumns: ["org_id", "org_phone", "chat_id"]
530
893
  },
531
- ];
532
- };
894
+ ]
895
+ }
533
896
  tbl_chat_properties: {
534
897
  Row: {
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
- };
898
+ chat_id: string
899
+ custom_properties: Json | null
900
+ flag_count: number
901
+ hubspot_metadata: Json | null
902
+ label_ids: Json | null
903
+ org_id: string
904
+ }
542
905
  Insert: {
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
- };
906
+ chat_id: string
907
+ custom_properties?: Json | null
908
+ flag_count?: number
909
+ hubspot_metadata?: Json | null
910
+ label_ids?: Json | null
911
+ org_id: string
912
+ }
550
913
  Update: {
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
- };
914
+ chat_id?: string
915
+ custom_properties?: Json | null
916
+ flag_count?: number
917
+ hubspot_metadata?: Json | null
918
+ label_ids?: Json | null
919
+ org_id?: string
920
+ }
921
+ Relationships: []
922
+ }
560
923
  tbl_chat_reactions: {
561
924
  Row: {
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
- };
925
+ ack: number | null
926
+ chat_id: string | null
927
+ id: Json | null
928
+ message_id: string
929
+ msg_id: Json | null
930
+ org_id: string
931
+ org_phone: string
932
+ orphan: number | null
933
+ orphan_reason: string | null
934
+ reaction: string | null
935
+ reaction_id: string
936
+ read: boolean | null
937
+ sender_id: string
938
+ timestamp: string | null
939
+ unique_id: string | null
940
+ }
578
941
  Insert: {
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
- };
942
+ ack?: number | null
943
+ chat_id?: string | null
944
+ id?: Json | null
945
+ message_id: string
946
+ msg_id?: Json | null
947
+ org_id: string
948
+ org_phone: string
949
+ orphan?: number | null
950
+ orphan_reason?: string | null
951
+ reaction?: string | null
952
+ reaction_id: string
953
+ read?: boolean | null
954
+ sender_id: string
955
+ timestamp?: string | null
956
+ unique_id?: string | null
957
+ }
595
958
  Update: {
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
- };
959
+ ack?: number | null
960
+ chat_id?: string | null
961
+ id?: Json | null
962
+ message_id?: string
963
+ msg_id?: Json | null
964
+ org_id?: string
965
+ org_phone?: string
966
+ orphan?: number | null
967
+ orphan_reason?: string | null
968
+ reaction?: string | null
969
+ reaction_id?: string
970
+ read?: boolean | null
971
+ sender_id?: string
972
+ timestamp?: string | null
973
+ unique_id?: string | null
974
+ }
612
975
  Relationships: [
613
976
  {
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'];
977
+ foreignKeyName: "tbl_chat_reactions_fkey_tbl_org_phones"
978
+ columns: ["org_id", "org_phone"]
979
+ isOneToOne: false
980
+ referencedRelation: "tbl_org_phones"
981
+ referencedColumns: ["org_id", "org_phone"]
619
982
  },
620
- ];
621
- };
983
+ ]
984
+ }
622
985
  tbl_chat_tickets: {
623
986
  Row: {
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
- };
987
+ assigned_by: string | null
988
+ assignee: string | null
989
+ chat_id: string
990
+ close_ticket_metadata: Json | null
991
+ closed_at: string | null
992
+ created_at: string
993
+ due_date: string | null
994
+ hubspot_metadata: Json | null
995
+ is_deleted: boolean
996
+ label_ids: Json | null
997
+ last_updated_at: string
998
+ org_id: string
999
+ priority: number | null
1000
+ quoted_message_id: string | null
1001
+ raised_by: string | null
1002
+ response_time: number | null
1003
+ status: Database["public"]["Enums"]["enum_chat_tickets_status"] | null
1004
+ subject: string
1005
+ ticket_id: string
1006
+ ticket_metadata: Json | null
1007
+ }
645
1008
  Insert: {
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;
1009
+ assigned_by?: string | null
1010
+ assignee?: string | null
1011
+ chat_id: string
1012
+ close_ticket_metadata?: Json | null
1013
+ closed_at?: string | null
1014
+ created_at?: string
1015
+ due_date?: string | null
1016
+ hubspot_metadata?: Json | null
1017
+ is_deleted?: boolean
1018
+ label_ids?: Json | null
1019
+ last_updated_at?: string
1020
+ org_id: string
1021
+ priority?: number | null
1022
+ quoted_message_id?: string | null
1023
+ raised_by?: string | null
1024
+ response_time?: number | null
660
1025
  status?:
661
- | Database['public']['Enums']['enum_chat_tickets_status']
662
- | null;
663
- subject: string;
664
- ticket_id?: string;
665
- ticket_metadata?: Json | null;
666
- };
1026
+ | Database["public"]["Enums"]["enum_chat_tickets_status"]
1027
+ | null
1028
+ subject: string
1029
+ ticket_id?: string
1030
+ ticket_metadata?: Json | null
1031
+ }
667
1032
  Update: {
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;
1033
+ assigned_by?: string | null
1034
+ assignee?: string | null
1035
+ chat_id?: string
1036
+ close_ticket_metadata?: Json | null
1037
+ closed_at?: string | null
1038
+ created_at?: string
1039
+ due_date?: string | null
1040
+ hubspot_metadata?: Json | null
1041
+ is_deleted?: boolean
1042
+ label_ids?: Json | null
1043
+ last_updated_at?: string
1044
+ org_id?: string
1045
+ priority?: number | null
1046
+ quoted_message_id?: string | null
1047
+ raised_by?: string | null
1048
+ response_time?: number | null
682
1049
  status?:
683
- | Database['public']['Enums']['enum_chat_tickets_status']
684
- | null;
685
- subject?: string;
686
- ticket_id?: string;
687
- ticket_metadata?: Json | null;
688
- };
1050
+ | Database["public"]["Enums"]["enum_chat_tickets_status"]
1051
+ | null
1052
+ subject?: string
1053
+ ticket_id?: string
1054
+ ticket_metadata?: Json | null
1055
+ }
689
1056
  Relationships: [
690
1057
  {
691
- foreignKeyName: 'tbl_chat_tickets_org_id_fkey';
692
- columns: ['org_id'];
693
- isOneToOne: false;
694
- referencedRelation: 'tbl_org';
695
- referencedColumns: ['org_id'];
1058
+ foreignKeyName: "tbl_chat_tickets_org_id_fkey"
1059
+ columns: ["org_id"]
1060
+ isOneToOne: false
1061
+ referencedRelation: "tbl_org"
1062
+ referencedColumns: ["org_id"]
696
1063
  },
697
1064
  {
698
- foreignKeyName: 'tbl_chat_tickets_org_id_fkey';
699
- columns: ['org_id'];
700
- isOneToOne: false;
701
- referencedRelation: 'view_org';
702
- referencedColumns: ['org_id'];
1065
+ foreignKeyName: "tbl_chat_tickets_org_id_fkey"
1066
+ columns: ["org_id"]
1067
+ isOneToOne: false
1068
+ referencedRelation: "view_org"
1069
+ referencedColumns: ["org_id"]
703
1070
  },
704
- ];
705
- };
1071
+ ]
1072
+ }
706
1073
  tbl_chats: {
707
1074
  Row: {
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
- };
1075
+ archived: boolean | null
1076
+ chat_id: string
1077
+ chat_image: string | null
1078
+ chat_name: string | null
1079
+ chat_type: string | null
1080
+ created_at: string
1081
+ group_metadata: Json | null
1082
+ id: Json | null
1083
+ invite_link: string | null
1084
+ is_group: boolean | null
1085
+ is_muted: boolean | null
1086
+ is_read_only: boolean | null
1087
+ latest_message: Json | null
1088
+ member_count: number | null
1089
+ mute_expiration: number | null
1090
+ name: string | null
1091
+ org_id: string
1092
+ org_phone: string
1093
+ pinned: boolean | null
1094
+ timestamp: string | null
1095
+ unread_count: number | null
1096
+ updated_at: string
1097
+ }
731
1098
  Insert: {
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
- };
1099
+ archived?: boolean | null
1100
+ chat_id: string
1101
+ chat_image?: string | null
1102
+ chat_name?: string | null
1103
+ chat_type?: string | null
1104
+ created_at?: string
1105
+ group_metadata?: Json | null
1106
+ id?: Json | null
1107
+ invite_link?: string | null
1108
+ is_group?: boolean | null
1109
+ is_muted?: boolean | null
1110
+ is_read_only?: boolean | null
1111
+ latest_message?: Json | null
1112
+ member_count?: number | null
1113
+ mute_expiration?: number | null
1114
+ name?: string | null
1115
+ org_id: string
1116
+ org_phone: string
1117
+ pinned?: boolean | null
1118
+ timestamp?: string | null
1119
+ unread_count?: number | null
1120
+ updated_at?: string
1121
+ }
755
1122
  Update: {
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
- };
1123
+ archived?: boolean | null
1124
+ chat_id?: string
1125
+ chat_image?: string | null
1126
+ chat_name?: string | null
1127
+ chat_type?: string | null
1128
+ created_at?: string
1129
+ group_metadata?: Json | null
1130
+ id?: Json | null
1131
+ invite_link?: string | null
1132
+ is_group?: boolean | null
1133
+ is_muted?: boolean | null
1134
+ is_read_only?: boolean | null
1135
+ latest_message?: Json | null
1136
+ member_count?: number | null
1137
+ mute_expiration?: number | null
1138
+ name?: string | null
1139
+ org_id?: string
1140
+ org_phone?: string
1141
+ pinned?: boolean | null
1142
+ timestamp?: string | null
1143
+ unread_count?: number | null
1144
+ updated_at?: string
1145
+ }
779
1146
  Relationships: [
780
1147
  {
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'];
1148
+ foreignKeyName: "tbl_chats_fkey_tbl_org_phones"
1149
+ columns: ["org_phone", "org_id"]
1150
+ isOneToOne: false
1151
+ referencedRelation: "tbl_org_phones"
1152
+ referencedColumns: ["org_phone", "org_id"]
786
1153
  },
787
- ];
788
- };
1154
+ ]
1155
+ }
789
1156
  tbl_contacts: {
790
1157
  Row: {
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
- };
1158
+ business_profile: Json | null
1159
+ contact_color: Database["public"]["Enums"]["enum_chat_colors"] | null
1160
+ contact_id: string
1161
+ contact_image: string | null
1162
+ contact_name: string | null
1163
+ contact_type: string | null
1164
+ id: Json | null
1165
+ is_blocked: boolean | null
1166
+ is_business: boolean | null
1167
+ is_enterprise: boolean | null
1168
+ is_group: boolean | null
1169
+ is_internal: boolean | null
1170
+ is_me: boolean | null
1171
+ is_my_contact: boolean | null
1172
+ is_user: boolean | null
1173
+ is_wa_contact: boolean | null
1174
+ label_ids: Json
1175
+ name: string | null
1176
+ number: string | null
1177
+ org_id: string
1178
+ pushname: string | null
1179
+ short_name: string | null
1180
+ updated_at: string | null
1181
+ verified_level: number | null
1182
+ verified_name: string | null
1183
+ }
817
1184
  Insert: {
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
- };
1185
+ business_profile?: Json | null
1186
+ contact_color?: Database["public"]["Enums"]["enum_chat_colors"] | null
1187
+ contact_id: string
1188
+ contact_image?: string | null
1189
+ contact_name?: string | null
1190
+ contact_type?: string | null
1191
+ id?: Json | null
1192
+ is_blocked?: boolean | null
1193
+ is_business?: boolean | null
1194
+ is_enterprise?: boolean | null
1195
+ is_group?: boolean | null
1196
+ is_internal?: boolean | null
1197
+ is_me?: boolean | null
1198
+ is_my_contact?: boolean | null
1199
+ is_user?: boolean | null
1200
+ is_wa_contact?: boolean | null
1201
+ label_ids?: Json
1202
+ name?: string | null
1203
+ number?: string | null
1204
+ org_id: string
1205
+ pushname?: string | null
1206
+ short_name?: string | null
1207
+ updated_at?: string | null
1208
+ verified_level?: number | null
1209
+ verified_name?: string | null
1210
+ }
846
1211
  Update: {
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
- };
1212
+ business_profile?: Json | null
1213
+ contact_color?: Database["public"]["Enums"]["enum_chat_colors"] | null
1214
+ contact_id?: string
1215
+ contact_image?: string | null
1216
+ contact_name?: string | null
1217
+ contact_type?: string | null
1218
+ id?: Json | null
1219
+ is_blocked?: boolean | null
1220
+ is_business?: boolean | null
1221
+ is_enterprise?: boolean | null
1222
+ is_group?: boolean | null
1223
+ is_internal?: boolean | null
1224
+ is_me?: boolean | null
1225
+ is_my_contact?: boolean | null
1226
+ is_user?: boolean | null
1227
+ is_wa_contact?: boolean | null
1228
+ label_ids?: Json
1229
+ name?: string | null
1230
+ number?: string | null
1231
+ org_id?: string
1232
+ pushname?: string | null
1233
+ short_name?: string | null
1234
+ updated_at?: string | null
1235
+ verified_level?: number | null
1236
+ verified_name?: string | null
1237
+ }
875
1238
  Relationships: [
876
1239
  {
877
- foreignKeyName: 'tbl_contacts_org_id_fkey';
878
- columns: ['org_id'];
879
- isOneToOne: false;
880
- referencedRelation: 'tbl_org';
881
- referencedColumns: ['org_id'];
1240
+ foreignKeyName: "tbl_contacts_org_id_fkey"
1241
+ columns: ["org_id"]
1242
+ isOneToOne: false
1243
+ referencedRelation: "tbl_org"
1244
+ referencedColumns: ["org_id"]
882
1245
  },
883
1246
  {
884
- foreignKeyName: 'tbl_contacts_org_id_fkey';
885
- columns: ['org_id'];
886
- isOneToOne: false;
887
- referencedRelation: 'view_org';
888
- referencedColumns: ['org_id'];
1247
+ foreignKeyName: "tbl_contacts_org_id_fkey"
1248
+ columns: ["org_id"]
1249
+ isOneToOne: false
1250
+ referencedRelation: "view_org"
1251
+ referencedColumns: ["org_id"]
889
1252
  },
890
- ];
891
- };
1253
+ ]
1254
+ }
892
1255
  tbl_custom_properties: {
893
1256
  Row: {
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
- };
1257
+ created_at: string
1258
+ created_by: string | null
1259
+ org_id: string | null
1260
+ property_id: string
1261
+ property_name: string
1262
+ property_value: string | null
1263
+ property_value_type: string | null
1264
+ type: string | null
1265
+ }
903
1266
  Insert: {
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
- };
1267
+ created_at?: string
1268
+ created_by?: string | null
1269
+ org_id?: string | null
1270
+ property_id?: string
1271
+ property_name: string
1272
+ property_value?: string | null
1273
+ property_value_type?: string | null
1274
+ type?: string | null
1275
+ }
913
1276
  Update: {
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
- };
1277
+ created_at?: string
1278
+ created_by?: string | null
1279
+ org_id?: string | null
1280
+ property_id?: string
1281
+ property_name?: string
1282
+ property_value?: string | null
1283
+ property_value_type?: string | null
1284
+ type?: string | null
1285
+ }
923
1286
  Relationships: [
924
1287
  {
925
- foreignKeyName: 'tbl_custom_properties_org_id_fkey';
926
- columns: ['org_id'];
927
- isOneToOne: false;
928
- referencedRelation: 'tbl_org';
929
- referencedColumns: ['org_id'];
1288
+ foreignKeyName: "tbl_custom_properties_org_id_fkey"
1289
+ columns: ["org_id"]
1290
+ isOneToOne: false
1291
+ referencedRelation: "tbl_org"
1292
+ referencedColumns: ["org_id"]
930
1293
  },
931
1294
  {
932
- foreignKeyName: 'tbl_custom_properties_org_id_fkey';
933
- columns: ['org_id'];
934
- isOneToOne: false;
935
- referencedRelation: 'view_org';
936
- referencedColumns: ['org_id'];
1295
+ foreignKeyName: "tbl_custom_properties_org_id_fkey"
1296
+ columns: ["org_id"]
1297
+ isOneToOne: false
1298
+ referencedRelation: "view_org"
1299
+ referencedColumns: ["org_id"]
937
1300
  },
938
- ];
939
- };
1301
+ ]
1302
+ }
940
1303
  tbl_integration_hooks: {
941
1304
  Row: {
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
- };
1305
+ hook_url: string
1306
+ id: string
1307
+ integration_id: string | null
1308
+ integration_metadata: Json
1309
+ integration_name: Database["public"]["Enums"]["enum_integration_name"]
1310
+ integration_type: string
1311
+ is_subscribed: boolean
1312
+ org_id: string
1313
+ subscribed_at: string
1314
+ type: Database["public"]["Enums"]["enum_integration_type"]
1315
+ }
953
1316
  Insert: {
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
- };
1317
+ hook_url: string
1318
+ id?: string
1319
+ integration_id?: string | null
1320
+ integration_metadata: Json
1321
+ integration_name: Database["public"]["Enums"]["enum_integration_name"]
1322
+ integration_type: string
1323
+ is_subscribed: boolean
1324
+ org_id: string
1325
+ subscribed_at?: string
1326
+ type: Database["public"]["Enums"]["enum_integration_type"]
1327
+ }
965
1328
  Update: {
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
- };
1329
+ hook_url?: string
1330
+ id?: string
1331
+ integration_id?: string | null
1332
+ integration_metadata?: Json
1333
+ integration_name?: Database["public"]["Enums"]["enum_integration_name"]
1334
+ integration_type?: string
1335
+ is_subscribed?: boolean
1336
+ org_id?: string
1337
+ subscribed_at?: string
1338
+ type?: Database["public"]["Enums"]["enum_integration_type"]
1339
+ }
977
1340
  Relationships: [
978
1341
  {
979
- foreignKeyName: 'tbl_integration_hooks_org_id_fkey';
980
- columns: ['org_id'];
981
- isOneToOne: false;
982
- referencedRelation: 'tbl_org';
983
- referencedColumns: ['org_id'];
1342
+ foreignKeyName: "tbl_integration_hooks_org_id_fkey"
1343
+ columns: ["org_id"]
1344
+ isOneToOne: false
1345
+ referencedRelation: "tbl_org"
1346
+ referencedColumns: ["org_id"]
984
1347
  },
985
1348
  {
986
- foreignKeyName: 'tbl_integration_hooks_org_id_fkey';
987
- columns: ['org_id'];
988
- isOneToOne: false;
989
- referencedRelation: 'view_org';
990
- referencedColumns: ['org_id'];
1349
+ foreignKeyName: "tbl_integration_hooks_org_id_fkey"
1350
+ columns: ["org_id"]
1351
+ isOneToOne: false
1352
+ referencedRelation: "view_org"
1353
+ referencedColumns: ["org_id"]
991
1354
  },
992
- ];
993
- };
1355
+ ]
1356
+ }
994
1357
  tbl_integration_logs: {
995
1358
  Row: {
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
- };
1359
+ created_at: string
1360
+ id: string
1361
+ integration_name: Database["public"]["Enums"]["enum_integration_name"]
1362
+ integration_type: string
1363
+ metadata: Json
1364
+ org_id: string
1365
+ response: Json | null
1366
+ success: boolean
1367
+ type: Database["public"]["Enums"]["enum_integration_type"]
1368
+ }
1006
1369
  Insert: {
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
- };
1370
+ created_at?: string
1371
+ id?: string
1372
+ integration_name: Database["public"]["Enums"]["enum_integration_name"]
1373
+ integration_type: string
1374
+ metadata?: Json
1375
+ org_id: string
1376
+ response?: Json | null
1377
+ success?: boolean
1378
+ type: Database["public"]["Enums"]["enum_integration_type"]
1379
+ }
1017
1380
  Update: {
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
- };
1381
+ created_at?: string
1382
+ id?: string
1383
+ integration_name?: Database["public"]["Enums"]["enum_integration_name"]
1384
+ integration_type?: string
1385
+ metadata?: Json
1386
+ org_id?: string
1387
+ response?: Json | null
1388
+ success?: boolean
1389
+ type?: Database["public"]["Enums"]["enum_integration_type"]
1390
+ }
1028
1391
  Relationships: [
1029
1392
  {
1030
- foreignKeyName: 'tbl_integration_logs_org_id_fkey';
1031
- columns: ['org_id'];
1032
- isOneToOne: false;
1033
- referencedRelation: 'tbl_org';
1034
- referencedColumns: ['org_id'];
1393
+ foreignKeyName: "tbl_integration_logs_org_id_fkey"
1394
+ columns: ["org_id"]
1395
+ isOneToOne: false
1396
+ referencedRelation: "tbl_org"
1397
+ referencedColumns: ["org_id"]
1035
1398
  },
1036
1399
  {
1037
- foreignKeyName: 'tbl_integration_logs_org_id_fkey';
1038
- columns: ['org_id'];
1039
- isOneToOne: false;
1040
- referencedRelation: 'view_org';
1041
- referencedColumns: ['org_id'];
1400
+ foreignKeyName: "tbl_integration_logs_org_id_fkey"
1401
+ columns: ["org_id"]
1402
+ isOneToOne: false
1403
+ referencedRelation: "view_org"
1404
+ referencedColumns: ["org_id"]
1042
1405
  },
1043
- ];
1044
- };
1406
+ ]
1407
+ }
1045
1408
  tbl_integration_tokens: {
1046
1409
  Row: {
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
- };
1410
+ exp: string
1411
+ iat: string
1412
+ id: string
1413
+ is_revealed: boolean
1414
+ name: string
1415
+ org_id: string
1416
+ role: string
1417
+ token: string
1418
+ token_metadata: Json | null
1419
+ type: Database["public"]["Enums"]["enum_integration_type"]
1420
+ }
1058
1421
  Insert: {
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
- };
1422
+ exp: string
1423
+ iat: string
1424
+ id?: string
1425
+ is_revealed?: boolean
1426
+ name: string
1427
+ org_id: string
1428
+ role: string
1429
+ token: string
1430
+ token_metadata?: Json | null
1431
+ type: Database["public"]["Enums"]["enum_integration_type"]
1432
+ }
1070
1433
  Update: {
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
- };
1434
+ exp?: string
1435
+ iat?: string
1436
+ id?: string
1437
+ is_revealed?: boolean
1438
+ name?: string
1439
+ org_id?: string
1440
+ role?: string
1441
+ token?: string
1442
+ token_metadata?: Json | null
1443
+ type?: Database["public"]["Enums"]["enum_integration_type"]
1444
+ }
1082
1445
  Relationships: [
1083
1446
  {
1084
- foreignKeyName: 'public_tbl_integration_tokens_org_id_fkey';
1085
- columns: ['org_id'];
1086
- isOneToOne: false;
1087
- referencedRelation: 'tbl_org';
1088
- referencedColumns: ['org_id'];
1447
+ foreignKeyName: "public_tbl_integration_tokens_org_id_fkey"
1448
+ columns: ["org_id"]
1449
+ isOneToOne: false
1450
+ referencedRelation: "tbl_org"
1451
+ referencedColumns: ["org_id"]
1089
1452
  },
1090
1453
  {
1091
- foreignKeyName: 'public_tbl_integration_tokens_org_id_fkey';
1092
- columns: ['org_id'];
1093
- isOneToOne: false;
1094
- referencedRelation: 'view_org';
1095
- referencedColumns: ['org_id'];
1454
+ foreignKeyName: "public_tbl_integration_tokens_org_id_fkey"
1455
+ columns: ["org_id"]
1456
+ isOneToOne: false
1457
+ referencedRelation: "view_org"
1458
+ referencedColumns: ["org_id"]
1096
1459
  },
1097
- ];
1098
- };
1460
+ ]
1461
+ }
1099
1462
  tbl_org: {
1100
1463
  Row: {
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
- };
1464
+ created_at: string
1465
+ org_id: string
1466
+ org_image: string | null
1467
+ org_metadata: Json | null
1468
+ org_name: string | null
1469
+ org_plan: Json | null
1470
+ stripe_customer_details: Json | null
1471
+ stripe_customer_id: string | null
1472
+ stripe_subscription_details: Json | null
1473
+ support_link: string | null
1474
+ }
1112
1475
  Insert: {
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
- };
1476
+ created_at?: string
1477
+ org_id?: string
1478
+ org_image?: string | null
1479
+ org_metadata?: Json | null
1480
+ org_name?: string | null
1481
+ org_plan?: Json | null
1482
+ stripe_customer_details?: Json | null
1483
+ stripe_customer_id?: string | null
1484
+ stripe_subscription_details?: Json | null
1485
+ support_link?: string | null
1486
+ }
1124
1487
  Update: {
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
- };
1488
+ created_at?: string
1489
+ org_id?: string
1490
+ org_image?: string | null
1491
+ org_metadata?: Json | null
1492
+ org_name?: string | null
1493
+ org_plan?: Json | null
1494
+ stripe_customer_details?: Json | null
1495
+ stripe_customer_id?: string | null
1496
+ stripe_subscription_details?: Json | null
1497
+ support_link?: string | null
1498
+ }
1499
+ Relationships: []
1500
+ }
1138
1501
  tbl_org_labels: {
1139
1502
  Row: {
1140
- color: string;
1141
- created_at: string;
1142
- label_id: string;
1143
- name: string;
1144
- org_id: string;
1145
- type: string;
1146
- };
1503
+ color: string
1504
+ created_at: string
1505
+ label_id: string
1506
+ name: string
1507
+ org_id: string
1508
+ type: string
1509
+ }
1147
1510
  Insert: {
1148
- color?: string;
1149
- created_at?: string;
1150
- label_id?: string;
1151
- name: string;
1152
- org_id: string;
1153
- type?: string;
1154
- };
1511
+ color?: string
1512
+ created_at?: string
1513
+ label_id?: string
1514
+ name: string
1515
+ org_id: string
1516
+ type?: string
1517
+ }
1155
1518
  Update: {
1156
- color?: string;
1157
- created_at?: string;
1158
- label_id?: string;
1159
- name?: string;
1160
- org_id?: string;
1161
- type?: string;
1162
- };
1519
+ color?: string
1520
+ created_at?: string
1521
+ label_id?: string
1522
+ name?: string
1523
+ org_id?: string
1524
+ type?: string
1525
+ }
1163
1526
  Relationships: [
1164
1527
  {
1165
- foreignKeyName: 'tbl_org_labels_org_id_fkey';
1166
- columns: ['org_id'];
1167
- isOneToOne: false;
1168
- referencedRelation: 'tbl_org';
1169
- referencedColumns: ['org_id'];
1528
+ foreignKeyName: "tbl_org_labels_org_id_fkey"
1529
+ columns: ["org_id"]
1530
+ isOneToOne: false
1531
+ referencedRelation: "tbl_org"
1532
+ referencedColumns: ["org_id"]
1170
1533
  },
1171
1534
  {
1172
- foreignKeyName: 'tbl_org_labels_org_id_fkey';
1173
- columns: ['org_id'];
1174
- isOneToOne: false;
1175
- referencedRelation: 'view_org';
1176
- referencedColumns: ['org_id'];
1535
+ foreignKeyName: "tbl_org_labels_org_id_fkey"
1536
+ columns: ["org_id"]
1537
+ isOneToOne: false
1538
+ referencedRelation: "view_org"
1539
+ referencedColumns: ["org_id"]
1177
1540
  },
1178
- ];
1179
- };
1541
+ ]
1542
+ }
1180
1543
  tbl_org_members: {
1181
1544
  Row: {
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
- };
1545
+ created_at: string | null
1546
+ email: string
1547
+ invited_at: string | null
1548
+ invited_by: string | null
1549
+ is_active: boolean
1550
+ is_owner: boolean | null
1551
+ label_ids: string[] | null
1552
+ member_color: Database["public"]["Enums"]["enum_chat_colors"]
1553
+ member_image: string | null
1554
+ member_name: string | null
1555
+ org_id: string
1556
+ org_phones: string[] | null
1557
+ preferences: Json
1558
+ role: Database["public"]["Enums"]["enum_member_role"]
1559
+ user_id: string | null
1560
+ }
1198
1561
  Insert: {
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
- };
1562
+ created_at?: string | null
1563
+ email: string
1564
+ invited_at?: string | null
1565
+ invited_by?: string | null
1566
+ is_active?: boolean
1567
+ is_owner?: boolean | null
1568
+ label_ids?: string[] | null
1569
+ member_color?: Database["public"]["Enums"]["enum_chat_colors"]
1570
+ member_image?: string | null
1571
+ member_name?: string | null
1572
+ org_id: string
1573
+ org_phones?: string[] | null
1574
+ preferences?: Json
1575
+ role?: Database["public"]["Enums"]["enum_member_role"]
1576
+ user_id?: string | null
1577
+ }
1215
1578
  Update: {
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
- };
1579
+ created_at?: string | null
1580
+ email?: string
1581
+ invited_at?: string | null
1582
+ invited_by?: string | null
1583
+ is_active?: boolean
1584
+ is_owner?: boolean | null
1585
+ label_ids?: string[] | null
1586
+ member_color?: Database["public"]["Enums"]["enum_chat_colors"]
1587
+ member_image?: string | null
1588
+ member_name?: string | null
1589
+ org_id?: string
1590
+ org_phones?: string[] | null
1591
+ preferences?: Json
1592
+ role?: Database["public"]["Enums"]["enum_member_role"]
1593
+ user_id?: string | null
1594
+ }
1232
1595
  Relationships: [
1233
1596
  {
1234
- foreignKeyName: 'tbl_org_members_fkey_auth_users';
1235
- columns: ['user_id'];
1236
- isOneToOne: false;
1237
- referencedRelation: 'users';
1238
- referencedColumns: ['id'];
1597
+ foreignKeyName: "tbl_org_members_fkey_auth_users"
1598
+ columns: ["user_id"]
1599
+ isOneToOne: false
1600
+ referencedRelation: "users"
1601
+ referencedColumns: ["id"]
1239
1602
  },
1240
1603
  {
1241
- foreignKeyName: 'tbl_org_members_fkey_tbl_org';
1242
- columns: ['org_id'];
1243
- isOneToOne: false;
1244
- referencedRelation: 'tbl_org';
1245
- referencedColumns: ['org_id'];
1604
+ foreignKeyName: "tbl_org_members_fkey_tbl_org"
1605
+ columns: ["org_id"]
1606
+ isOneToOne: false
1607
+ referencedRelation: "tbl_org"
1608
+ referencedColumns: ["org_id"]
1246
1609
  },
1247
1610
  {
1248
- foreignKeyName: 'tbl_org_members_fkey_tbl_org';
1249
- columns: ['org_id'];
1250
- isOneToOne: false;
1251
- referencedRelation: 'view_org';
1252
- referencedColumns: ['org_id'];
1611
+ foreignKeyName: "tbl_org_members_fkey_tbl_org"
1612
+ columns: ["org_id"]
1613
+ isOneToOne: false
1614
+ referencedRelation: "view_org"
1615
+ referencedColumns: ["org_id"]
1253
1616
  },
1254
- ];
1255
- };
1617
+ ]
1618
+ }
1256
1619
  tbl_org_phones: {
1257
1620
  Row: {
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
- };
1621
+ created_at: string
1622
+ first_connected_at: string | null
1623
+ is_browser_open: boolean
1624
+ is_ready: boolean | null
1625
+ legacy_version: boolean | null
1626
+ org_id: string
1627
+ org_phone: string | null
1628
+ phone_id: string
1629
+ phone_image: string | null
1630
+ phone_name: string | null
1631
+ phone_state: Json | null
1632
+ qr_code: string | null
1633
+ server_image: string | null
1634
+ server_ip: string | null
1635
+ updated_at: string | null
1636
+ wa_state: string | null
1637
+ wa_version: string | null
1638
+ }
1276
1639
  Insert: {
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
- };
1640
+ created_at?: string
1641
+ first_connected_at?: string | null
1642
+ is_browser_open?: boolean
1643
+ is_ready?: boolean | null
1644
+ legacy_version?: boolean | null
1645
+ org_id: string
1646
+ org_phone?: string | null
1647
+ phone_id?: string
1648
+ phone_image?: string | null
1649
+ phone_name?: string | null
1650
+ phone_state?: Json | null
1651
+ qr_code?: string | null
1652
+ server_image?: string | null
1653
+ server_ip?: string | null
1654
+ updated_at?: string | null
1655
+ wa_state?: string | null
1656
+ wa_version?: string | null
1657
+ }
1295
1658
  Update: {
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
- };
1659
+ created_at?: string
1660
+ first_connected_at?: string | null
1661
+ is_browser_open?: boolean
1662
+ is_ready?: boolean | null
1663
+ legacy_version?: boolean | null
1664
+ org_id?: string
1665
+ org_phone?: string | null
1666
+ phone_id?: string
1667
+ phone_image?: string | null
1668
+ phone_name?: string | null
1669
+ phone_state?: Json | null
1670
+ qr_code?: string | null
1671
+ server_image?: string | null
1672
+ server_ip?: string | null
1673
+ updated_at?: string | null
1674
+ wa_state?: string | null
1675
+ wa_version?: string | null
1676
+ }
1314
1677
  Relationships: [
1315
1678
  {
1316
- foreignKeyName: 'tbl_org_phones_fkey_tbl_org';
1317
- columns: ['org_id'];
1318
- isOneToOne: false;
1319
- referencedRelation: 'tbl_org';
1320
- referencedColumns: ['org_id'];
1679
+ foreignKeyName: "tbl_org_phones_fkey_tbl_org"
1680
+ columns: ["org_id"]
1681
+ isOneToOne: false
1682
+ referencedRelation: "tbl_org"
1683
+ referencedColumns: ["org_id"]
1321
1684
  },
1322
1685
  {
1323
- foreignKeyName: 'tbl_org_phones_fkey_tbl_org';
1324
- columns: ['org_id'];
1325
- isOneToOne: false;
1326
- referencedRelation: 'view_org';
1327
- referencedColumns: ['org_id'];
1686
+ foreignKeyName: "tbl_org_phones_fkey_tbl_org"
1687
+ columns: ["org_id"]
1688
+ isOneToOne: false
1689
+ referencedRelation: "view_org"
1690
+ referencedColumns: ["org_id"]
1328
1691
  },
1329
1692
  {
1330
- foreignKeyName: 'tbl_org_phones_org_id_fkey';
1331
- columns: ['org_id'];
1332
- isOneToOne: false;
1333
- referencedRelation: 'tbl_org';
1334
- referencedColumns: ['org_id'];
1693
+ foreignKeyName: "tbl_org_phones_org_id_fkey"
1694
+ columns: ["org_id"]
1695
+ isOneToOne: false
1696
+ referencedRelation: "tbl_org"
1697
+ referencedColumns: ["org_id"]
1335
1698
  },
1336
1699
  {
1337
- foreignKeyName: 'tbl_org_phones_org_id_fkey';
1338
- columns: ['org_id'];
1339
- isOneToOne: false;
1340
- referencedRelation: 'view_org';
1341
- referencedColumns: ['org_id'];
1700
+ foreignKeyName: "tbl_org_phones_org_id_fkey"
1701
+ columns: ["org_id"]
1702
+ isOneToOne: false
1703
+ referencedRelation: "view_org"
1704
+ referencedColumns: ["org_id"]
1342
1705
  },
1343
- ];
1344
- };
1706
+ ]
1707
+ }
1345
1708
  tbl_quick_replies: {
1346
1709
  Row: {
1347
- command: string | null;
1348
- created_at: string;
1349
- message_payload: Json | null;
1350
- org_id: string | null;
1351
- reply_id: string;
1352
- };
1710
+ command: string | null
1711
+ created_at: string
1712
+ message_payload: Json | null
1713
+ org_id: string | null
1714
+ reply_id: string
1715
+ }
1353
1716
  Insert: {
1354
- command?: string | null;
1355
- created_at?: string;
1356
- message_payload?: Json | null;
1357
- org_id?: string | null;
1358
- reply_id?: string;
1359
- };
1717
+ command?: string | null
1718
+ created_at?: string
1719
+ message_payload?: Json | null
1720
+ org_id?: string | null
1721
+ reply_id?: string
1722
+ }
1360
1723
  Update: {
1361
- command?: string | null;
1362
- created_at?: string;
1363
- message_payload?: Json | null;
1364
- org_id?: string | null;
1365
- reply_id?: string;
1366
- };
1724
+ command?: string | null
1725
+ created_at?: string
1726
+ message_payload?: Json | null
1727
+ org_id?: string | null
1728
+ reply_id?: string
1729
+ }
1367
1730
  Relationships: [
1368
1731
  {
1369
- foreignKeyName: 'tbl_quick_replies_org_id_fkey';
1370
- columns: ['org_id'];
1371
- isOneToOne: false;
1372
- referencedRelation: 'tbl_org';
1373
- referencedColumns: ['org_id'];
1732
+ foreignKeyName: "tbl_quick_replies_org_id_fkey"
1733
+ columns: ["org_id"]
1734
+ isOneToOne: false
1735
+ referencedRelation: "tbl_org"
1736
+ referencedColumns: ["org_id"]
1374
1737
  },
1375
1738
  {
1376
- foreignKeyName: 'tbl_quick_replies_org_id_fkey';
1377
- columns: ['org_id'];
1378
- isOneToOne: false;
1379
- referencedRelation: 'view_org';
1380
- referencedColumns: ['org_id'];
1739
+ foreignKeyName: "tbl_quick_replies_org_id_fkey"
1740
+ columns: ["org_id"]
1741
+ isOneToOne: false
1742
+ referencedRelation: "view_org"
1743
+ referencedColumns: ["org_id"]
1381
1744
  },
1382
- ];
1383
- };
1745
+ ]
1746
+ }
1384
1747
  tbl_tools_whatsapp_links: {
1385
1748
  Row: {
1386
- created_at: string;
1387
- link_id: string;
1388
- link_name: string;
1389
- message: string | null;
1390
- phone: string;
1391
- };
1749
+ created_at: string
1750
+ link_id: string
1751
+ link_name: string
1752
+ message: string | null
1753
+ phone: string
1754
+ }
1392
1755
  Insert: {
1393
- created_at?: string;
1394
- link_id?: string;
1395
- link_name: string;
1396
- message?: string | null;
1397
- phone: string;
1398
- };
1756
+ created_at?: string
1757
+ link_id?: string
1758
+ link_name: string
1759
+ message?: string | null
1760
+ phone: string
1761
+ }
1399
1762
  Update: {
1400
- created_at?: string;
1401
- link_id?: string;
1402
- link_name?: string;
1403
- message?: string | null;
1404
- phone?: string;
1405
- };
1406
- Relationships: [];
1407
- };
1408
- };
1763
+ created_at?: string
1764
+ link_id?: string
1765
+ link_name?: string
1766
+ message?: string | null
1767
+ phone?: string
1768
+ }
1769
+ Relationships: []
1770
+ }
1771
+ }
1409
1772
  Views: {
1410
1773
  view_broadcast_logs: {
1411
1774
  Row: {
1412
- broadcast_id: string | null;
1775
+ broadcast_id: string | null
1413
1776
  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
- };
1777
+ | Database["public"]["Enums"]["enum_broadcast_status"]
1778
+ | null
1779
+ created_at: string | null
1780
+ delivery_percentage: number | null
1781
+ failed_chats: number | null
1782
+ message_payload: Json | null
1783
+ org_id: string | null
1784
+ pending_chats: number | null
1785
+ performed_at: string | null
1786
+ performed_by: string | null
1787
+ read_percentage: number | null
1788
+ scheduled_at: string | null
1789
+ sent_chats: number | null
1790
+ total_chats: number | null
1791
+ total_delivered_count: number | null
1792
+ total_member_count: number | null
1793
+ total_read_count: number | null
1794
+ }
1795
+ Relationships: [
1796
+ {
1797
+ foreignKeyName: "tbl_broadcast_messages_org_id_fkey"
1798
+ columns: ["org_id"]
1799
+ isOneToOne: false
1800
+ referencedRelation: "tbl_org"
1801
+ referencedColumns: ["org_id"]
1802
+ },
1803
+ {
1804
+ foreignKeyName: "tbl_broadcast_messages_org_id_fkey"
1805
+ columns: ["org_id"]
1806
+ isOneToOne: false
1807
+ referencedRelation: "view_org"
1808
+ referencedColumns: ["org_id"]
1809
+ },
1810
+ ]
1811
+ }
1812
+ view_chat_logs: {
1813
+ Row: {
1814
+ action: string | null
1815
+ failed: number | null
1816
+ operation_id: string | null
1817
+ org_id: string | null
1818
+ pending: number | null
1819
+ performed_at: string | null
1820
+ performed_by: string | null
1821
+ success: number | null
1822
+ total_chats: number | null
1823
+ total_logs: number | null
1824
+ total_participants: number | null
1825
+ }
1432
1826
  Relationships: [
1433
1827
  {
1434
- foreignKeyName: 'tbl_broadcast_messages_org_id_fkey';
1435
- columns: ['org_id'];
1436
- isOneToOne: false;
1437
- referencedRelation: 'tbl_org';
1438
- referencedColumns: ['org_id'];
1828
+ foreignKeyName: "tbl_chat_logs_org_id_fkey"
1829
+ columns: ["org_id"]
1830
+ isOneToOne: false
1831
+ referencedRelation: "tbl_org"
1832
+ referencedColumns: ["org_id"]
1439
1833
  },
1440
1834
  {
1441
- foreignKeyName: 'tbl_broadcast_messages_org_id_fkey';
1442
- columns: ['org_id'];
1443
- isOneToOne: false;
1444
- referencedRelation: 'view_org';
1445
- referencedColumns: ['org_id'];
1835
+ foreignKeyName: "tbl_chat_logs_org_id_fkey"
1836
+ columns: ["org_id"]
1837
+ isOneToOne: false
1838
+ referencedRelation: "view_org"
1839
+ referencedColumns: ["org_id"]
1446
1840
  },
1447
- ];
1448
- };
1841
+ ]
1842
+ }
1449
1843
  view_chats: {
1450
1844
  Row: {
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
- };
1845
+ active_phone: string | null
1846
+ chat_access: Json | null
1847
+ chat_id: string | null
1848
+ chat_image: string | null
1849
+ chat_name: string | null
1850
+ chat_type: string | null
1851
+ created_at: string | null
1852
+ custom_properties: Json | null
1853
+ flag_count: number | null
1854
+ group_description: string | null
1855
+ hubspot_metadata: Json | null
1856
+ info_admins_only: boolean | null
1857
+ invite_link: string | null
1858
+ is_archived: boolean | null
1859
+ is_muted: boolean | null
1860
+ label_ids: Json | null
1861
+ last_read_timestamp: string | null
1862
+ latest_message: Json | null
1863
+ member_count: number | null
1864
+ message_unread_count: number | null
1865
+ messages_admins_only: boolean | null
1866
+ org_id: string | null
1867
+ org_phone: string | null
1868
+ updated_at: string | null
1869
+ }
1870
+ Relationships: []
1871
+ }
1476
1872
  view_org: {
1477
1873
  Row: {
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
- };
1874
+ created_at: string | null
1875
+ is_enterprise: boolean | null
1876
+ is_free_trial: boolean | null
1877
+ is_hubspot_connected: boolean | null
1878
+ org_id: string | null
1879
+ org_image: string | null
1880
+ org_metadata: Json | null
1881
+ org_name: string | null
1882
+ org_plan: Json | null
1883
+ pending_days: number | null
1884
+ phone_limit: string | null
1885
+ plan_id: string | null
1886
+ stripe_customer_details: Json | null
1887
+ stripe_customer_id: string | null
1888
+ stripe_subscription_details: Json | null
1889
+ subscription_status: string | null
1890
+ support_link: string | null
1891
+ user_limit: string | null
1892
+ }
1497
1893
  Insert: {
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
- };
1894
+ created_at?: string | null
1895
+ is_enterprise?: never
1896
+ is_free_trial?: never
1897
+ is_hubspot_connected?: never
1898
+ org_id?: string | null
1899
+ org_image?: string | null
1900
+ org_metadata?: Json | null
1901
+ org_name?: string | null
1902
+ org_plan?: Json | null
1903
+ pending_days?: never
1904
+ phone_limit?: never
1905
+ plan_id?: never
1906
+ stripe_customer_details?: Json | null
1907
+ stripe_customer_id?: string | null
1908
+ stripe_subscription_details?: Json | null
1909
+ subscription_status?: never
1910
+ support_link?: string | null
1911
+ user_limit?: never
1912
+ }
1517
1913
  Update: {
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
- };
1914
+ created_at?: string | null
1915
+ is_enterprise?: never
1916
+ is_free_trial?: never
1917
+ is_hubspot_connected?: never
1918
+ org_id?: string | null
1919
+ org_image?: string | null
1920
+ org_metadata?: Json | null
1921
+ org_name?: string | null
1922
+ org_plan?: Json | null
1923
+ pending_days?: never
1924
+ phone_limit?: never
1925
+ plan_id?: never
1926
+ stripe_customer_details?: Json | null
1927
+ stripe_customer_id?: string | null
1928
+ stripe_subscription_details?: Json | null
1929
+ subscription_status?: never
1930
+ support_link?: string | null
1931
+ user_limit?: never
1932
+ }
1933
+ Relationships: []
1934
+ }
1935
+ }
1540
1936
  Functions: {
1541
1937
  create_partition: {
1542
1938
  Args: {
1543
- org_id_input: string;
1544
- };
1545
- Returns: boolean;
1546
- };
1939
+ org_id_input: string
1940
+ }
1941
+ Returns: boolean
1942
+ }
1547
1943
  drop_partition: {
1548
1944
  Args: {
1549
- org_id_input: string;
1550
- };
1551
- Returns: boolean;
1552
- };
1945
+ org_id_input: string
1946
+ }
1947
+ Returns: boolean
1948
+ }
1553
1949
  gen_id: {
1554
1950
  Args: {
1555
- prefix: string;
1556
- size?: number;
1557
- alphabet?: string;
1558
- };
1559
- Returns: string;
1560
- };
1951
+ prefix: string
1952
+ size?: number
1953
+ alphabet?: string
1954
+ }
1955
+ Returns: string
1956
+ }
1561
1957
  gen_ticket_id: {
1562
1958
  Args: {
1563
- org_id_input: string;
1564
- };
1565
- Returns: string;
1566
- };
1959
+ org_id_input: string
1960
+ }
1961
+ Returns: string
1962
+ }
1567
1963
  generate_access_token: {
1568
1964
  Args: {
1569
- name_input?: string;
1570
- type_input?: Database['public']['Enums']['enum_integration_type'];
1571
- org_id_input?: string;
1572
- };
1573
- Returns: Json;
1574
- };
1965
+ name_input?: string
1966
+ type_input?: Database["public"]["Enums"]["enum_integration_type"]
1967
+ org_id_input?: string
1968
+ }
1969
+ Returns: Json
1970
+ }
1575
1971
  get_api_auth_details: {
1576
1972
  Args: {
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
- };
1973
+ org_id_input?: string
1974
+ org_phone_input?: string
1975
+ token_id_input?: string
1976
+ token_type_input?: Database["public"]["Enums"]["enum_integration_type"]
1977
+ }
1978
+ Returns: Json
1979
+ }
1584
1980
  get_chat_labels_data: {
1585
1981
  Args: {
1586
- org_id_input: string;
1587
- chat_ids_input?: string[];
1588
- };
1589
- Returns: Json[];
1590
- };
1982
+ org_id_input: string
1983
+ chat_ids_input?: string[]
1984
+ }
1985
+ Returns: Json[]
1986
+ }
1591
1987
  get_chat_members: {
1592
1988
  Args: {
1593
- org_id_input?: string;
1594
- chat_id_input?: string[];
1595
- };
1596
- Returns: Json;
1597
- };
1989
+ org_id_input?: string
1990
+ chat_id_input?: string[]
1991
+ }
1992
+ Returns: Json
1993
+ }
1598
1994
  get_chats: {
1599
1995
  Args: {
1600
- org_id_input?: string;
1601
- chat_id_input?: string[];
1602
- };
1603
- Returns: Json;
1604
- };
1996
+ org_id_input?: string
1997
+ chat_id_input?: string[]
1998
+ }
1999
+ Returns: Json
2000
+ }
1605
2001
  get_chats_info: {
1606
2002
  Args: {
1607
- chat_id_input: string;
1608
- org_id_input: string;
1609
- org_phone_input?: string;
1610
- };
1611
- Returns: Json;
1612
- };
2003
+ chat_id_input: string
2004
+ org_id_input: string
2005
+ org_phone_input?: string
2006
+ }
2007
+ Returns: Json
2008
+ }
1613
2009
  get_contacts: {
1614
2010
  Args: {
1615
- org_id_input: string;
1616
- contact_ids_input?: string[];
1617
- with_chats?: boolean;
1618
- with_name?: boolean;
1619
- };
1620
- Returns: Json;
1621
- };
1622
- get_dashboard_statistics: {
2011
+ org_id_input: string
2012
+ contact_ids_input?: string[]
2013
+ with_name?: boolean
2014
+ sync_phone_contacts?: boolean
2015
+ }
2016
+ Returns: Json
2017
+ }
2018
+ get_dashboard_statistics_between_dates: {
1623
2019
  Args: {
1624
- org_id_input: string;
1625
- interval_input?: unknown;
1626
- chat_id_input?: string[];
1627
- };
1628
- Returns: Json;
1629
- };
2020
+ org_id_input: string
2021
+ start_date: string
2022
+ end_date: string
2023
+ chat_id_input?: string[]
2024
+ }
2025
+ Returns: Json
2026
+ }
1630
2027
  get_export_chats_data: {
1631
2028
  Args: {
1632
- org_id_input: string;
1633
- chat_ids?: string[];
1634
- };
1635
- Returns: Json;
1636
- };
2029
+ org_id_input: string
2030
+ chat_ids?: string[]
2031
+ }
2032
+ Returns: Json
2033
+ }
1637
2034
  get_integration_data: {
1638
2035
  Args: {
1639
- org_id_input?: string;
1640
- };
1641
- Returns: Json;
1642
- };
2036
+ org_id_input?: string
2037
+ }
2038
+ Returns: Json
2039
+ }
1643
2040
  get_messages_notifications_reactions: {
1644
2041
  Args: {
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
- };
2042
+ org_id_input: string
2043
+ chat_id_input?: string[]
2044
+ message_limit_input?: number
2045
+ reaction_notification_limit_input?: number
2046
+ last_updated_at_input?: string
2047
+ }
2048
+ Returns: Json
2049
+ }
1653
2050
  get_org: {
1654
2051
  Args: {
1655
- org_id_input?: string;
1656
- };
1657
- Returns: Json;
1658
- };
2052
+ org_id_input?: string
2053
+ }
2054
+ Returns: Json
2055
+ }
1659
2056
  get_org_phones: {
1660
2057
  Args: {
1661
- org_id_input?: string;
1662
- phone_id_input?: string;
1663
- };
1664
- Returns: Json;
1665
- };
1666
- get_team_metrics: {
2058
+ org_id_input?: string
2059
+ phone_id_input?: string
2060
+ }
2061
+ Returns: Json
2062
+ }
2063
+ get_team_metrics_between_dates: {
1667
2064
  Args: {
1668
- org_id_input: string;
1669
- chat_id_input?: string[];
1670
- interval_input?: unknown;
1671
- };
1672
- Returns: Json;
1673
- };
2065
+ org_id_input: string
2066
+ start_date: string
2067
+ end_date: string
2068
+ chat_id_input?: string[]
2069
+ }
2070
+ Returns: Json
2071
+ }
1674
2072
  get_ticket_info: {
1675
2073
  Args: {
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
- };
2074
+ ticket_id_input?: string
2075
+ org_id_input?: string
2076
+ chat_id_input?: string
2077
+ unique_message_id_input?: string
2078
+ }
2079
+ Returns: Json
2080
+ }
1683
2081
  image_path: {
1684
2082
  Args: {
1685
- path_input?: string;
1686
- bucket_name?: string;
1687
- req_base?: boolean;
1688
- };
1689
- Returns: string;
1690
- };
2083
+ path_input?: string
2084
+ bucket_name?: string
2085
+ req_base?: boolean
2086
+ }
2087
+ Returns: string
2088
+ }
1691
2089
  list_org_from_user: {
1692
- Args: Record<PropertyKey, never>;
1693
- Returns: string[];
1694
- };
2090
+ Args: Record<PropertyKey, never>
2091
+ Returns: string[]
2092
+ }
1695
2093
  list_role_from_user: {
1696
- Args: Record<PropertyKey, never>;
1697
- Returns: Database['public']['Enums']['enum_member_role'];
1698
- };
2094
+ Args: Record<PropertyKey, never>
2095
+ Returns: Database["public"]["Enums"]["enum_member_role"]
2096
+ }
1699
2097
  update_labels: {
1700
2098
  Args: {
1701
- org_id_input: string;
1702
- tbl_type: string;
1703
- row_label_map: Json;
1704
- replace_labels?: boolean;
1705
- };
1706
- Returns: undefined;
1707
- };
1708
- };
2099
+ org_id_input: string
2100
+ tbl_type: string
2101
+ row_label_map: Json
2102
+ replace_labels?: boolean
2103
+ }
2104
+ Returns: undefined
2105
+ }
2106
+ }
1709
2107
  Enums: {
1710
- enum_broadcast_status: 'inprogress' | 'completed' | 'stopped';
2108
+ enum_broadcast_status: "inprogress" | "completed" | "stopped"
1711
2109
  enum_chat_colors:
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';
2110
+ | "#B4876E"
2111
+ | "#A5B337"
2112
+ | "#06CF9C"
2113
+ | "#25D366"
2114
+ | "#02A698"
2115
+ | "#7D9EF1"
2116
+ | "#007BFC"
2117
+ | "#5E47DE"
2118
+ | "#7F66FF"
2119
+ | "#9333EA"
2120
+ | "#FA6533"
2121
+ | "#C4532D"
2122
+ | "#DC2626"
2123
+ | "#FF2E74"
2124
+ | "#DB2777"
2125
+ enum_chat_tickets_status: "open" | "inprogress" | "closed" | "archived"
1728
2126
  enum_integration_name:
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';
2127
+ | "org.created"
2128
+ | "org.updated"
2129
+ | "org.member.created"
2130
+ | "org.member.updated"
2131
+ | "org.phone.created"
2132
+ | "org.phone.connected"
2133
+ | "org.phone.disconnected"
2134
+ | "org.subscription.trial_will_end"
2135
+ | "chat.created"
2136
+ | "chat.updated"
2137
+ | "message.created"
2138
+ | "message.updated"
2139
+ | "message.deleted"
2140
+ | "message.ack.updated"
2141
+ | "reaction.created"
2142
+ | "reaction.updated"
2143
+ | "ticket.created"
2144
+ | "ticket.updated"
2145
+ | "ticket.deleted"
1748
2146
  enum_integration_type:
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
- };
2147
+ | "zapier"
2148
+ | "pabbly"
2149
+ | "api"
2150
+ | "webhook"
2151
+ | "hubspot"
2152
+ | "freshdesk"
2153
+ | "slack"
2154
+ | "jira"
2155
+ | "salesforce"
2156
+ enum_member_role: "admin" | "member"
2157
+ }
1760
2158
  CompositeTypes: {
1761
- [_ in never]: never;
1762
- };
1763
- };
2159
+ [_ in never]: never
2160
+ }
2161
+ }
1764
2162
  storage: {
1765
2163
  Tables: {
1766
2164
  buckets: {
1767
2165
  Row: {
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
- };
2166
+ allowed_mime_types: string[] | null
2167
+ avif_autodetection: boolean | null
2168
+ created_at: string | null
2169
+ file_size_limit: number | null
2170
+ id: string
2171
+ name: string
2172
+ owner: string | null
2173
+ owner_id: string | null
2174
+ public: boolean | null
2175
+ updated_at: string | null
2176
+ }
1779
2177
  Insert: {
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
- };
2178
+ allowed_mime_types?: string[] | null
2179
+ avif_autodetection?: boolean | null
2180
+ created_at?: string | null
2181
+ file_size_limit?: number | null
2182
+ id: string
2183
+ name: string
2184
+ owner?: string | null
2185
+ owner_id?: string | null
2186
+ public?: boolean | null
2187
+ updated_at?: string | null
2188
+ }
1791
2189
  Update: {
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
- };
2190
+ allowed_mime_types?: string[] | null
2191
+ avif_autodetection?: boolean | null
2192
+ created_at?: string | null
2193
+ file_size_limit?: number | null
2194
+ id?: string
2195
+ name?: string
2196
+ owner?: string | null
2197
+ owner_id?: string | null
2198
+ public?: boolean | null
2199
+ updated_at?: string | null
2200
+ }
2201
+ Relationships: []
2202
+ }
1805
2203
  migrations: {
1806
2204
  Row: {
1807
- executed_at: string | null;
1808
- hash: string;
1809
- id: number;
1810
- name: string;
1811
- };
2205
+ executed_at: string | null
2206
+ hash: string
2207
+ id: number
2208
+ name: string
2209
+ }
1812
2210
  Insert: {
1813
- executed_at?: string | null;
1814
- hash: string;
1815
- id: number;
1816
- name: string;
1817
- };
2211
+ executed_at?: string | null
2212
+ hash: string
2213
+ id: number
2214
+ name: string
2215
+ }
1818
2216
  Update: {
1819
- executed_at?: string | null;
1820
- hash?: string;
1821
- id?: number;
1822
- name?: string;
1823
- };
1824
- Relationships: [];
1825
- };
2217
+ executed_at?: string | null
2218
+ hash?: string
2219
+ id?: number
2220
+ name?: string
2221
+ }
2222
+ Relationships: []
2223
+ }
1826
2224
  objects: {
1827
2225
  Row: {
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
- };
2226
+ bucket_id: string | null
2227
+ created_at: string | null
2228
+ id: string
2229
+ last_accessed_at: string | null
2230
+ metadata: Json | null
2231
+ name: string | null
2232
+ owner: string | null
2233
+ owner_id: string | null
2234
+ path_tokens: string[] | null
2235
+ updated_at: string | null
2236
+ version: string | null
2237
+ }
1840
2238
  Insert: {
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
- };
2239
+ bucket_id?: string | null
2240
+ created_at?: string | null
2241
+ id?: string
2242
+ last_accessed_at?: string | null
2243
+ metadata?: Json | null
2244
+ name?: string | null
2245
+ owner?: string | null
2246
+ owner_id?: string | null
2247
+ path_tokens?: string[] | null
2248
+ updated_at?: string | null
2249
+ version?: string | null
2250
+ }
1853
2251
  Update: {
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
- };
2252
+ bucket_id?: string | null
2253
+ created_at?: string | null
2254
+ id?: string
2255
+ last_accessed_at?: string | null
2256
+ metadata?: Json | null
2257
+ name?: string | null
2258
+ owner?: string | null
2259
+ owner_id?: string | null
2260
+ path_tokens?: string[] | null
2261
+ updated_at?: string | null
2262
+ version?: string | null
2263
+ }
1866
2264
  Relationships: [
1867
2265
  {
1868
- foreignKeyName: 'objects_bucketId_fkey';
1869
- columns: ['bucket_id'];
1870
- isOneToOne: false;
1871
- referencedRelation: 'buckets';
1872
- referencedColumns: ['id'];
2266
+ foreignKeyName: "objects_bucketId_fkey"
2267
+ columns: ["bucket_id"]
2268
+ isOneToOne: false
2269
+ referencedRelation: "buckets"
2270
+ referencedColumns: ["id"]
1873
2271
  },
1874
- ];
1875
- };
2272
+ ]
2273
+ }
1876
2274
  s3_multipart_uploads: {
1877
2275
  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
- };
2276
+ bucket_id: string
2277
+ created_at: string
2278
+ id: string
2279
+ in_progress_size: number
2280
+ key: string
2281
+ owner_id: string | null
2282
+ upload_signature: string
2283
+ version: string
2284
+ }
1887
2285
  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
- };
2286
+ bucket_id: string
2287
+ created_at?: string
2288
+ id: string
2289
+ in_progress_size?: number
2290
+ key: string
2291
+ owner_id?: string | null
2292
+ upload_signature: string
2293
+ version: string
2294
+ }
1897
2295
  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
- };
2296
+ bucket_id?: string
2297
+ created_at?: string
2298
+ id?: string
2299
+ in_progress_size?: number
2300
+ key?: string
2301
+ owner_id?: string | null
2302
+ upload_signature?: string
2303
+ version?: string
2304
+ }
1907
2305
  Relationships: [
1908
2306
  {
1909
- foreignKeyName: 's3_multipart_uploads_bucket_id_fkey';
1910
- columns: ['bucket_id'];
1911
- isOneToOne: false;
1912
- referencedRelation: 'buckets';
1913
- referencedColumns: ['id'];
2307
+ foreignKeyName: "s3_multipart_uploads_bucket_id_fkey"
2308
+ columns: ["bucket_id"]
2309
+ isOneToOne: false
2310
+ referencedRelation: "buckets"
2311
+ referencedColumns: ["id"]
1914
2312
  },
1915
- ];
1916
- };
2313
+ ]
2314
+ }
1917
2315
  s3_multipart_uploads_parts: {
1918
2316
  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
- };
2317
+ bucket_id: string
2318
+ created_at: string
2319
+ etag: string
2320
+ id: string
2321
+ key: string
2322
+ owner_id: string | null
2323
+ part_number: number
2324
+ size: number
2325
+ upload_id: string
2326
+ version: string
2327
+ }
1930
2328
  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
- };
2329
+ bucket_id: string
2330
+ created_at?: string
2331
+ etag: string
2332
+ id?: string
2333
+ key: string
2334
+ owner_id?: string | null
2335
+ part_number: number
2336
+ size?: number
2337
+ upload_id: string
2338
+ version: string
2339
+ }
1942
2340
  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
- };
2341
+ bucket_id?: string
2342
+ created_at?: string
2343
+ etag?: string
2344
+ id?: string
2345
+ key?: string
2346
+ owner_id?: string | null
2347
+ part_number?: number
2348
+ size?: number
2349
+ upload_id?: string
2350
+ version?: string
2351
+ }
1954
2352
  Relationships: [
1955
2353
  {
1956
- foreignKeyName: 's3_multipart_uploads_parts_bucket_id_fkey';
1957
- columns: ['bucket_id'];
1958
- isOneToOne: false;
1959
- referencedRelation: 'buckets';
1960
- referencedColumns: ['id'];
2354
+ foreignKeyName: "s3_multipart_uploads_parts_bucket_id_fkey"
2355
+ columns: ["bucket_id"]
2356
+ isOneToOne: false
2357
+ referencedRelation: "buckets"
2358
+ referencedColumns: ["id"]
1961
2359
  },
1962
2360
  {
1963
- foreignKeyName: 's3_multipart_uploads_parts_upload_id_fkey';
1964
- columns: ['upload_id'];
1965
- isOneToOne: false;
1966
- referencedRelation: 's3_multipart_uploads';
1967
- referencedColumns: ['id'];
2361
+ foreignKeyName: "s3_multipart_uploads_parts_upload_id_fkey"
2362
+ columns: ["upload_id"]
2363
+ isOneToOne: false
2364
+ referencedRelation: "s3_multipart_uploads"
2365
+ referencedColumns: ["id"]
1968
2366
  },
1969
- ];
1970
- };
1971
- };
2367
+ ]
2368
+ }
2369
+ }
1972
2370
  Views: {
1973
- [_ in never]: never;
1974
- };
2371
+ [_ in never]: never
2372
+ }
1975
2373
  Functions: {
1976
2374
  can_insert_object: {
1977
2375
  Args: {
1978
- bucketid: string;
1979
- name: string;
1980
- owner: string;
1981
- metadata: Json;
1982
- };
1983
- Returns: undefined;
1984
- };
2376
+ bucketid: string
2377
+ name: string
2378
+ owner: string
2379
+ metadata: Json
2380
+ }
2381
+ Returns: undefined
2382
+ }
1985
2383
  extension: {
1986
2384
  Args: {
1987
- name: string;
1988
- };
1989
- Returns: string;
1990
- };
2385
+ name: string
2386
+ }
2387
+ Returns: string
2388
+ }
1991
2389
  filename: {
1992
2390
  Args: {
1993
- name: string;
1994
- };
1995
- Returns: string;
1996
- };
2391
+ name: string
2392
+ }
2393
+ Returns: string
2394
+ }
1997
2395
  foldername: {
1998
2396
  Args: {
1999
- name: string;
2000
- };
2001
- Returns: string[];
2002
- };
2397
+ name: string
2398
+ }
2399
+ Returns: string[]
2400
+ }
2003
2401
  get_size_by_bucket: {
2004
- Args: Record<PropertyKey, never>;
2402
+ Args: Record<PropertyKey, never>
2005
2403
  Returns: {
2006
- size: number;
2007
- bucket_id: string;
2008
- }[];
2009
- };
2404
+ size: number
2405
+ bucket_id: string
2406
+ }[]
2407
+ }
2010
2408
  list_multipart_uploads_with_delimiter: {
2011
2409
  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
- };
2410
+ bucket_id: string
2411
+ prefix_param: string
2412
+ delimiter_param: string
2413
+ max_keys?: number
2414
+ next_key_token?: string
2415
+ next_upload_token?: string
2416
+ }
2019
2417
  Returns: {
2020
- key: string;
2021
- id: string;
2022
- created_at: string;
2023
- }[];
2024
- };
2418
+ key: string
2419
+ id: string
2420
+ created_at: string
2421
+ }[]
2422
+ }
2025
2423
  list_objects_with_delimiter: {
2026
2424
  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
- };
2425
+ bucket_id: string
2426
+ prefix_param: string
2427
+ delimiter_param: string
2428
+ max_keys?: number
2429
+ start_after?: string
2430
+ next_token?: string
2431
+ }
2034
2432
  Returns: {
2035
- name: string;
2036
- id: string;
2037
- metadata: Json;
2038
- updated_at: string;
2039
- }[];
2040
- };
2433
+ name: string
2434
+ id: string
2435
+ metadata: Json
2436
+ updated_at: string
2437
+ }[]
2438
+ }
2041
2439
  search: {
2042
2440
  Args: {
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
- };
2441
+ prefix: string
2442
+ bucketname: string
2443
+ limits?: number
2444
+ levels?: number
2445
+ offsets?: number
2446
+ search?: string
2447
+ sortcolumn?: string
2448
+ sortorder?: string
2449
+ }
2052
2450
  Returns: {
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
- };
2451
+ name: string
2452
+ id: string
2453
+ updated_at: string
2454
+ created_at: string
2455
+ last_accessed_at: string
2456
+ metadata: Json
2457
+ }[]
2458
+ }
2459
+ }
2062
2460
  Enums: {
2063
- [_ in never]: never;
2064
- };
2461
+ [_ in never]: never
2462
+ }
2065
2463
  CompositeTypes: {
2066
- [_ in never]: never;
2067
- };
2068
- };
2069
- };
2464
+ [_ in never]: never
2465
+ }
2466
+ }
2467
+ }
2070
2468
 
2071
- type PublicSchema = Database[Extract<keyof Database, 'public'>];
2469
+ type PublicSchema = Database[Extract<keyof Database, "public">]
2072
2470
 
2073
2471
  export type Tables<
2074
2472
  PublicTableNameOrOptions extends
2075
- | keyof (PublicSchema['Tables'] & PublicSchema['Views'])
2473
+ | keyof (PublicSchema["Tables"] & PublicSchema["Views"])
2076
2474
  | { schema: keyof Database },
2077
2475
  TableName extends PublicTableNameOrOptions extends { schema: keyof Database }
2078
- ? keyof (Database[PublicTableNameOrOptions['schema']]['Tables'] &
2079
- Database[PublicTableNameOrOptions['schema']]['Views'])
2476
+ ? keyof (Database[PublicTableNameOrOptions["schema"]]["Tables"] &
2477
+ Database[PublicTableNameOrOptions["schema"]]["Views"])
2080
2478
  : never = never,
2081
2479
  > = PublicTableNameOrOptions extends { schema: keyof Database }
2082
- ? (Database[PublicTableNameOrOptions['schema']]['Tables'] &
2083
- Database[PublicTableNameOrOptions['schema']]['Views'])[TableName] extends {
2084
- Row: infer R;
2480
+ ? (Database[PublicTableNameOrOptions["schema"]]["Tables"] &
2481
+ Database[PublicTableNameOrOptions["schema"]]["Views"])[TableName] extends {
2482
+ Row: infer R
2085
2483
  }
2086
2484
  ? R
2087
2485
  : never
2088
- : PublicTableNameOrOptions extends keyof (PublicSchema['Tables'] &
2089
- PublicSchema['Views'])
2090
- ? (PublicSchema['Tables'] &
2091
- PublicSchema['Views'])[PublicTableNameOrOptions] extends {
2092
- Row: infer R;
2486
+ : PublicTableNameOrOptions extends keyof (PublicSchema["Tables"] &
2487
+ PublicSchema["Views"])
2488
+ ? (PublicSchema["Tables"] &
2489
+ PublicSchema["Views"])[PublicTableNameOrOptions] extends {
2490
+ Row: infer R
2093
2491
  }
2094
2492
  ? R
2095
2493
  : never
2096
- : never;
2494
+ : never
2097
2495
 
2098
2496
  export type TablesInsert<
2099
2497
  PublicTableNameOrOptions extends
2100
- | keyof PublicSchema['Tables']
2498
+ | keyof PublicSchema["Tables"]
2101
2499
  | { schema: keyof Database },
2102
2500
  TableName extends PublicTableNameOrOptions extends { schema: keyof Database }
2103
- ? keyof Database[PublicTableNameOrOptions['schema']]['Tables']
2501
+ ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"]
2104
2502
  : never = never,
2105
2503
  > = PublicTableNameOrOptions extends { schema: keyof Database }
2106
- ? Database[PublicTableNameOrOptions['schema']]['Tables'][TableName] extends {
2107
- Insert: infer I;
2504
+ ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
2505
+ Insert: infer I
2108
2506
  }
2109
2507
  ? I
2110
2508
  : never
2111
- : PublicTableNameOrOptions extends keyof PublicSchema['Tables']
2112
- ? PublicSchema['Tables'][PublicTableNameOrOptions] extends {
2113
- Insert: infer I;
2509
+ : PublicTableNameOrOptions extends keyof PublicSchema["Tables"]
2510
+ ? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
2511
+ Insert: infer I
2114
2512
  }
2115
2513
  ? I
2116
2514
  : never
2117
- : never;
2515
+ : never
2118
2516
 
2119
2517
  export type TablesUpdate<
2120
2518
  PublicTableNameOrOptions extends
2121
- | keyof PublicSchema['Tables']
2519
+ | keyof PublicSchema["Tables"]
2122
2520
  | { schema: keyof Database },
2123
2521
  TableName extends PublicTableNameOrOptions extends { schema: keyof Database }
2124
- ? keyof Database[PublicTableNameOrOptions['schema']]['Tables']
2522
+ ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"]
2125
2523
  : never = never,
2126
2524
  > = PublicTableNameOrOptions extends { schema: keyof Database }
2127
- ? Database[PublicTableNameOrOptions['schema']]['Tables'][TableName] extends {
2128
- Update: infer U;
2525
+ ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
2526
+ Update: infer U
2129
2527
  }
2130
2528
  ? U
2131
2529
  : never
2132
- : PublicTableNameOrOptions extends keyof PublicSchema['Tables']
2133
- ? PublicSchema['Tables'][PublicTableNameOrOptions] extends {
2134
- Update: infer U;
2530
+ : PublicTableNameOrOptions extends keyof PublicSchema["Tables"]
2531
+ ? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
2532
+ Update: infer U
2135
2533
  }
2136
2534
  ? U
2137
2535
  : never
2138
- : never;
2536
+ : never
2139
2537
 
2140
2538
  export type Enums<
2141
2539
  PublicEnumNameOrOptions extends
2142
- | keyof PublicSchema['Enums']
2540
+ | keyof PublicSchema["Enums"]
2143
2541
  | { schema: keyof Database },
2144
2542
  EnumName extends PublicEnumNameOrOptions extends { schema: keyof Database }
2145
- ? keyof Database[PublicEnumNameOrOptions['schema']]['Enums']
2543
+ ? keyof Database[PublicEnumNameOrOptions["schema"]]["Enums"]
2146
2544
  : never = never,
2147
2545
  > = PublicEnumNameOrOptions extends { schema: keyof Database }
2148
- ? Database[PublicEnumNameOrOptions['schema']]['Enums'][EnumName]
2149
- : PublicEnumNameOrOptions extends keyof PublicSchema['Enums']
2150
- ? PublicSchema['Enums'][PublicEnumNameOrOptions]
2151
- : never;
2546
+ ? Database[PublicEnumNameOrOptions["schema"]]["Enums"][EnumName]
2547
+ : PublicEnumNameOrOptions extends keyof PublicSchema["Enums"]
2548
+ ? PublicSchema["Enums"][PublicEnumNameOrOptions]
2549
+ : never
2550
+
2551
+