@periskope/types 0.6.136 → 0.6.138

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