@periskope/types 0.6.77 → 0.6.80

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