@periskope/types 0.6.97 → 0.6.99

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