@periskope/types 0.6.86 → 0.6.88

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